Skip to content

Commit c29d48b

Browse files
Merge pull request #123 from bioimage-io/code-examples
Add a notebook with usage examples and update README
2 parents a9fbb46 + 65652c3 commit c29d48b

File tree

2 files changed

+518
-13
lines changed

2 files changed

+518
-13
lines changed

README.md

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,22 @@ The `bioimageio.core` package supports various back-ends for running BioimageIO
1111
* Pytorch/Torchscript:
1212
```bash
1313
# cpu installation (if you don't have an nvidia graphics card)
14-
conda install -c pytorch -c conda-forge -c ilastik-forge bioimageio.core pytorch torchvision cpuonly
14+
conda install -c pytorch -c conda-forge bioimageio.core pytorch torchvision cpuonly
1515

1616
# gpu installation
17-
conda install -c pytorch -c conda-forge -c ilastik-forge bioimageio.core pytorch torchvision cudatoolkit
17+
conda install -c pytorch -c conda-forge bioimageio.core pytorch torchvision cudatoolkit
1818
```
1919

2020
* Tensorflow
2121
```bash
2222
# currently only cpu version supported
23-
conda install -c conda-forge -c ilastik-forge bioimageio.core tensorflow
23+
conda install -c conda-forge bioimageio.core tensorflow
2424
```
2525

2626
* ONNXRuntime
2727
```bash
2828
# currently only cpu version supported
29-
conda install -c conda-forge -c ilastik-forge bioimageio.core onnxruntime
29+
conda install -c conda-forge bioimageio.core onnxruntime
3030
```
3131

3232
### Set up Development Environment
@@ -42,27 +42,29 @@ There are different environment files that only install tensorflow or pytorch as
4242

4343
## Command Line
4444

45-
You can list all the available command line options:
45+
`bioimageio.core` installs a command line interface for testing models and other functionality. You can list all the available commands via:
4646
```
4747
bioimageio
4848
```
4949

50-
Test a model:
50+
Check that a model adheres to the model spec:
5151
```
52-
bioimageio test -m <MODEL>
52+
bioimageio validate <MODEL>
5353
```
5454

55-
Run prediction:
55+
Test a model (including prediction for the test input):
5656
```
57-
bioimageio predict -m <MODEL> -i <INPUT> -o <OUTPUT>
57+
bioimageio test-model -m <MODEL>
5858
```
5959

60-
This is subject to change, see https://github.com/bioimage-io/core-bioimage-io-python/issues/87.
61-
60+
Run prediction for an image stored on disc:
61+
```
62+
bioimageio predict-image -m <MODEL> -i <INPUT> -o <OUTPUT>
63+
```
6264

63-
## Running network predictions:
65+
## From python
6466

65-
TODO
67+
`bioimageio.core` can be used as a python library. See the notebook [example/bioimageio-core-usage.ipynb](https://github.com/bioimage-io/core-bioimage-io-python/blob/main/example/bioimageio-core-usage.ipynb) for usage examples.
6668

6769
## Model Specification
6870

0 commit comments

Comments
 (0)