fix resume training

This commit is contained in:
wa22 2024-05-24 15:27:28 +00:00
parent a02c5bac11
commit 4197c99fbf

View File

@ -536,7 +536,8 @@ def entrypoint(debug=""):
model = "yolov8n.pt" model = "yolov8n.pt"
LOGGER.warning(f"WARNING ⚠️ 'model' argument is missing. Using default 'model={model}'.") LOGGER.warning(f"WARNING ⚠️ 'model' argument is missing. Using default 'model={model}'.")
overrides["model"] = model overrides["model"] = model
stem = Path(model).stem.lower() # stem = Path(model).stem.lower()
stem = model.lower()
if "rtdetr" in stem: # guess architecture if "rtdetr" in stem: # guess architecture
from ultralytics import RTDETR from ultralytics import RTDETR