From 0dcf211d0c942b31bb5f162f29f0a8931b9a415f Mon Sep 17 00:00:00 2001 From: DmitriySidnev Date: Mon, 28 Jan 2019 14:37:15 +0300 Subject: [PATCH] Fix image id type to int in coco converter (#301) --- utils/coco/converter.py | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/coco/converter.py b/utils/coco/converter.py index a2bdbb91..15d58aca 100644 --- a/utils/coco/converter.py +++ b/utils/coco/converter.py @@ -397,6 +397,7 @@ def main(): z_order_off_counter += 1 # Create new image + image['id'] = int(image['id']) insert_image_data(image, args.image_dir, result_annotation) height = result_annotation['images'][-1]['height'] width = result_annotation['images'][-1]['width']