mirror of
https://github.com/THU-MIG/yolov10.git
synced 2025-05-22 21:04:21 +08:00
update huggingface hub card template
This commit is contained in:
parent
e161d70ff7
commit
ea93d4f379
@ -1,6 +1,8 @@
|
||||
card_template_text = """
|
||||
---
|
||||
license: agpl-3.0
|
||||
library_name: ultralytics
|
||||
repo_url: https://github.com/THU-MIG/yolov10
|
||||
tags:
|
||||
- object-detection
|
||||
- computer-vision
|
||||
|
@ -7,9 +7,7 @@ from .train import YOLOv10DetectionTrainer
|
||||
from huggingface_hub import PyTorchModelHubMixin
|
||||
from .card import card_template_text
|
||||
|
||||
class YOLOv10(Model, PyTorchModelHubMixin, library_name="ultralytics", \
|
||||
repo_url="https://github.com/THU-MIG/yolov10", \
|
||||
model_card_template=card_template_text):
|
||||
class YOLOv10(Model, PyTorchModelHubMixin, model_card_template=card_template_text):
|
||||
|
||||
def __init__(self, model="yolov10n.pt", task=None, verbose=False,
|
||||
names=None):
|
||||
|
Loading…
x
Reference in New Issue
Block a user