Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/qupath/qupath-bioimageio-spec
Support for parsing the BioImage Model Zoo spec in Java
https://github.com/qupath/qupath-bioimageio-spec
Last synced: 18 days ago
JSON representation
Support for parsing the BioImage Model Zoo spec in Java
- Host: GitHub
- URL: https://github.com/qupath/qupath-bioimageio-spec
- Owner: qupath
- License: mit
- Created: 2022-11-20T13:13:56.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-30T11:02:42.000Z (about 2 years ago)
- Last Synced: 2024-11-06T08:13:01.359Z (2 months ago)
- Language: Java
- Size: 104 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# QuPath BioImage Model Zoo Spec
Support for parsing the [BioImage Model Zoo spec](https://github.com/bioimage-io/spec-bioimage-io) in Java.
With thanks to the @bioimage-io for all their work in creating this spec and the model zoo.
## Purpose
This was written mostly to help support the BioImage Model Zoo in [QuPath](https://qupath.github.io).
It's separated out from QuPath's code in case it could be useful to anyone else.
## Dependencies
The spec is implemented in a single Java file with 3 dependencies:
* SnakeYAML
* Gson
* slf4j-apiGson might be removed as a dependency in the future.
## Compatibility
The code here should be compatible with Java 11.
It was written for the model spec v0.4.x, but attempts too also handle most yaml files written with the model spec v0.3.x.
## Building
The jar can be built with:
```
gradlew build
```There are a few sample model spec files for testing.
To test more, you can pass a base directory and the test code will search recursively (up to 5 levels deep) to find model yaml files to read.
```
gradlew test -Ptest.models=path/to/base/directory
```> Note: The testing isn't very extensive. Currently, it just checks the models can be parsed without exceptions.