1
0
mirror of https://github.com/ultralytics/yolov5.git synced 2025-06-03 14:49:29 +08:00

Merge pull request from Laughing-q/master

update os.sep
This commit is contained in:
Glenn Jocher 2020-07-09 21:09:33 -07:00 committed by GitHub
commit 17b9d7cdda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -397,7 +397,7 @@ if __name__ == '__main__':
# Train # Train
if not opt.evolve: if not opt.evolve:
print('Start Tensorboard with "tensorboard --logdir=runs", view at http://localhost:6006/') print('Start Tensorboard with "tensorboard --logdir=runs", view at http://localhost:6006/')
tb_writer = SummaryWriter(log_dir=increment_dir('runs/exp', opt.name)) tb_writer = SummaryWriter(log_dir=increment_dir('runs' + os.sep + 'exp', opt.name))
if opt.hyp: # update hyps if opt.hyp: # update hyps
with open(opt.hyp) as f: with open(opt.hyp) as f:
hyp.update(yaml.load(f, Loader=yaml.FullLoader)) hyp.update(yaml.load(f, Loader=yaml.FullLoader))