Skip to content

Commit 9c98c7e

Browse files
committed
WIP update README.md
1 parent aa3e934 commit 9c98c7e

File tree

1 file changed

+55
-23
lines changed

1 file changed

+55
-23
lines changed

README.md

Lines changed: 55 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ bioimage.core offers.
2121
install -c conda-forge bioimageio.core pytorch
2222
```
2323

24-
2. run the test for a model
24+
1. test a model
2525

2626
```console
2727
bioimageio test powerful-chipmunk
@@ -61,11 +61,43 @@ computing SHA256 of 97a83ece802cfc5ba362aa76b5f77c3a-weights-torchscript.pt (res
6161
✔️ Reproduce test outputs from test inputs
6262
```
6363

64-
3. run prediction on your data
64+
1. run prediction on your data
6565

66-
```console
67-
bioimageio predict powerful-chipmunk <path to your input data>
68-
```
66+
- display the `bioimageio-predict` command interface
67+
68+
```console
69+
> bioimageio predict -h
70+
usage: bioimageio predict [-h] [--inputs {str,Sequence[str]}] [--outputs {str,Sequence[str]}] [--overwrite bool]
71+
[--blockwise bool] [--stats Path]
72+
SOURCE
73+
74+
bioimageio-predict - Run inference on your data with a bioimage.io model.
75+
76+
positional arguments:
77+
SOURCE Url/path to a bioimageio.yaml/rdf.yaml file or a bioimage.io resource identifier, e.g.
78+
'affable-shark'
79+
80+
optional arguments:
81+
-h, --help show this help message and exit
82+
--inputs {str,Sequence[str]}
83+
model inputs Either a single path/glob pattern including `{tensor_id}` to be used for all
84+
model inputs, or a list of paths/glob patterns for each model input respectively. For models
85+
with a single input a single path/glob pattern with `{tensor_id}` is also accepted.
86+
(default: model_inputs/*/{tensor_id}.*)
87+
--outputs {str,Sequence[str]}
88+
output paths analog to `inputs` (default: outputs_{model_id}/{sample_id}/{tensor_id}.npy)
89+
--overwrite bool allow overwriting existing output files (default: False)
90+
--blockwise bool process inputs blockwise (default: False)
91+
--stats Path path to dataset statistics (will be written if it does not exist, but the model requires
92+
statistical dataset measures) (default: model_inputs\dataset_statistics.json)
93+
```
94+
95+
- locate your input data
96+
- predict away!
97+
98+
```console
99+
bioimageio predict affable-shark
100+
```
69101

70102
## Installation
71103

@@ -81,7 +113,7 @@ If you do not install any additional deep learning libraries, you will only be a
81113
functionality, but not any functionality for model prediction.
82114
To install additional deep learning libraries use:
83115

84-
* Pytorch/Torchscript:
116+
- Pytorch/Torchscript:
85117

86118
CPU installation (if you don't have an nvidia graphics card):
87119

@@ -97,15 +129,15 @@ To install additional deep learning libraries use:
97129

98130
Note that the pytorch installation instructions may change in the future. For the latest instructions please refer to [pytorch.org](https://pytorch.org/).
99131

100-
* Tensorflow
132+
- Tensorflow
101133

102134
Currently only CPU version supported
103135

104136
```console
105137
mamba install -c conda-forge bioimageio.core tensorflow
106138
```
107139

108-
* ONNXRuntime
140+
- ONNXRuntime
109141

110142
Currently only cpu version supported
111143

@@ -179,7 +211,7 @@ In addition bioimageio.core provides functionality to convert model weight forma
179211

180212
To get an overview of this functionality, check out these example notebooks:
181213

182-
* [model creation/loading with bioimageio.spec](https://github.com/bioimage-io/spec-bioimage-io/blob/main/example/load_model_and_create_your_own.ipynb)
214+
- [model creation/loading with bioimageio.spec](https://github.com/bioimage-io/spec-bioimage-io/blob/main/example/load_model_and_create_your_own.ipynb)
183215

184216
and the [developer documentation](https://bioimage-io.github.io/core-bioimage-io-python/bioimageio/core.html).
185217

@@ -191,45 +223,45 @@ The model specification and its validation tools can be found at <https://github
191223

192224
### 0.6.8
193225

194-
* testing model inference will now check all weight formats
226+
- testing model inference will now check all weight formats
195227
(previously only the first one for which model adapter creation succeeded had been checked)
196-
* fix predict with blocking (Thanks @thodkatz)
228+
- fix predict with blocking (Thanks @thodkatz)
197229

198230
### 0.6.7
199231

200-
* `predict()` argument `inputs` may be sample
232+
- `predict()` argument `inputs` may be sample
201233

202234
### 0.6.6
203235

204-
* add aliases to match previous API more closely
236+
- add aliases to match previous API more closely
205237

206238
### 0.6.5
207239

208-
* improve adapter error messages
240+
- improve adapter error messages
209241

210242
### 0.6.4
211243

212-
* add `bioimageio validate-format` command
213-
* improve error messages and display of command results
244+
- add `bioimageio validate-format` command
245+
- improve error messages and display of command results
214246

215247
### 0.6.3
216248

217-
* Fix [#386](https://github.com/bioimage-io/core-bioimage-io-python/issues/386)
218-
* (in model inference testing) stop assuming model inputs are tileable
249+
- Fix [#386](https://github.com/bioimage-io/core-bioimage-io-python/issues/386)
250+
- (in model inference testing) stop assuming model inputs are tileable
219251

220252
### 0.6.2
221253

222-
* Fix [#384](https://github.com/bioimage-io/core-bioimage-io-python/issues/384)
254+
- Fix [#384](https://github.com/bioimage-io/core-bioimage-io-python/issues/384)
223255

224256
### 0.6.1
225257

226-
* Fix [#378](https://github.com/bioimage-io/core-bioimage-io-python/pull/378) (with [#379](https://github.com/bioimage-io/core-bioimage-io-python/pull/379))*
258+
- Fix [#378](https://github.com/bioimage-io/core-bioimage-io-python/pull/378) (with [#379](https://github.com/bioimage-io/core-bioimage-io-python/pull/379))*
227259

228260
### 0.6.0
229261

230-
* add compatibility with new bioimageio.spec 0.5 (0.5.2post1)
231-
* improve interfaces
262+
- add compatibility with new bioimageio.spec 0.5 (0.5.2post1)
263+
- improve interfaces
232264

233265
### 0.5.10
234266

235-
* [Fix critical bug in predict with tiling](https://github.com/bioimage-io/core-bioimage-io-python/pull/359)
267+
- [Fix critical bug in predict with tiling](https://github.com/bioimage-io/core-bioimage-io-python/pull/359)

0 commit comments

Comments
 (0)