mirror of
https://github.com/ultralytics/yolov5.git
synced 2025-06-03 14:49:29 +08:00
Remove DDP destroy_process_group()
on train end (#8935)
May resolve https://github.com/ultralytics/yolov5/issues/7307
This commit is contained in:
parent
11a76bb4f5
commit
f1214f237d
3
train.py
3
train.py
@ -527,9 +527,6 @@ def main(opt, callbacks=Callbacks()):
|
|||||||
# Train
|
# Train
|
||||||
if not opt.evolve:
|
if not opt.evolve:
|
||||||
train(opt.hyp, opt, device, callbacks)
|
train(opt.hyp, opt, device, callbacks)
|
||||||
if WORLD_SIZE > 1 and RANK == 0:
|
|
||||||
LOGGER.info('Destroying process group... ')
|
|
||||||
dist.destroy_process_group()
|
|
||||||
|
|
||||||
# Evolve hyperparameters (optional)
|
# Evolve hyperparameters (optional)
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user