Skip to content

Commit

Permalink
Update test_bioengine.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Nanguage authored Feb 11, 2024
1 parent 2edbd68 commit 53621b3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions public/test_bioengine.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@

SERVER_URL = "https://ai.imjoy.io"

image = await fetch_image('https://zenodo.org/api/records/6647683/files/sample_input_0.tif/content')
image = await fetch_image('https://zenodo.org/api/records/6647674/files/sample_input_0.tif/content')

server = await connect_to_server(
{"server_url": SERVER_URL, "method_timeout": 3000}
)
triton = await server.get_service("triton-client")

# get model RDF
#ret = await triton.execute(inputs=[{'inputs': None, "model_id": "powerful-chipmunk", 'return_rdf':True}],
#ret = await triton.execute(inputs=[{'inputs': None, "model_id": "affable-shark", 'return_rdf':True}],
# model_name="bioengine-model-runner",
# serialization="imjoy",
# )
Expand All @@ -27,7 +27,7 @@
# run the model
in_img = image[None, None, ...]

ret = await triton.execute(inputs=[{"inputs":[in_img], "model_id": "powerful-chipmunk"}],
ret = await triton.execute(inputs=[{"inputs":[in_img], "model_id": "affable-shark"}],
model_name="bioengine-model-runner",
serialization="imjoy",
)
Expand All @@ -41,4 +41,4 @@
ax1.set_title('input image')
ax2.imshow(mask[0][1])
ax2.set_title('predicted mask')
plt.show()
plt.show()

0 comments on commit 53621b3

Please sign in to comment.