Skip to content

Commit 76b5523

Browse files
committed
black
1 parent 703d33d commit 76b5523

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

example/model_usage.ipynb

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@
3030
"outputs": [],
3131
"source": [
3232
"try:\n",
33-
" import bioimageio.core\n",
34-
" import torch\n",
3533
" import matplotlib\n",
34+
" import torch\n",
35+
"\n",
36+
" import bioimageio.core\n",
3637
"except ImportError:\n",
3738
" %pip install bioimageio.core==0.6.7 torch==2.3.1 matplotlib==3.9.0"
3839
]
@@ -73,11 +74,13 @@
7374
"outputs": [],
7475
"source": [
7576
"# Load general dependencies\n",
76-
"from imageio.v2 import imread\n",
77-
"from bioimageio.spec.utils import download\n",
7877
"from pprint import pprint\n",
78+
"\n",
7979
"import matplotlib.pyplot as plt\n",
8080
"import numpy as np\n",
81+
"from imageio.v2 import imread\n",
82+
"\n",
83+
"from bioimageio.spec.utils import download\n",
8184
"\n",
8285
"\n",
8386
"# Function to display input and prediction output images\n",
@@ -300,8 +303,8 @@
300303
"metadata": {},
301304
"outputs": [],
302305
"source": [
303-
"from bioimageio.spec.utils import load_array\n",
304306
"from bioimageio.spec.model import v0_5\n",
307+
"from bioimageio.spec.utils import load_array\n",
305308
"\n",
306309
"assert isinstance(model, v0_5.ModelDescr)\n",
307310
"input_image = load_array(model.inputs[0].test_tensor)\n",

0 commit comments

Comments
 (0)