hanskrupakar / COCO-Style-Dataset-Generator-GUI

A simple GUI-based COCO-style JSON Polygon masks' annotation tool to facilitate quick and efficient crowd-sourced generation of annotation masks and bounding boxes. Optionally, one could choose to use a pretrained Mask RCNN model to come up with initial segmentations.
Apache License 2.0
144 stars 31 forks source link

IndexError: list index out of range #5

Closed gynr closed 6 years ago

gynr commented 6 years ago

python3 segment.py -i images/ -c classes/products.txt Traceback (most recent call last): File "segment.py", line 434, in gen = COCO_dataset_generator(fig, ax, args) File "segment.py", line 86, in init if os.path.exists(self.img_paths[self.index][:-3]+'txt'): IndexError: list index out of range

hanskrupakar commented 6 years ago

Fixed. Try now! You just need to make sure the images directory you give isn't empty.

gynr commented 6 years ago

Thanks.

hwjung92 commented 6 years ago

thank your for providing this program. but, it is hard to use. I failed to create COCO file. please, upgrade it more.

hanskrupakar commented 6 years ago

You need to use create_json_file.py to create the COCO dataset file. It's pretty self-contained. Use python create_json_file.py -h for help.