@@ -21,7 +21,7 @@ bioimage.core offers.
21
21
install -c conda-forge bioimageio.core pytorch
22
22
```
23
23
24
- 2 . run the test for a model
24
+ 1 . test a model
25
25
26
26
``` console
27
27
bioimageio test powerful-chipmunk
@@ -61,11 +61,43 @@ computing SHA256 of 97a83ece802cfc5ba362aa76b5f77c3a-weights-torchscript.pt (res
61
61
✔️ Reproduce test outputs from test inputs
62
62
```
63
63
64
- 3 . run prediction on your data
64
+ 1 . run prediction on your data
65
65
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
+ ```
69
101
70
102
## Installation
71
103
@@ -81,7 +113,7 @@ If you do not install any additional deep learning libraries, you will only be a
81
113
functionality, but not any functionality for model prediction.
82
114
To install additional deep learning libraries use:
83
115
84
- * Pytorch/Torchscript:
116
+ - Pytorch/Torchscript:
85
117
86
118
CPU installation (if you don't have an nvidia graphics card):
87
119
@@ -97,15 +129,15 @@ To install additional deep learning libraries use:
97
129
98
130
Note that the pytorch installation instructions may change in the future. For the latest instructions please refer to [ pytorch.org] ( https://pytorch.org/ ) .
99
131
100
- * Tensorflow
132
+ - Tensorflow
101
133
102
134
Currently only CPU version supported
103
135
104
136
``` console
105
137
mamba install -c conda-forge bioimageio.core tensorflow
106
138
```
107
139
108
- * ONNXRuntime
140
+ - ONNXRuntime
109
141
110
142
Currently only cpu version supported
111
143
@@ -179,7 +211,7 @@ In addition bioimageio.core provides functionality to convert model weight forma
179
211
180
212
To get an overview of this functionality, check out these example notebooks:
181
213
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 )
183
215
184
216
and the [ developer documentation] ( https://bioimage-io.github.io/core-bioimage-io-python/bioimageio/core.html ) .
185
217
@@ -191,45 +223,45 @@ The model specification and its validation tools can be found at <https://github
191
223
192
224
### 0.6.8
193
225
194
- * testing model inference will now check all weight formats
226
+ - testing model inference will now check all weight formats
195
227
(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 )
197
229
198
230
### 0.6.7
199
231
200
- * ` predict() ` argument ` inputs ` may be sample
232
+ - ` predict() ` argument ` inputs ` may be sample
201
233
202
234
### 0.6.6
203
235
204
- * add aliases to match previous API more closely
236
+ - add aliases to match previous API more closely
205
237
206
238
### 0.6.5
207
239
208
- * improve adapter error messages
240
+ - improve adapter error messages
209
241
210
242
### 0.6.4
211
243
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
214
246
215
247
### 0.6.3
216
248
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
219
251
220
252
### 0.6.2
221
253
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 )
223
255
224
256
### 0.6.1
225
257
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 ) )*
227
259
228
260
### 0.6.0
229
261
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
232
264
233
265
### 0.5.10
234
266
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