Skip to content

Commit 3c16290

Browse files
authored
Fix deepedit tutorial (#696)
Signed-off-by: Andres Diaz-Pinto <[email protected]>
1 parent d8d0d4e commit 3c16290

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

deepedit/ignite/infoANDinference.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"metadata": {},
2828
"outputs": [],
2929
"source": [
30-
"!python -c \"import monai\" || pip install -q \"monai-weekly[nibabel tqdm]\"\n",
30+
"!python -c \"import monai\" || pip install -q \"monai-weekly[nibabel, tqdm]\"\n",
3131
"!python -c \"import matplotlib\" || pip install -q matplotlib==3.5.2\n",
3232
"!pip install -q pytorch-ignite==0.4.8\n",
3333
"\n",

deepedit/ignite/train.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ def run(args):
351351
"{}:: Loading PT Model from: {}".format(args.local_rank, args.input)
352352
)
353353
device = torch.device("cuda" if args.use_gpu else "cpu")
354-
network = get_network(args.network, args.channels, args.dimensions).to(device)
354+
network = get_network(args.network, args.labels, args.spatial_size).to(device)
355355

356356
map_location = {"cuda:0": "cuda:{}".format(args.local_rank)}
357357
network.load_state_dict(torch.load(args.input, map_location=map_location))

0 commit comments

Comments
 (0)