Skip to content

Commit

Permalink
remove ddp destroy_process_group() on train end, ultralytics/yolov5#8935
Browse files Browse the repository at this point in the history
  • Loading branch information
yzbx committed Aug 16, 2022
1 parent 17ee0ed commit e28dfbc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
| yolov5 | ✔️ | ✔️ | ✔️ | pytorch | ✔️ | local+online |
| yolov7 | ✔️ | ✔️ | ✔️ | pytorch || local+online |
| mmdetection | ✔️ | ✔️ | ✔️ | pytorch || online |
| detectron2 | ? | ✔️ | ✔️ | pytorch || online |
| detectron2 | ✔️ | ✔️ | ✔️ | pytorch || online |

- online pretrained weights may download through network

Expand Down
2 changes: 1 addition & 1 deletion README_zh-CN.MD
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
| yolov5 | ✔️ | ✔️ | ✔️ | pytorch | ✔️ | local+online |
| yolov7 | ✔️ | ✔️ | ✔️ | pytorch || local+online |
| mmdetection | ✔️ | ✔️ | ✔️ | pytorch || online |
| detectron2 | ? | ✔️ | ✔️ | pytorch || online |
| detectron2 | ✔️ | ✔️ | ✔️ | pytorch || online |

- online 预训练权重可能在训练时通过网络下载

Expand Down
3 changes: 0 additions & 3 deletions det-yolov5-tmi/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -568,9 +568,6 @@ def main(opt, callbacks=Callbacks()):
# Train
if not opt.evolve:
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)
else:
Expand Down

0 comments on commit e28dfbc

Please sign in to comment.