Skip to content

Commit e6829fe

Browse files
authored
Merge pull request #319 from roboflow/fix-yolov10-version-deploy
Fix yolov10 version deploy
2 parents c28cb01 + 53b94d5 commit e6829fe

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,11 @@ workspace.upload_dataset(
131131
# upload model weights
132132
version.deploy(model_type="yolov8", model_path=f”{HOME}/runs/detect/train/”)
133133

134+
# upload model weights - yolov10
135+
# Before attempting to upload YOLOv10 models install ultralytics like this:
136+
# pip install git+https://github.com/THU-MIG/yolov10.git
137+
version.deploy(model_type="yolov10", model_path=f”{HOME}/runs/detect/train/”, filename="weights.pt")
138+
134139
# run inference
135140
model = version.model
136141

roboflow/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from roboflow.models import CLIPModel, GazeModel # noqa: F401
1616
from roboflow.util.general import write_line
1717

18-
__version__ = "1.1.42"
18+
__version__ = "1.1.43"
1919

2020

2121
def check_key(api_key, model, notebook, num_retries=0):

roboflow/core/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ def deploy(self, model_type: str, model_path: str, filename: str = "weights/best
532532

533533
if "yolov8" in model_type or "yolov10" in model_type:
534534
# try except for backwards compatibility with older versions of ultralytics
535-
if "-cls" in model_type:
535+
if "-cls" in model_type or model_type.startswith("yolov10"):
536536
nc = model["model"].yaml["nc"]
537537
args = model["train_args"]
538538
else:

0 commit comments

Comments
 (0)