waspinator / pycococreator

Helper functions to create COCO datasets
Apache License 2.0
772 stars 179 forks source link

Preparing Custom Dataset - "NameError: name 'fnmatch' is not defined" #34

Open anmspro opened 4 years ago

anmspro commented 4 years ago

I have a dataset folder which contains two folders named images, annotations(../train/images, annotations). Each of these folders contains images. For example:

In images:

In annotations:

I have seen this blog. I modified the code and tried to run in colab for generating dataset. Then I got this error: NameError: name 'fnmatch' is not defined

How can I solve the issue? Can anyone guide me through the procedure for creating a dataset to apply mask rcnn? @waspinator @hannarud