File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 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 ]
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 " ,
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 " ,
You can’t perform that action at this time.
0 commit comments