mirror of
https://github.com/Bing-su/adetailer.git
synced 2026-02-10 02:10:04 +00:00
fix: misc
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user