question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not clear how to prepare custom data for training

See original GitHub issue

Hello 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:open
  • Created 2 years ago
  • Comments:7

github_iconTop GitHub Comments

2reactions
hongsamvocommented, Nov 5, 2021

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 follow python 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]

`

0reactions
hongsamvocommented, Nov 5, 2021

Yes, actually the error will happen here and other similar places, replace the term "VOC" + year by year, and one error here, ignore if else, choose metric you want.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found