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:
parent
a155b3badd
commit
c30725559b
@ -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])
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user