File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 27
27
"metadata" : {},
28
28
"outputs" : [],
29
29
"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 " ,
31
31
" !python -c \" import matplotlib\" || pip install -q matplotlib==3.5.2\n " ,
32
32
" !pip install -q pytorch-ignite==0.4.8\n " ,
33
33
" \n " ,
Original file line number Diff line number Diff line change @@ -351,7 +351,7 @@ def run(args):
351
351
"{}:: Loading PT Model from: {}" .format (args .local_rank , args .input )
352
352
)
353
353
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 )
355
355
356
356
map_location = {"cuda:0" : "cuda:{}" .format (args .local_rank )}
357
357
network .load_state_dict (torch .load (args .input , map_location = map_location ))
You can’t perform that action at this time.
0 commit comments