-
-
Notifications
You must be signed in to change notification settings - Fork 16.7k
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
When generating results.png, bug happened with disorder on Y-axis of val/box_loss, val/obj_loss and val/cls_loss #7650
Comments
👋 Hello @sylvanding, thank you for your interest in YOLOv5 🚀! Please visit our ⭐️ Tutorials to get started, where you can find quickstart guides for simple tasks like Custom Data Training all the way to advanced concepts like Hyperparameter Evolution. If this is a 🐛 Bug Report, please provide screenshots and minimum viable code to reproduce your issue, otherwise we can not help you. If this is a custom training ❓ Question, please provide as much information as possible, including dataset images, training logs, screenshots, and a public link to online W&B logging if available. For business inquiries or professional support requests please visit https://ultralytics.com or email [email protected]. RequirementsPython>=3.7.0 with all requirements.txt installed including PyTorch>=1.7. To get started: git clone https://github.com/ultralytics/yolov5 # clone
cd yolov5
pip install -r requirements.txt # install EnvironmentsYOLOv5 may be run in any of the following up-to-date verified environments (with all dependencies including CUDA/CUDNN, Python and PyTorch preinstalled):
StatusIf this badge is green, all YOLOv5 GitHub Actions Continuous Integration (CI) tests are currently passing. CI tests verify correct operation of YOLOv5 training (train.py), validation (val.py), inference (detect.py) and export (export.py) on macOS, Windows, and Ubuntu every 24 hours and on every commit. |
@sylvanding hi, thank you for your feature suggestion on how to improve YOLOv5 🚀! The fastest and easiest way to incorporate your ideas into the official codebase is to submit a Pull Request (PR) implementing your idea, and if applicable providing before and after profiling/inference/training results to help us understand the improvement your feature provides. This allows us to directly see the changes in the code and to understand how they affect workflows and performance. Please see our ✅ Contributing Guide to get started. |
fix bug in issue ultralytics#7650
fix bug in issue ultralytics#7650
fix bug in issue ultralytics#7650
Hi @12moli, thanks for the update. It's great that you have narrowed down the issue to your modified backbone. The problem you are experiencing seems to be related to the modifications you made. To further investigate and solve the problem, I recommend carefully reviewing the changes you made to the backbone and comparing them with the original YOLOv5 implementation. This will help identify any discrepancies that might be causing the issue. You may also want to verify that the data inputs and outputs in the modified backbone are consistent with the original YOLOv5 implementation. Ensuring compatibility with the rest of the YOLOv5 architecture is crucial for proper functioning. Let me know if you need any further assistance in resolving this issue! |
Search before asking
YOLOv5 Component
Training
Bug
When I set the batch size to 16 and tried to generate
results.png
by callingplot_results()
inplots.py
, something wrong happened. As the image shows below, there are disorders on the Y-axis of val/box_loss, val/obj_loss and val/cls_loss. And matplotlib output the following warning:However, when I set batch size to 8 and 4, the problem disappeared.
Then I added a line of code after
y = data.values[:, j]
inplot_results()
like this:the problem was solved.
![A07i7.png](https://camo.githubusercontent.com/e389998323175d2edf3931840df783079250aac469685d3497f7b240202e3fcd/68747470733a2f2f73312e3332383838382e78797a2f323032322f30342f33302f41303769372e706e67)
Environment
the latest version cloned from GitHub
Minimal Reproducible Example
No response
Additional
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: