From 8fb66bc52317c555c4ae0dbc6b33a29d1707f15a Mon Sep 17 00:00:00 2001 From: Nils Mechtel Date: Thu, 24 Oct 2024 23:18:32 +0200 Subject: [PATCH] sam service mode random --- plugins/bioimageio-colab-annotator.imjoy.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/bioimageio-colab-annotator.imjoy.html b/plugins/bioimageio-colab-annotator.imjoy.html index bbb7426..0fbeabb 100644 --- a/plugins/bioimageio-colab-annotator.imjoy.html +++ b/plugins/bioimageio-colab-annotator.imjoy.html @@ -47,7 +47,7 @@ await api.alert("Please provide the annotation service ID in the configuration."); return; } - const samServiceId = "bioimageio-colab/kubernetes:sam"; + const samServiceId = "bioimageio-colab/*:microsam"; // Create and display the viewer window const viewer = await api.createWindow({src: "https://kaibu.org/#/app", fullscreen: true}); @@ -78,7 +78,7 @@ // Get the SAM service from the server let samService; try { - samService = await server.getService(samServiceId); + samService = await server.getService(samServiceId, {"mode": "random"}); } catch (e) { samService = null; await api.showMessage(`Failed to get the bioimageio-colab SAM service (id=${samServiceId}). Please try again later.`);