From ed69af4023a0c85a99f969c5fbca3bb1f17b517b Mon Sep 17 00:00:00 2001 From: Mubashir Hanif Date: Tue, 15 Oct 2019 10:46:31 +0200 Subject: [PATCH 1/2] added isbbox while importing --- backend/workers/tasks/data.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/workers/tasks/data.py b/backend/workers/tasks/data.py index 37f3476a..f581bf7f 100644 --- a/backend/workers/tasks/data.py +++ b/backend/workers/tasks/data.py @@ -221,6 +221,7 @@ def import_annotations(task_id, dataset_id, coco_json): # is_crowd = annotation.get('iscrowed', False) area = annotation.get('area', 0) bbox = annotation.get('bbox', [0, 0, 0, 0]) + isbbox = annotation.get('isbbox', False) progress += 1 task.set_progress((progress/total_items)*100, socket=socket) @@ -263,11 +264,12 @@ def import_annotations(task_id, dataset_id, coco_json): if has_keypoints: annotation_model.keypoints = keypoints + annotation_model.isbbox = isbbox annotation_model.save() image_categories.append(category_id) else: - annotation_model.update(deleted=False) + annotation_model.update(deleted=False, isbbox=isbbox) task.info(f"Annotation already exists (i:{image_id}, c:{category_id})") for image_id in images_id: From 83e42b9496f02e9d01e174b9bf19be6cbad0af6c Mon Sep 17 00:00:00 2001 From: Mubashir Hanif Date: Wed, 16 Oct 2019 13:53:39 +0200 Subject: [PATCH 2/2] removed the console log statement --- client/src/components/annotator/tools/SelectTool.vue | 1 - 1 file changed, 1 deletion(-) diff --git a/client/src/components/annotator/tools/SelectTool.vue b/client/src/components/annotator/tools/SelectTool.vue index d9459be8..17465b80 100755 --- a/client/src/components/annotator/tools/SelectTool.vue +++ b/client/src/components/annotator/tools/SelectTool.vue @@ -198,7 +198,6 @@ export default { this.moveObject = event.item; paperObject = event.item; } - console.log(paperObject, path); this.isBbox = this.checkBbox(paperObject); if (this.point != null) { this.edit.canMove = this.point.contains(event.point);