-
Notifications
You must be signed in to change notification settings - Fork 275
A guid to prepare data to train a detection model? #16
Comments
@samson-wang the code is generic and can be used for COCO/VOC/ImageNet given JSON annotations in the right format similar to http://mscoco.org/external/ and proposals similar to the ones that we provide, in torch format. |
@szagoruyko Thank you! I'm working on it. Thanks! |
@szagoruyko I have trained on my own data which only has 1 category of boundingbox. |
I think the problem may be too few positive samples in the training dataset. So when predicting, all proposals are predicted to negative. Can I set a higher learning rate for positive samples? |
@samson-wang looks like you need to adjust fraction of positive examples in batches to balance your data, check here https://github.com/facebookresearch/multipathnet/blob/master/BatchProviderROI.lua#L19 |
@szagoruyko Thank you for your tip!
The generated bounding box looks like
When evaluation. After execution of getROIBoxes
Positions has been switched. I'm not sure if it is a problem. Still working on this. |
Update, Line 234 in e6b9e0d
boxes permuted. |
@szagoruyko Stupid mistake. The image transformer not the same with train and evaluation. So the scores inferred get wrong. |
Hi Samson, did you get it working? I am also trying to set up my own training pipeline, what did your workflow end up like? |
I notice that the training has been kind of "hard coded" to different versions of pascal voc and coco datasets. I'm trying to figure out the data flow and data format requirement to run training on "new"
data. Still have some problems in loading and preparing data before training (Even on voc or coco data). Could anyone give some advices to help me to build up the process.
Now, I have some images and corresponding bounding box annotations. If I want to train on this data, I need to generate some proposals, i.e. 1000/image. Put annotations and proposals in "least required" Torch formats.
I think I have to write some pieces of code to implement
I hope to be a contributor. ;-)
The text was updated successfully, but these errors were encountered: