Skip to content
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

How to apply a model from Python #391

Open
haesleinhuepf opened this issue May 23, 2024 · 6 comments
Open

How to apply a model from Python #391

haesleinhuepf opened this issue May 23, 2024 · 6 comments
Assignees

Comments

@haesleinhuepf
Copy link
Contributor

Hi all,

I would like to apply a bioimage-io model to an image using Python. Unfortnunately, I cannot find the documentation that shows how to do this. Furthermore, the chatbot haluzinates API calls that don't work. Can anyone point me to the right place in the documentation, ideally a reproducible Jupyter notebook?

Thanks!

This is what the chatbot told me (2 attempts):

image

@oeway
Copy link
Contributor

oeway commented May 23, 2024

Hi @haesleinhuepf Sorry to hear that!

We are in the process of updating the core library, and the api has changed and the documentation is lagging behind.

Previously, we have this one: https://github.com/bioimage-io/core-bioimage-io-python/blob/main/example/model_usage.ipynb

For the chatbot, since the documentation is not loaded/updated into the knowledge base, I won't be supprised that it provide you wrong anwser.

@FynnBe Could you comment what's the best way for @haesleinhuepf to move forward in using the updated api?
Would it work if he pin the core library to an older version and use the notebook we made previously?

@constantinpape
Copy link
Contributor

Just to add: it would be ideal if we get back the functional API we had in the previous version of the bioimageio.core library. (With some adaptations if necessary.)

@FynnBe
Copy link
Member

FynnBe commented May 24, 2024

@haesleinhuepf thank you for reporting this issue.
I will add load_model and load_resource as aliases of load_description to match the previous API more closely

@haesleinhuepf
Copy link
Contributor Author

Thanks everyone for the feedback! Just a note: having a stable API and high-quality documentation is key for establishing a technology/ method in Python. It is impossible otherwise to teach people how to use bio-image model zoo. Thanks again!

@haesleinhuepf
Copy link
Contributor Author

Wow, this issue doesn't seem completed to me. Anyway, thanks for the feedback

@constantinpape
Copy link
Contributor

Wow, this issue doesn't seem completed to me. Anyway, thanks for the feedback

No, this one is not closed. I think #393 only addresses a narrow part of this by exposing the load_model function again.
The documentation for applying a model is still lacking.

@FynnBe FynnBe moved this from Planned 💭 to In Progress 🛠️ in Feature Release Checks May 29, 2024
@FynnBe FynnBe self-assigned this May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants