supervisely-tutorials icon indicating copy to clipboard operation
supervisely-tutorials copied to clipboard

FileNotFoundError in TextImageGenerator

Open slpraveenath opened this issue 6 years ago • 1 comments

I am getting the following error while running the TextImageGenerator even though the file is exists in the train folder in the name of C887YO06.png.json

FileNotFoundError Traceback (most recent call last) in ----> 1 tiger = TextImageGenerator('./data/train/', 'val', 128, 64, 8, 4) 2 tiger.build_data()

in init(self, dirpath, tag, img_w, img_h, batch_size, downsample_factor, max_text_len) 35 img_filepath = join(img_dirpath, filename) 36 json_filepath = join(ann_dirpath, name + '.json') ---> 37 ann = json.load(open(json_filepath, 'r')) 38 description = ann['description'] 39 tags = ann['tags']

FileNotFoundError: [Errno 2] No such file or directory: './data/train/ann/C887YO06.json'

slpraveenath avatar Aug 22 '19 06:08 slpraveenath

Just add .png before .json

ilay-chen avatar Nov 20 '19 11:11 ilay-chen