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

RuntimeError: The size of tensor a (6) must match the size of tensor b (7) at non-singleton dimension 2 #13315

Open
1 task done
YounghoJo01 opened this issue Sep 15, 2024 · 1 comment
Labels
question Further information is requested

Comments

@YounghoJo01
Copy link

YounghoJo01 commented Sep 15, 2024

Search before asking

Question

I installed CUDA 12.6, cuDNN, and YOLOv5 to train a model for traffic light detection. However, I'm encountering an error while running tests on a subset of my dataset. Due to this error, I'm unable to resolve the issue. Please, I need your help to find a solution.
Uploading 스크린샷, 2024-09-15 23-57-43.png…

Additional

No response

@YounghoJo01 YounghoJo01 added the question Further information is requested label Sep 15, 2024
@UltralyticsAssistant
Copy link
Member

👋 Hello @YounghoJo01, thank you for reaching out and using YOLOv5 🚀!

We're here to help! It seems you're encountering a RuntimeError related to mismatched tensor sizes. To assist you better, please provide a minimum reproducible example of the issue. This will help us debug the problem more effectively. 🐛

In the meantime, I recommend checking out our ⭐️ Tutorials for guidance. Make sure your dataset is formatted correctly and your environment meets our Requirements with Python>=3.8.0 and PyTorch>=1.8.

Environments

YOLOv5 can be run in these verified environments:

  • Notebooks with free GPU: Run on Gradient Open In Colab Open In Kaggle
  • Google Cloud, Amazon, and Docker. Refer to our Environments Guide for setup.

Status

YOLOv5 CI

Ensure this badge is green to confirm all CI tests are passing.

We're excited to also introduce YOLOv8 for your future projects! 🚀

Remember, this is an automated response, and an Ultralytics engineer will review your issue shortly. 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants