Skip to content

Commit

Permalink
Fix DDP destruction LOGGER.info() (ultralytics#4863)
Browse files Browse the repository at this point in the history
  • Loading branch information
glenn-jocher committed Sep 20, 2021
1 parent a3cc475 commit 0cc5a62
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,8 @@ def main(opt, callbacks=Callbacks()):
if not opt.evolve:
train(opt.hyp, opt, device, callbacks)
if WORLD_SIZE > 1 and RANK == 0:
_ = LOGGER.info('Destroying process group... ', end=''), dist.destroy_process_group(), LOGGER.info('Done.')
LOGGER.info('Destroying process group... ')
dist.destroy_process_group()

# Evolve hyperparameters (optional)
else:
Expand Down

0 comments on commit 0cc5a62

Please sign in to comment.