Skip to content
This repository has been archived by the owner on Nov 21, 2023. It is now read-only.

How to train the custom dataset. #28

Closed
nonstop1962 opened this issue Jan 25, 2018 · 5 comments
Closed

How to train the custom dataset. #28

nonstop1962 opened this issue Jan 25, 2018 · 5 comments
Labels

Comments

@nonstop1962
Copy link

Hi! First, thank you for your wonderful works.
I finish training the RetinaNet with COCO dataset as you instructed.
I want to train my own dataset with RetinaNet or another baseline models.

I look at the inside code structure and figure out that all model configurations are defined in *.yaml file and train_net.py read the *.yaml file and construct the database from .jason file in COCO annotations directory.

So if I want to train my own dataset, the only way is to generate the .json file similar with COCO annotations?

@rbgirshick
Copy link
Contributor

@nonstop1962: yes, the recommended way is to convert your dataset to the COCO json annotation format. For bounding boxes, this can usually be done in < 100 lines of Pythons. Of course you could make arbitrary modification to the Detectron code to support custom formats, but that's probably harder and more prone to issues with missed corner cases.

@nonstop1962
Copy link
Author

Thank you for your answer!

@oryondark
Copy link

oryondark commented Sep 19, 2018

Thank you for @rbgirshick !

Ok, so Can I get training dataset if I want to segment T-Shirt ?
for example, JSON get for uses of COCO API.

I think that this platform can segmentation.
ok??

Thank you~!

@gamcoh
Copy link

gamcoh commented Mar 20, 2019

Hi,
for those who need it, here's a script for converting xml pascal voc annotations to coco json format : https://github.com/gamcoh/Object-Detection-Tools/blob/master/pascal_voc_xml2coco_json.py

@oryondark
Copy link

oryondark commented Mar 21, 2019

Thank gamcoh

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants