Reference for ultralytics/utils/dist.py
Note
This file is available at https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/dist.py. If you spot a problem please help fix it by contributing a Pull Request 🛠️. Thank you 🙏!
ultralytics.utils.dist.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/utils/dist.py
ultralytics.utils.dist.generate_ddp_file
Generates a DDP file and returns its file name.
Source code in ultralytics/utils/dist.py
ultralytics.utils.dist.generate_ddp_command
Generates and returns command for distributed training.
Source code in ultralytics/utils/dist.py
ultralytics.utils.dist.ddp_cleanup
📅 Created 1 year ago
✏️ Updated 3 months ago