-
Notifications
You must be signed in to change notification settings - Fork 11
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
YOLOv5 v6.0 train issues #1
Comments
Hello! |
@AlessandroMondin, thank you very much for your reply! As you mentioned, debugging getitem function solved the problem. It was due to box_format. By default, box_format is "coco" and changing it to "yolo" worked pretty well. |
I think they might be these |
@AlessandroMondin I am afraid these weights are for v8 (below ones for v7). When I tried these weights it threw an error as below. I though it is because architecture you explained is YOLOV5 v6.0 and the later versions have different architecture; so they do not match (as error comes from torch.serialization.py as can be seen in the image). |
@AlessandroMondin , there was the same issue in here. I guess I need to git clone Ultralytics/YOLOv5 to the folder where the train script is located. |
Did you convert Ultralytics weights to my architecture with https://github.com/AlessandroMondin/YOLOV5m/blob/main/ultralytics_files/state_dict_loading.py? |
@AlessandroMondin Uncommenting did not result in any change; the code keeps raising the same error (no module named 'models'). I am wondering whether you had cloned Ultralytics/YOLOv5 repo to the folder you wrote the code? |
@AlessandroMondin Could you please describe everything step by step on how to run your code? It will be more helpful if you provide a command line too. |
@Sayed-Jobaer if you want to train an object detection model on your custom dataset, I recommend you to use RoboFlow. If you want to train the model from scratch then @AlessandroMondin wrote an excellent blog, where you can find a step-by-step network and train explanation. |
https://github.com/ultralytics/yolov5/releases/tag/v6.0 ... it is the YOLOv5M checkpoint 😄 |
"I encountered the same error. Could you please help me resolve this issue?" |
I would suggest to attempt to find such weights in their repo.. I will try to check if I still have them locally but I do not guarantee it :) |
Dear author |
Hi! First of all, thank you very much for your effort in explaining such a complex and complicated YOLOv5 architecture! I have tried to reproduce your results reported in your repo but faced several problems as below:
I will be looking forward to hearing from you soon!
The text was updated successfully, but these errors were encountered: