-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SAM and the bioengine / bioimageio-colab #3
Comments
Will look more into this! Agreed to the steps forward, I would be very happy to support this. I have already uploaded the two models you provided to the model repository, and they should be synchronized automatically to the bioengine instances:
For the client side, we can change the api to use the bioengine too. I will try to get back to this, or maybe @nilsmechtel can also help here too. |
Thanks! I tried to access them, but this failed: from imjoy_rpc.hypha import connect_to_server
SERVER_URL = "https://hypha.bioimage.io"
async def run():
server = await connect_to_server(
{"name": "test client", "server_url": SERVER_URL, "method_timeout": 100}
)
triton = await server.get_service("triton-client")
config = await triton.get_config(model_name="sam-vit_t-encoder")
if __name__ == "__main__":
import asyncio
asyncio.run(run()) Fails with
Can you share a small snippet for how to correctly access the model?
That would be great! We can also set up a zoom meeting at some point to coordinate. |
Thanks for trying, it appears that the model is failing,
I will need more investigation. |
I just tried it again, and the encoder is causing triton to crash:
|
Thanks for checking again @oeway. I will check it out locally later. |
Hi @oeway, import torch
model = torch.jit.load("test-export/sam-vit_t-encoder/1/model.pt")
input_data = torch.randn(1, 3, 1024, 1024)
model.eval() # Set to evaluation mode
with torch.no_grad():
output = model(input_data)
print("Run prediction ...")
print(output.shape) But I went ahead and uploaded another test model, using a |
Running SAM in the Modelzoo Universe
We have started with some efforts on integrating SAM with the bioengine / imjoy / bioimageio-colab.
I want to summarize here the overall goals, the current approaches and the steps and questions for how to achieve these goals.
Goals
I think there are two main goals for this integration:
For now I am mostly interested in implementing goal 1, but I think goal 2 is much more interesting mid/long-term.
Ultimately it would be nice to have a set of functionality that can be used to build apps for both of these approaches.
Current Approaches
We have two prototypes for SAM integration:
Next steps / Questions
The text was updated successfully, but these errors were encountered: