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

Update BioImage Model Zoo Documentation #441

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

cfusterbarcelo
Copy link
Collaborator

@cfusterbarcelo cfusterbarcelo commented Jan 21, 2025

This PR updates multiple sections of the BioImage Model Zoo documentation following recent discussions and feedback from the community. The changes aim to improve clarity, provide more detailed instructions, and ensure that the documentation reflects the latest specifications and tools available.

Summary of changes

  • Updated documentation on creating and uploading models. I have changed and added the documentation on uploading and creating the models, even adding a notebook on how to create a model description from scratch.
  • Added a placeholder to add documentation on how to use the GUI to create models as requested by @Tomaz-Vieira.
  • Finished the guide for Tools and Resources
  • Added the "Best Practices for Model usage"
  • Added new documentation on how to use BMZ models in each Community Partner

@cfusterbarcelo cfusterbarcelo requested a review from FynnBe January 21, 2025 16:13
@cfusterbarcelo cfusterbarcelo self-assigned this Jan 21, 2025
Copy link

netlify bot commented Jan 21, 2025

Deploy Preview for bioimage ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 88cff6f
🔍 Latest deploy log https://app.netlify.com/sites/bioimage/deploys/67938409ef69940008a71d53
😎 Deploy Preview https://deploy-preview-441--bioimage.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

docs/guides/developers-guide.md Outdated Show resolved Hide resolved
To upload a model to the BioImage Model Zoo, the model must adhere to the specifications of the BioImage.IO format. This ensures compatibility and standardization across the platform. You can find the [latest specifications here](https://github.com/bioimage-io/spec-bioimage-io/blob/gh-pages/user_docs/model_descr_latest.md). Creating a model involves exporting or packaging it into a specific format with defined characteristics. Below are the various ways to create a model in the BioImage.IO format.

#### 1. Using the `bioimageio.core` Python Library
This is the most recommended and streamlined method. The library provides tools for automatic export and validation of models.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess our recommendation depends on the usecase

docs/guides/developers-guide.md Outdated Show resolved Hide resolved
docs/guides/developers-guide.md Outdated Show resolved Hide resolved
docs/guides/developers-guide.md Outdated Show resolved Hide resolved
docs/guides/developers-guide.md Outdated Show resolved Hide resolved
Use the library to export your model programmatically in Python. See the example code in this [Jupyter Notebook](https://github.com/bioimage-io/core-bioimage-io-python/blob/main/example/model_creation.ipynb).
The primary function for building a model is `bioimageio.core.build_model`. Check its input parameters to understand what is required. Here you can also find an [example notebook](https://github.com/bioimage-io/core-bioimage-io-python/blob/main/presentations/create_ambitious_sloth.ipynb) that demonstrates how to create a model description from scratch.

- **Manual Generation:**
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this section shouldn't be under "Using the bioimageio.core Python Library"

```
- **Dynamic Validation:** Test the model’s deployment to ensure it generates the expected output. Example:
```bash
bioimageio test-model --weights tensorflow_saved_model_bundle --device cpu /path/to/rdf.yaml
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the command is only called bioimageio test by now and it does include the static validation... So we shouldn't recommend to do static and then dynamic, but rather just the core test...
We should point to https://github.com/bioimage-io/core-bioimage-io-python?tab=readme-ov-file#-use-the-command-line-interface here instead of reproducing it (making it prone to be outdated)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here it is also left out how to install (for that reference https://github.com/bioimage-io/core-bioimage-io-python?tab=readme-ov-file#get-started)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you write it shortly and add the refernece? I get a bit confused because I just rewrote and added some new references because this was already there...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will do

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

made a separate PR for this: #441

1. Visit the [bioimageio](https://bioimage.io) website and click the "Upload" button to access the model upload page.
2. Log in using your Google or GitHub account.
3. Upload a resource file, which can be a single zip archive containing all necessary files, or you can select/drag and drop individual files. The 'rdf.yaml' file needed for uploading can be created in the next step.
4. Automatically once added the yaml file, you will have to "Review and Edit Your Model", to do this, provide all necessary metadata to create the 'rdf.yaml' file if it was not done yet. Ensure to give a descriptive name and description, and add the maintainer responsible for the upload. See the Model Documentation below for details such as how to name your model.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automatically ... ?
part of the sentence before?
Maybe add a screenshot?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When you upload the yaml file, you are redirected automatically to the "Reivew and Edit Your Model section.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see. I don't think that comes across intuitively with the current formulation

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed!

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

Successfully merging this pull request may close these issues.

2 participants