mirror of
https://github.com/THU-MIG/yolov10.git
synced 2025-05-24 14:44:21 +08:00
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
0c62f85750
commit
1a26e1e195
@ -353,10 +353,10 @@ class YOLO:
|
|||||||
kwargs = self.session.train_args
|
kwargs = self.session.train_args
|
||||||
check_pip_update_available()
|
check_pip_update_available()
|
||||||
overrides = self.overrides.copy()
|
overrides = self.overrides.copy()
|
||||||
overrides.update(kwargs)
|
|
||||||
if kwargs.get('cfg'):
|
if kwargs.get('cfg'):
|
||||||
LOGGER.info(f"cfg file passed. Overriding default params with {kwargs['cfg']}.")
|
LOGGER.info(f"cfg file passed. Overriding default params with {kwargs['cfg']}.")
|
||||||
overrides = yaml_load(check_yaml(kwargs['cfg']))
|
overrides = yaml_load(check_yaml(kwargs['cfg']))
|
||||||
|
overrides.update(kwargs)
|
||||||
overrides['mode'] = 'train'
|
overrides['mode'] = 'train'
|
||||||
if not overrides.get('data'):
|
if not overrides.get('data'):
|
||||||
raise AttributeError("Dataset required but missing, i.e. pass 'data=coco128.yaml'")
|
raise AttributeError("Dataset required but missing, i.e. pass 'data=coco128.yaml'")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user