Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion doclayout_yolo/models/yolov10/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
from .predict import YOLOv10DetectionPredictor
from .train import YOLOv10DetectionTrainer

class YOLOv10(Model):
from huggingface_hub import PyTorchModelHubMixin

class YOLOv10(Model, PyTorchModelHubMixin, repo_url="https://github.com/opendatalab/DocLayout-YOLO", pipeline_tag="object-detection", license="agpl-3.0"):

def __init__(self, model="yolov10n.pt", task=None, verbose=False):
super().__init__(model=model, task=task, verbose=verbose)
Expand Down