Not clear how to prepare custom data for training
See original GitHub issueHello community!
I have a question regarding the preparation of data to train this network with my own data. Right now I have two folders (images and labels) with the same name per file. The labels are in xml (VOC). I don’t understand very well the training manual and I don’t know how to continue. What exactly do I have to change in the exps/example/custom/yolox_s.py
?
A question I have at this point is, what exactly are these files?
self.train_ann = "instances_train2017.json".
self.val_ann = "instances_val2017.json"
Best regards
Issue Analytics
- State:
- Created 2 years ago
- Comments:7
Top Results From Across the Web
Step-by-step instructions for training YOLOv7 on a Custom ...
Follow these step-by-step instructions to learn how to train YOLOv7 on custom datasets, and then test it with our sample demo on detecting...
Read more >Creating custom data generator for training Deep Learning ...
In this post we will just create the data generator for first scenario and in the subsequent post we will do it for...
Read more >Fine-tuning with custom datasets - Hugging Face
We show examples of reading in several data formats, preprocessing the data for several types of tasks, and then preparing the data into...
Read more >Preparing Custom Dataset for Training YOLO Object Detector
But what if you want to detect an object that is not part of the classes that the pre-trained model was trained on....
Read more >Custom Data Training Issue #424 - ultralytics/yolov5 - GitHub
I wanted to create my own dataset. So I labeled all my images using LabelImg (I set format to Yolo). I ended up...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
In case your dataset in VOC format, you can follow the author’s guide, remember to change your dataset name train and val, in voc.py here, and make sure no error at here, change your classes, remember to link dataset as guide
ln -s /path/to/your/VOCdevkit ./datasets/VOCdevkit
and followpython tools/train.py -f exps/example/yolox_voc/yolox_voc_s.py -d 8 -b 64 --fp16 -o -c /path/to/yolox_s.pth [--cache]
`
Yes, actually the error will happen here and other similar places, replace the term
"VOC" + year
byyear
, and one error here, ignoreif else
, choose metric you want.