-
-
Notifications
You must be signed in to change notification settings - Fork 16.5k
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
val_loss nan #13461
Comments
👋 Hello @lqh964165950, thank you for your interest in YOLOv5 🚀! It sounds like you've made some interesting custom modifications to YOLOv5 by adding a feature enhancement module. Let's work together to troubleshoot this validation loss issue. If this is a 🐛 Bug Report, we kindly request a minimum reproducible example to help us debug the problem. This includes:
If this is a custom training ❓ Question, please provide as much detailed information as possible. Be sure to include screenshots or examples of your dataset, training logs, and loss plots. Additionally, check that you're following best practices for training, such as carefully tuning learning rates, verifying dataset quality, and using appropriate augmentation techniques. RequirementsEnsure you are using [Python>=3.8.0] with all necessary packages installed, including [PyTorch>=1.8]. To set up the environment: git clone the YOLOv5 repository # clone
cd into the directory
pip install requirements from the requirements file # install EnvironmentsYOLOv5 supports multiple verified environments for running models, including notebooks with free GPU access, Google Cloud, Amazon AMI, and Docker. Please ensure your environment dependencies like CUDA, cuDNN, Python, and PyTorch are up to date, as out-of-date setups often cause instability. StatusIf all the tests in the YOLOv5 Continuous Integration (CI) workflow are passing, this indicates the base code is functioning correctly, and modifications are likely contributing to the issue. You can verify the training, validation, inference, export, and benchmarking features on various operating systems like macOS, Windows, and Ubuntu. 🔍 This is an automated response to help provide initial guidance. An Ultralytics engineer will take a look at your issue and assist you further as soon as possible. |
@lqh964165950 the issue of validation loss becoming
For debugging, consider starting with a smaller dataset and enabling verbose logging. Additionally, verify whether this issue persists with the latest YOLOv5 version. If the For more details on YOLOv5 loss computation, refer to this documentation. |
Search before asking
Question
对yolov5进行改进,在head和neck之间加了一个特征增强模块,却出现如下问题,验证损失有一段时间为nan,这是为什么呢?
Additional
No response
The text was updated successfully, but these errors were encountered: