From 89e4faf80817fef4397db98d91eee6d42dc0ea4f Mon Sep 17 00:00:00 2001 From: Muhsin Fatih Yorulmaz Date: Tue, 14 Sep 2021 22:10:20 -0700 Subject: [PATCH 1/4] remember labelling mode asdf --- client/src/components/annotator/FileTitle.vue | 12 ++++++++---- client/src/views/Annotator.vue | 11 ++++++++--- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/client/src/components/annotator/FileTitle.vue b/client/src/components/annotator/FileTitle.vue index 0440611b..a67a3679 100755 --- a/client/src/components/annotator/FileTitle.vue +++ b/client/src/components/annotator/FileTitle.vue @@ -4,13 +4,13 @@ v-show="previousimage != null" class="fa fa-arrow-left image-arrows" style="float:left" - @click="route(previousimage)" + @click="route(previousimage, labelmode)" />
@@ -36,6 +36,10 @@ export default { nextimage: { type: Number, default: null + }, + labelmode: { + type: String, + required: false } }, methods: { @@ -44,13 +48,13 @@ export default { * * @param {Number} identifer id of a file */ - route(identifier) { + route(identifier, labelmode) { // Make sure we pop the latest session before annotations this.$parent.current.annotation = -1; this.$nextTick(() => { this.$parent.save(() => { - this.$router.push({ name: "annotate", params: { identifier } }); + this.$router.push({ name: "annotate", params: { identifier, labelmode } }); }); }); } diff --git a/client/src/views/Annotator.vue b/client/src/views/Annotator.vue index fbc2e6b8..498cd2cf 100755 --- a/client/src/views/Annotator.vue +++ b/client/src/views/Annotator.vue @@ -99,6 +99,7 @@ @@ -304,6 +305,10 @@ export default { identifier: { type: [Number, String], required: true + }, + labelmode: { + type: [String], + required: false } }, data() { @@ -313,7 +318,7 @@ export default { shapeOpacity: 0.6, zoom: 0.2, cursor: "move", - mode: "segment", + mode: this.labelmode || "segment", simplify: 1, panels: { show: { @@ -919,11 +924,11 @@ export default { }, nextImage() { if(this.image.next != null) - this.$refs.filetitle.route(this.image.next); + this.$refs.filetitle.route(this.image.next, this.mode); }, previousImage() { if(this.image.previous != null) - this.$refs.filetitle.route(this.image.previous); + this.$refs.filetitle.route(this.image.previous, this.mode); } }, watch: { From 07a6e17d2a95c33b129ba8ec2b0780165b06478e Mon Sep 17 00:00:00 2001 From: Muhsin Fatih Yorulmaz Date: Thu, 18 Nov 2021 08:27:47 +0000 Subject: [PATCH 2/4] fix permission error in non-sudo machine --- docker-compose.dev.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index 7855863f..3662c56a 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -34,6 +34,7 @@ services: - "./backend/database:/workspace/database" - "./datasets:/datasets" - "./models:/models" + user: ${CURRENT_UID} environment: - FILE_WATCHER=true - FLASK_APP=webserver @@ -81,6 +82,7 @@ services: - 5555:5555 networks: - cocoannotator + user: ${CURRENT_UID} database: image: mongo:4.0 container_name: annotator_mongodb From fb2a918007f8c2f5deff34d45dfed879e939c39e Mon Sep 17 00:00:00 2001 From: Muhsin Fatih Yorulmaz Date: Thu, 18 Nov 2021 08:28:15 +0000 Subject: [PATCH 3/4] fix random errors --- client/src/views/Annotator.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/client/src/views/Annotator.vue b/client/src/views/Annotator.vue index 498cd2cf..4172f947 100755 --- a/client/src/views/Annotator.vue +++ b/client/src/views/Annotator.vue @@ -1,6 +1,5 @@