-
-
Notifications
You must be signed in to change notification settings - Fork 16.6k
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
I have a problem with low confidence in detecting #12622
Comments
👋 Hello @thorww, 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 a minimum reproducible example to help us debug it. If this is a custom training ❓ Question, please provide as much information as possible, including dataset image examples and training logs, and verify you are following our Tips for Best Training Results. RequirementsPython>=3.8.0 with all requirements.txt installed including PyTorch>=1.8. 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, validation, inference, export and benchmarks on macOS, Windows, and Ubuntu every 24 hours and on every commit. Introducing YOLOv8 🚀We're excited to announce the launch of our latest state-of-the-art (SOTA) object detection model for 2023 - YOLOv8 🚀! Designed to be fast, accurate, and easy to use, YOLOv8 is an ideal choice for a wide range of object detection, image segmentation and image classification tasks. With YOLOv8, you'll be able to quickly and accurately detect objects in real-time, streamline your workflows, and achieve new levels of accuracy in your projects. Check out our YOLOv8 Docs for details and get started with: pip install ultralytics |
@thorww hello! It's great to hear that you're achieving good performance metrics during training and validation with your medical images. If you're experiencing low confidence scores during inference, here are a few suggestions that might help:
For more detailed guidance, please refer to our documentation. If the issue persists, feel free to provide more details such as the command you're using for inference, and we can look into it further. Keep up the good work, and remember that the YOLO community and the Ultralytics team are here to support you! 😊👍 |
@glenn-jocher Thank you very much for your reply. I am trying your scheme gradually, but I have encountered a more serious problem: At present, there is only one target region for each image in my data set, and several regions with slightly higher confidence in each image tend to be quite different from the reality when reasoning. And even if I use the data set that can reach 0.9 under verification conditions for reasoning, this situation will still occur. I have tried to use some schemes, but they have not been well solved. Could you tell me the cause of this problem or the solution |
@thorww, it sounds like you're facing a challenging issue. When the model's predictions during inference significantly diverge from the ground truth despite high validation metrics, it could be due to a few reasons:
Remember, diagnosing model performance issues can be complex and may require iterative experimentation. Keep refining your approach based on the insights you gain from each step. If you continue to face difficulties, consider sharing specific examples and details of your training process in the discussions for more targeted advice from the community. Keep pushing forward, and good luck! 👨🔬🔍 |
@glenn-jocher Thank you. I'll try it step by step |
@thorww You're welcome! Taking it step by step is a solid approach. Remember, model tuning is often an iterative process, so patience and persistence are key. If you have further questions down the line or need more assistance, don't hesitate to reach out. Best of luck with your model optimization, and I'm confident you'll make great progress! Happy detecting! 😊🚀 |
👋 Hello there! We wanted to give you a friendly reminder that this issue has not had any recent activity and may be closed soon, but don't worry - you can always reopen it if needed. If you still have any questions or concerns, please feel free to let us know how we can help. For additional resources and information, please see the links below:
Feel free to inform us of any other issues you discover or feature requests that come to mind in the future. Pull Requests (PRs) are also always welcomed! Thank you for your contributions to YOLO 🚀 and Vision AI ⭐ |
👋 Hello there! We wanted to give you a friendly reminder that this issue has not had any recent activity and may be closed soon, but don't worry - you can always reopen it if needed. If you still have any questions or concerns, please feel free to let us know how we can help. For additional resources and information, please see the links below:
Feel free to inform us of any other issues you discover or feature requests that come to mind in the future. Pull Requests (PRs) are also always welcomed! Thank you for your contributions to YOLO 🚀 and Vision AI ⭐ |
I meet a similar problem, it is likely that the image was converted to a tensor incorrectly before running inference. If it is a 3-channel image, you need to put the pixel values of all coordinates of channel 1 into the tensor in order, followed by channels 2 and 3. If you put the values of the 3 channels of each pixel coordinate into the tensor first, then this method is wrong. This wrong method will produce similar situation as you met. |
Thank you for your input! You are correct that incorrectly preparing the image tensor can lead to issues during inference. YOLOv5 expects images in a specific format: a 3-channel (RGB) image with pixel values normalized to [0, 1]. Ensure the image is properly loaded and preprocessed using libraries like OpenCV, PIL, or PyTorch. If using custom preprocessing, verify it aligns with YOLOv5's expected input format. For more details on inference, refer to the YOLOv5 PyTorch Hub guide. |
Search before asking
Question
I am trying to use yolo5 to train medical images, and the actual training and verification performance indexes are very good, reaching about 0.9. However, in the reasoning process, the actual frame selection confidence of the image is very low, there are very few boxes higher than 0.5, and the boxes with high confidence in an image rarely cross the actual target frame. May I ask what causes this phenomenon? Or are there any good solutions
Additional
No response
The text was updated successfully, but these errors were encountered: