-
-
Notifications
You must be signed in to change notification settings - Fork 16.4k
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
Can --image-weights and DDP training be compatible by building image-weighted dataset? #13415
Comments
👋 Hello @Scorbinwen, thank you for your interest in YOLOv5 🚀! Your question about combining If this is a 🐛 Bug Report, please provide a minimum reproducible example to help us debug it. For implementation-related questions like yours, providing comprehensive context helps us and others in the community to assist you better. If this is a custom training ❓ Question, make sure to include any relevant dataset image examples and training logs. Additionally, it might be helpful to ensure you're following our tips for achieving the best training results. RequirementsEnsure you have Python>=3.8.0 with all required libraries installed, including PyTorch>=1.8. EnvironmentsYOLOv5 can be run in several environments:
Each of these options comes with dependencies such as CUDA, CUDNN, and others preinstalled. StatusCheck the YOLOv5 CI for the current status of Continuous Integration tests. This helps to confirm that the code is functioning correctly on various systems. This is an automated response, but an Ultralytics engineer will also assist you soon. Feel free to engage with the community in the discussions tab for more insights and support. 😊 |
@Scorbinwen your approach to implementing an image-weighted dataset for DDP training looks promising. However, please ensure that your modifications align with the latest YOLOv5 updates to avoid compatibility issues. If you believe your implementation is robust and beneficial, consider submitting a pull request for review by the community. This way, it can be evaluated and potentially integrated into the main repository. Thank you for your contribution! |
Thank you for your reply, I'll check my implementation. |
@Scorbinwen you're welcome! When submitting your PR, please include benchmark results comparing DDP training with and without image weights to demonstrate the performance impact. Looking forward to reviewing your contribution. |
Search before asking
Question
I have searched the YOLOv5 issues and discussions e.g.#3275 , the lastest official code seems still be incompatible for "--image-weights" and DDP training, but it's needed for my task when my dataset is highly class-unbalanced.
So I implement an image-weighted dataset by estimating repeat times for images:
I hope someone can help me double check the implementation, if it's ok, I will be grad to contribute to the Yolov5 community.
Additional
No response
The text was updated successfully, but these errors were encountered: