Specifications for bioimage.io¤
bioimageio.spec contains the specifications of the standard format defined by the bioimage.io community to describe resources (i.e., models, datasets and applications) shared via the bioimage.io website.
Each shared resource is described using a YAML 1.2 file named rdf.yaml or bioimageio.yaml.
This rdf.yaml / bioimageio.yaml--- along with the files referenced in it --- can be downloaded from or uploaded to the bioimage.io website and may be produced or consumed by bioimage.io-compatible consumers (e.g., image analysis software like ilastik).
These are the latest format specifications that bioimage.io-compatible resources should comply to.
Note that the Python package PyYAML does not support YAML 1.2. We therefore use and recommend ruyaml. For differences see https://ruamelyaml.readthedocs.io/en/latest/pyyaml.
Please also note that the best way to check whether your bioimageio.yaml file is fully bioimage.io-compliant, is to call bioimageio.core.test_description from the bioimageio.core Python package.
The bioimageio.core Python package also provides the bioimageio command line interface (CLI) with the test command:
bioimageio test path/to/your/bioimageio.yaml
Documentation¤
The bioimageio.spec documentation is hosted at https://bioimage-io.github.io/spec-bioimage-io.
Installation¤
bioimageio.spec can be installed with either conda or pip.
We recommend installing bioimageio.core instead to get access to the Python programmatic features available in the BioImage.IO community:
conda install -c conda-forge bioimageio.core
or
pip install -U bioimageio.core
Still, for a lighter package or just testing, you can install the bioimageio.spec package solely:
conda install -c conda-forge bioimageio.spec
or
pip install -U bioimageio.spec
Format version overview¤
All bioimage.io description formats are defined as Pydantic models, see API overview.
| Type | Format Version | Documentation1 | Developer Documentation2 |
|---|---|---|---|
| model | 0.5 0.4 | model 0.5 model 0.4 | bioimageio.spec.model.v0_5.ModelDescr bioimageio.spec.model.v0_4.ModelDescr |
| dataset | 0.3 0.2 | dataset 0.3 dataset 0.2 | bioimageio.spec.dataset.v0_3.DatasetDescr bioimageio.spec.dataset.v0_2.DatasetDescr |
| notebook | 0.3 0.2 | notebook 0.3 notebook 0.2 | bioimageio.spec.notebook.v0_3.NotebookDescr bioimageio.spec.notebook.v0_2.NotebookDescr |
| application | 0.3 0.2 | application 0.3 application 0.2 | bioimageio.spec.application.v0_3.ApplicationDescr bioimageio.spec.application.v0_2.ApplicationDescr |
| generic | 0.3 0.2 | - | bioimageio.spec.generic.v0_3.GenericDescr bioimageio.spec.generic.v0_2.GenericDescr |
JSON Schema¤
Simplified descriptions are available as JSON Schema (generated with Pydantic):
| bioimageio.spec version | JSON Schema | documentation1 |
|---|---|---|
| latest | bioimageio_schema_latest.json | latest documentation |
| 0.5 | bioimageio_schema_v0-5.json | 0.5 documentation |
Note: bioimageio_schema_v0-5.json and bioimageio_schema_latest.json are identical, but bioimageio_schema_latest.json will eventually refer to the future bioimageio_schema_v0-6.json.
Flattened, interactive docs¤
Note: The flattened, interactive docs are currently not up to date!
Alternatively to the above metadata format documentation, this flattened view of the metadata specification that also shows value constraints can be explored.
-
JSON Schema based documentation generated with json-schema-for-humans. ↩↩
-
Part of the bioimageio.spec API reference. ↩