Closed debparth closed 3 years ago
@debparth I'm removing the bug label as from your description your issue is not related to the repository but rather to your own work.
If you are going to build your own yamls you must ensure the input and output shapes of the layers correspond correctly, otherwise you will see this error.
@glenn-jocher Ok. Is there a way to check each and every layer's input and output shapes when we pass the custom model yaml file?
@glenn-jocher I want to use 3 models(yolov5x, yolov5x6, yolov5l6) to predict the images, but got a error `Traceback (most recent call last):
File "detect.py", line 199, in
so the 3 models must be the same (yolov5x6, yolov5x6, yolov5x6)?
@Lg955 you can ensemble any models that were trained on the same dataset. Here is YOLOv5s and YOLOv5s6 ensembled together with detect.py:
If you believe you have a reproducible issue, we suggest you close this issue and raise a new one using the 🐛 Bug Report template, providing screenshots and a minimum reproducible example to help us better understand and diagnose your problem. Thank you!
@Lg955 you can ensemble any models that were trained on the same dataset. Here is YOLOv5s and YOLOv5s6 ensembled together with detect.py:
If you believe you have a reproducible issue, we suggest you close this issue and raise a new one using the 🐛 Bug Report template, providing screenshots and a minimum reproducible example to help us better understand and diagnose your problem. Thank you!
Thank you for your reply, now my gpu is on training, I will try this ensemble again and raise a new issue about 15 hours later.
👋 Hello, this issue has been automatically marked as stale because it has not had recent activity. Please note it will be closed if no further activity occurs.
Access additional YOLOv5 🚀 resources:
Access additional Ultralytics ⚡ resources:
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 YOLOv5 🚀 and Vision AI ⭐!
🐛 Bug
I'm creating a custom yolov5m model. I've added FPN Backbone and also in Head with few customization and one extra layer just like in Yolov5m6 and it's giving me following error:
RuntimeError: Sizes of tensors must match except in dimension 1. Got 64 and 32 in dimension 2 (The offending index is 1)
To Reproduce (REQUIRED)
Created model.yaml
Expected behavior
It should have created model and started training.
Environment
If applicable, add screenshots to help explain your problem.
Additional context
Model Param Log: