From 5946a758f5cc5e6c1782b682e90b4f6abf4143eb Mon Sep 17 00:00:00 2001 From: Dmitry Sidnev Date: Mon, 28 Jan 2019 13:29:31 +0300 Subject: [PATCH] Fix image id type to int in coco converter --- utils/coco/converter.py | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/coco/converter.py b/utils/coco/converter.py index f7a3ea176f8b..3200edaa2297 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']