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