Open Scorbinwen opened 1 day ago
👋 Hello @Scorbinwen, thank you for your interest in YOLOv5 🚀! Your question about combining --image-weights
with DDP training is indeed a thoughtful one, especially considering your need to handle a highly class-unbalanced dataset.
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.
Ensure you have Python>=3.8.0 with all required libraries installed, including PyTorch>=1.8.
YOLOv5 can be run in several environments:
Each of these options comes with dependencies such as CUDA, CUDNN, and others preinstalled.
Check 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!
@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.
Search before asking
Question
I have searched the YOLOv5 issues and discussions e.g.https://github.com/ultralytics/yolov5/pull/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