Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update train.py #10485

Merged
merged 2 commits into from
Dec 17, 2022
Merged

Update train.py #10485

merged 2 commits into from
Dec 17, 2022

Conversation

GreatV
Copy link
Contributor

@GreatV GreatV commented Dec 13, 2022

Setting master_port to 1 may cause Permission denied due to failure to bind the port. So it is better to set it to a port greater than 1024.

Signed-off-by: Wang Xin xinwang614@gmail.com

πŸ› οΈ PR Summary

Made with ❀️ by Ultralytics Actions

🌟 Summary

Updated the default master port for Multi-GPU DDP training in the classification training script.

πŸ“Š Key Changes

  • Changed the master port from 1 to 2022 in the Multi-GPU DDP training command.

🎯 Purpose & Impact

  • πŸ› οΈ Purpose: Modifying the master port can resolve potential conflicts with other processes or system services using the old default port.
  • πŸ’» Impact: Users running Multi-GPU Distributed Data Parallel (DDP) training now have a less common default port, reducing the likelihood of port-related issues. This update is specifically helpful for those running multiple training sessions on the same machine/network or dealing with restricted ports.

Setting `master_port` to 1 may cause `Permission denied` due to failure to bind the port. So it is better to set it to a port greater than 1024.

Signed-off-by: Wang Xin <xinwang614@gmail.com>
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

πŸ‘‹ Hello @GreatV, thank you for submitting a YOLOv5 πŸš€ PR! To allow your work to be integrated as seamlessly as possible, we advise you to:

  • βœ… Verify your PR is up-to-date with ultralytics/yolov5 master branch. If your PR is behind you can update your code by clicking the 'Update branch' button or by running git pull and git merge master locally.
  • βœ… Verify all YOLOv5 Continuous Integration (CI) checks are passing.
  • βœ… Reduce changes to the absolute minimum required for your bug fix or feature addition. "It is not daily increase but daily decrease, hack away the unessential. The closer to the source, the less wastage there is." β€” Bruce Lee

@glenn-jocher glenn-jocher merged commit 4362372 into ultralytics:master Dec 17, 2022
@glenn-jocher
Copy link
Member

@GreatV PR is merged. Thank you for your contributions to YOLOv5 πŸš€ and Vision AI ⭐

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants