Not all mask instances downloaded
Summary
The package only downloads one instance of a given label although multiple instances exist within the downloaded .json file per image.
Steps to reproduce
OS: macOS High Sierra, version: Labelbox-Utils v.0.0.3,
Called labelbox_export_json
with .json downloaded from LapUS segmentation labelbox.
What is the current bug behavior?
Only one label per category per image is downloaded into the created directories, eg: ./241_1562576210064153856_vessel.bmp
What is the expected correct behavior?
Multiple labels per category per image should be downloaded, as there are multiple "vessel" dictionary items in the "objects" list per image.
Possible fixes
Introduce counter in loop, append to counter to filename, so distinct filenames are created and this conditional statement is not passed over.