Expand overrideable arguments for resumed training (#22903)

Signed-off-by: Mohammed Yasin <32206511+Y-T-G@users.noreply.github.com>
Co-authored-by: Onuralp SEZER <onuralp@ultralytics.com>
This commit is contained in:
Mohammed Yasin 2025-12-12 21:00:56 +08:00 committed by GitHub
parent a155b3badd
commit c30725559b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -812,6 +812,14 @@ class BaseTrainer:
"device",
"close_mosaic",
"augmentations",
"save_period",
"workers",
"cache",
"patience",
"time",
"freeze",
"val",
"plots",
): # allow arg updates to reduce memory or update device on resume
if k in overrides:
setattr(self.args, k, overrides[k])