Skip to content

Commit

Permalink
sam service mode random
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsmechtel committed Oct 24, 2024
1 parent aea958f commit 8fb66bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/bioimageio-colab-annotator.imjoy.html
Original file line number Diff line number Diff line change
Expand Up @@ -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});
Expand Down Expand Up @@ -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.`);
Expand Down

0 comments on commit 8fb66bc

Please sign in to comment.