Skip to content

Commit 1717a32

Browse files
committed
update notebooks
1 parent a182b86 commit 1717a32

File tree

3 files changed

+30
-7
lines changed

3 files changed

+30
-7
lines changed

example/dataset_creation.ipynb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
{
22
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {},
6+
"source": [
7+
"# ⚠️ this notebook needs to be updated "
8+
]
9+
},
310
{
411
"cell_type": "code",
512
"execution_count": null,

example/dataset_statistics_demo.ipynb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
{
22
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"id": "29ff046c",
6+
"metadata": {},
7+
"source": [
8+
"# ⚠️ this notebook needs to be updated "
9+
]
10+
},
311
{
412
"cell_type": "code",
513
"execution_count": 1,

example/model_usage.ipynb

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,32 @@
88
"# bioimageio.core usage examples"
99
]
1010
},
11+
{
12+
"cell_type": "markdown",
13+
"id": "275284b2",
14+
"metadata": {},
15+
"source": [
16+
"# ⚠️ this notebook needs to be updated "
17+
]
18+
},
1119
{
1220
"cell_type": "code",
1321
"execution_count": null,
1422
"id": "c72ba149",
1523
"metadata": {},
1624
"outputs": [],
1725
"source": [
18-
"import os\n",
1926
"import hashlib\n",
27+
"import os\n",
2028
"\n",
21-
"import bioimageio.core\n",
2229
"import imageio\n",
2330
"\n",
2431
"# we use napari for visualising images, you can install it via `pip install napari` or`conda install napari`\n",
2532
"import napari\n",
2633
"import numpy as np\n",
27-
"import xarray as xr"
34+
"import xarray as xr\n",
35+
"\n",
36+
"import bioimageio.core"
2837
]
2938
},
3039
{
@@ -359,15 +368,14 @@
359368
"source": [
360369
"# The convenience function `predict_images` can be use to run prediction for many images stored on disc\n",
361370
"# Note: this only works for models which have a single input and output!\n",
362-
"from bioimageio.core.prediction import predict_images\n",
363-
"\n",
364371
"# Here we use a small subset of the dsb challenge data for prediction.\n",
365372
"# The original data is available at https://github.com/stardist/stardist/releases/download/0.1.0/dsb2018.zip.\n",
366373
"# We have added a few images to the repository so that the notebook runs out of the box.\n",
367-
"\n",
368374
"# Get all paths to the images in the \"example-images\" folder.\n",
369375
"from glob import glob\n",
370376
"\n",
377+
"from bioimageio.core.prediction import predict_images\n",
378+
"\n",
371379
"inputs = glob(\"./example-images/*.png\")\n",
372380
"\n",
373381
"# Create an output folder and specify the output path for each image.\n",
@@ -443,7 +451,7 @@
443451
"name": "python",
444452
"nbconvert_exporter": "python",
445453
"pygments_lexer": "ipython3",
446-
"version": "3.9.7"
454+
"version": "3.9.19"
447455
}
448456
},
449457
"nbformat": 4,

0 commit comments

Comments
 (0)