Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions model_zoo/TCIA_PROSTATEx_Prostate_MRI_Anatomy_Model.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
"!python -c \"import cv2\" || pip install -q opencv-python-headless\n",
"\n",
"# These are the libraries used to read DICOM Seg objects.\n",
"!python -m pip install -q pydicom pydicom-seg\n",
"!python -m pip install -q pydicom==2.4.4 pydicom-seg\n",
"\n",
"# Install tcia_utils to download the datasets.\n",
"!python -m pip install --upgrade -q --no-deps tcia_utils\n",
Expand Down Expand Up @@ -500,7 +500,7 @@
},
"outputs": [],
"source": [
"model.load_state_dict(torch.load(checkpoint, map_location=device))\n",
"model.load_state_dict(torch.load(checkpoint, map_location=device, weights_only=True))\n",
"model.eval()\n",
"results = []\n",
"with torch.no_grad():\n",
Expand Down
Loading