mirror of
https://github.com/Bing-su/adetailer.git
synced 2026-04-30 11:11:21 +00:00
fix: misc
This commit is contained in:
@@ -15,6 +15,7 @@ def load_yolo(model_path: str | Path):
|
|||||||
try:
|
try:
|
||||||
return YOLO(model_path)
|
return YOLO(model_path)
|
||||||
except ModuleNotFoundError:
|
except ModuleNotFoundError:
|
||||||
|
# https://github.com/ultralytics/ultralytics/issues/3856
|
||||||
YOLO("yolov8n.pt")
|
YOLO("yolov8n.pt")
|
||||||
return YOLO(model_path)
|
return YOLO(model_path)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user