|
|
@@ -76,13 +76,14 @@ def train(hyp, # path/to/hyp.yaml or hyp dictionary |
|
|
|
LOGGER.info(colorstr('hyperparameters: ') + ', '.join(f'{k}={v}' for k, v in hyp.items())) |
|
|
|
|
|
|
|
# Save run settings |
|
|
|
with open(save_dir / 'hyp.yaml', 'w') as f: |
|
|
|
yaml.safe_dump(hyp, f, sort_keys=False) |
|
|
|
with open(save_dir / 'opt.yaml', 'w') as f: |
|
|
|
yaml.safe_dump(vars(opt), f, sort_keys=False) |
|
|
|
data_dict = None |
|
|
|
if not evolve: |
|
|
|
with open(save_dir / 'hyp.yaml', 'w') as f: |
|
|
|
yaml.safe_dump(hyp, f, sort_keys=False) |
|
|
|
with open(save_dir / 'opt.yaml', 'w') as f: |
|
|
|
yaml.safe_dump(vars(opt), f, sort_keys=False) |
|
|
|
|
|
|
|
# Loggers |
|
|
|
data_dict = None |
|
|
|
if RANK in [-1, 0]: |
|
|
|
loggers = Loggers(save_dir, weights, opt, hyp, LOGGER) # loggers instance |
|
|
|
if loggers.wandb: |