Skip to content

Commit

Permalink
Fix: V9 detection
Browse files Browse the repository at this point in the history
  • Loading branch information
HonzaCuhel committed Oct 31, 2024
1 parent bbadd23 commit f1ac6ec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/utils/version_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ def detect_version(path: str, debug: bool = False) -> str:
return YOLOV11_CONVERSION
elif "yolov10" in content or "v10DetectLoss" in content:
return YOLOV10_CONVERSION
elif "yolov9" in content or ("v9-model" and "ultralytics" in content):
elif "yolov9" in content or (
"v9-model" in content and "ultralytics" in content
):
return YOLOV9_CONVERSION
elif (
"YOLOv5u" in content
Expand Down

0 comments on commit f1ac6ec

Please sign in to comment.