Skip to content

Commit 5475ab7

Browse files
committed
update 2d_slices_from_3d_training.ipynb
Signed-off-by: Wenqi Li <[email protected]>
1 parent b429c88 commit 5475ab7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/2d_slices_from_3d_training.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@
501501
" device=torch.device(\"cpu\"),\n",
502502
" padding_mode=\"replicate\",\n",
503503
" )\n",
504-
" val_output = slice_inferer(val_images, model)\n",
504+
" val_output = slice_inferer(val_images, model).to(\"cpu\")\n",
505505
" dice_metric(y_pred=val_output > 0.5, y=val_data[\"seg\"])\n",
506506
" print(\"Dice: \", dice_metric.get_buffer()[-1][0])\n",
507507
" fig = plt.figure(figsize=(10, 4))\n",
@@ -549,7 +549,7 @@
549549
"name": "python",
550550
"nbconvert_exporter": "python",
551551
"pygments_lexer": "ipython3",
552-
"version": "3.8.12"
552+
"version": "3.8.0"
553553
}
554554
},
555555
"nbformat": 4,

0 commit comments

Comments
 (0)