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 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 " ,
Original file line number Diff line number Diff 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 ))
You can’t perform that action at this time.
0 commit comments