fix: misc

This commit is contained in:
Bingsu
2023-07-23 10:30:21 +09:00
parent 3ed894c5d3
commit 2e2aa10c0b

View File

@@ -15,6 +15,7 @@ def load_yolo(model_path: str | Path):
try:
return YOLO(model_path)
except ModuleNotFoundError:
# https://github.com/ultralytics/ultralytics/issues/3856
YOLO("yolov8n.pt")
return YOLO(model_path)