faster-rcnn.pytorch
faster-rcnn.pytorch copied to clipboard
Question: results of test base on my own dataset
Hello @jwyang , I met a problem with my custom dataset with only one class. I have modified the pascal_voc.py and voc_eval.py and factory.py to my dataset. And during the training phase value of loss went down to 0.5~0.6 at the first 100 iteration of 1th epoch. And then never changed. During the testing phase, the output value of mAP is 0.0000.
Can you help me?
you likely need to debug your entire changes and post up what you've customized.. I would start over and retry injecting custom data with a clean attempt.. and perhaps you'll see something wrong, and/or post it up here.
@EMCP hello, thank you for your help! I have changed https://github.com/jwyang/faster-rcnn.pytorch/blob/0797f6290e104e7d63cd487af759840d4a36985b/lib/datasets/pascal_voc.py#L48-L53 as only one class which from my dataset (for sure also with 'background' in the code). And also set up a new entry for my own dataset in factory.py. After that I have modified the trainval_net.py and test_net.py by here: https://github.com/jwyang/faster-rcnn.pytorch/blob/0797f6290e104e7d63cd487af759840d4a36985b/trainval_net.py#L155-L158 to add my own dataset entry also. What's more my the objects on my own dataset are small, labeled bounding box are 20 x 20. So I changed the anchor sizes here: https://github.com/jwyang/faster-rcnn.pytorch/blob/0797f6290e104e7d63cd487af759840d4a36985b/lib/model/rpn/generate_anchors.py#L45 to base_size = 4. For the training cfg. I used res50.yml by POOLING_MODE: align.
Above are my entire changes. I don't know where my problem is, hope you can help me if you have time
just to confirm, you already ran with the regular dataset successfully.. yes?
@EMCP no I didn't run with the regular dataset. As for my own dataset, I have already run with Yolov3 and CenterNet successfully.
@lyx190 Did you solve your problem?
Actually I have my own dataset in format of ["filename" "boxes label values Like x-min y-min x-max y-max" "class-name"] and filename consist the path of the image, so how can given this dataset to model for testing and training , please help me ..
@Saharkakavand yep, you should just modify the class categories during testing phase.
@devendraswamy did you find a way to this problem? if yes please let me know