Replies: 5 comments 3 replies
-
@Sheen23 👋 hi, thanks for letting us know about this possible problem with YOLOv5 🚀. We've created a few short guidelines below to help users provide what we need in order to start investigating a possible problem. Also see the Segmentation notebook for examples: How to create a Minimal, Reproducible ExampleWhen asking a question, people will be better able to provide help if you provide code that they can easily understand and use to reproduce the problem. This is referred to by community members as creating a minimum reproducible example. Your code that reproduces the problem should be:
For Ultralytics to provide assistance your code should also be:
If you believe your problem meets all the above criteria, please close this issue and raise a new one using the 🐛 Bug Report template with a minimum reproducible example to help us better understand and diagnose your problem. Thank you! 😃 |
Beta Was this translation helpful? Give feedback.
-
Same problem here. This how-to-reproduce is pretty complex unfortunately as you need so many files and handwork is involved in configuring. I have 5 train images. Then I used labelme2yolo to create a yolo dataset. I copied the dataset to yolov5/datasets/YOLODataset dataset.yaml inside there:
I copied dataset.yaml to the root of the yolov5 folder. Actually it's not clear where you should run yolo5 and what pythonpath should be set at. So I run from root of yolov5 and make all paths relative to there So I make a root copy of dataset.yaml with modified content
Then I creates a models/set1.yaml file with this
It's basically a copy of a yolov.yaml file with the nc modified. Now you can go to root of yolov5 and run python segment/train.py --img 640 --batch 16 --epochs 5 --data dataset.yaml --cfg models/set1.yaml Some example from your wiki also used a --weights option. Some other example specifies --weights but without argument, and that one fails right away. I found that completely leaving out --weights at least starts the training. That will give you the reported error
I hope I got everything,I tried a lot of things |
Beta Was this translation helpful? Give feedback.
-
I also got the same error.
Exclude |
Beta Was this translation helpful? Give feedback.
-
i had the same problem then i solved it by using --weights yolov5s-seg.pt |
Beta Was this translation helpful? Give feedback.
-
The same error happened to me,The following is my solution: |
Beta Was this translation helpful? Give feedback.
-
when I want to train segment/train.py, this problem comes out. how can I solve it...please
Beta Was this translation helpful? Give feedback.
All reactions