Skip to content

Commit 0fd967c

Browse files
committed
fix #1901
Signed-off-by: YunLiu <[email protected]>
1 parent 77015e8 commit 0fd967c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

model_zoo/TCIA_PROSTATEx_Prostate_MRI_Anatomy_Model.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
"!python -c \"import cv2\" || pip install -q opencv-python-headless\n",
117117
"\n",
118118
"# These are the libraries used to read DICOM Seg objects.\n",
119-
"!python -m pip install -q pydicom pydicom-seg\n",
119+
"!python -m pip install -q pydicom==2.4.4 pydicom-seg\n",
120120
"\n",
121121
"# Install tcia_utils to download the datasets.\n",
122122
"!python -m pip install --upgrade -q --no-deps tcia_utils\n",
@@ -500,7 +500,7 @@
500500
},
501501
"outputs": [],
502502
"source": [
503-
"model.load_state_dict(torch.load(checkpoint, map_location=device))\n",
503+
"model.load_state_dict(torch.load(checkpoint, map_location=device, weights_only=True))\n",
504504
"model.eval()\n",
505505
"results = []\n",
506506
"with torch.no_grad():\n",

0 commit comments

Comments
 (0)