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: 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);