Update generate_ddp_file for improved overrides (#2909)
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
facb7861cf
commit
305cde69d0
3 changed files with 9 additions and 8 deletions
|
|
@ -19,7 +19,7 @@ class ClassificationTrainer(BaseTrainer):
|
|||
if overrides is None:
|
||||
overrides = {}
|
||||
overrides['task'] = 'classify'
|
||||
if overrides.get('imgsz') is None and cfg['imgsz'] == DEFAULT_CFG.imgsz == 640:
|
||||
if overrides.get('imgsz') is None:
|
||||
overrides['imgsz'] = 224
|
||||
super().__init__(cfg, overrides, _callbacks)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue