Skip to content
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

Failing at small detection !! #13401

Open
1 task done
Manueljohnson063 opened this issue Nov 6, 2024 · 2 comments
Open
1 task done

Failing at small detection !! #13401

Manueljohnson063 opened this issue Nov 6, 2024 · 2 comments
Labels
detect Object Detection issues, PR's question Further information is requested

Comments

@Manueljohnson063
Copy link

Manueljohnson063 commented Nov 6, 2024

Search before asking

Question

Thank you for the great repository!

I’m currently working on a driver smoking detection project. I have trained my model with nearly 5,000 images; however, it mistakenly identifies light glare as a cigarette, due to the similarity in appearance. My model has only one class, labeled "cigarette." Could you suggest some modifications to improve its accuracy?@Glenn

Additional

No response

@Manueljohnson063 Manueljohnson063 added the question Further information is requested label Nov 6, 2024
@UltralyticsAssistant UltralyticsAssistant added the detect Object Detection issues, PR's label Nov 6, 2024
@UltralyticsAssistant
Copy link
Member

👋 Hello @Manueljohnson063, thank you for your interest in YOLOv5 🚀!

For improving the accuracy of your model, especially in distinguishing similar-looking objects, you might consider the following approaches:

  1. Dataset Enhancement: Increase your dataset, particularly with more examples of correctly and incorrectly identified objects. Ensuring a variety of lighting conditions and angles can help.

  2. Data Augmentation: Use techniques such as adding noise, adjusting brightness/contrast, and flipping images to enhance your training data.

  3. Hyperparameter Tuning: Experiment with different hyperparameters to see if they bring improvements in accuracy.

  4. Model Architecture: Try different model sizes or architectures within YOLOv5 to find the best fit for your task.

  5. Loss Functions: Modify loss functions to better penalize the misclassification errors specific to your problem.

If this is a 🐛 Bug Report, please provide a minimum reproducible example to help us debug it.

This is an automated response, and an Ultralytics engineer will also assist you soon. If you have further questions or need more detailed assistance, please feel free to reply with additional information, such as your dataset examples and training logs.

And don't miss out on the possibilities with the latest YOLOv8 🆕 for potentially enhanced performance in your project! Check out our docs for more info.

Happy experimenting 🔍!

@pderrenger
Copy link
Member

@Manueljohnson063 to improve accuracy, consider increasing your dataset size with more diverse images, using data augmentation to enhance variability, and adjusting the confidence threshold to reduce false positives. You might also try training with a higher resolution or using a larger model like YOLOv5x for better feature extraction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
detect Object Detection issues, PR's question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants