chenhang98 / BPR

code for `Look Closer to Segment Better: Boundary Patch Refinement for Instance Segmentation`
Apache License 2.0
173 stars 23 forks source link

Do you have the code to convert labelme to the format required by this algorithm? #17

Closed Ocean-ZHY closed 2 years ago

Ocean-ZHY commented 2 years ago

I can’t understand the data set conversion you mentioned in Training. This has troubled me for a long time. Do you have any relevant code? What does coarse_json_train_filtered in tools/prepare_dataset.sh mean? thank you

chenhang98 commented 2 years ago

Sorry for the late reply. You can first convert to COCO format, and then follow https://github.com/tinyalpha/BPR#on-other-datasets . When constructing the training set, we do not include the bounding boxes whose IoU with ground truth is less than 0.5. These boxes are many and are harmful to performance. So we filter it first and save the result in coarse_json_train_filtered.