Skip to content

Commit eaf509d

Browse files
committed
update 2d_slices_from_3d_sampling.ipynb
Signed-off-by: Wenqi Li <[email protected]>
1 parent fb6f994 commit eaf509d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/2d_slices_from_3d_sampling.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@
519519
" device=torch.device(\"cpu\"),\n",
520520
" padding_mode=\"replicate\",\n",
521521
" )\n",
522-
" val_output = slice_inferer(val_images, model)\n",
522+
" val_output = slice_inferer(val_images, model).cpu()\n",
523523
" dice_metric(y_pred=val_output > 0.5, y=val_data[\"seg\"])\n",
524524
" print(\"Dice: \", dice_metric.get_buffer()[-1][0])\n",
525525
" fig = plt.figure(figsize=(10, 4))\n",

0 commit comments

Comments
 (0)