find_free_network_port
Finds a free port on localhost.
It is useful in single-node training when we don't want to connect to a real main node but have to set the
MASTER_PORT
environment variable.
Source code in ultralytics/yolo/utils/dist.py
generate_ddp_file
Generates a DDP file and returns its file name.
Source code in ultralytics/yolo/utils/dist.py
generate_ddp_command
Generates and returns command for distributed training.
Source code in ultralytics/yolo/utils/dist.py
ddp_cleanup
Created 2023-04-16, Updated 2023-05-17
Authors: Glenn Jocher (3)