Skip to content

Commit 171c487

Browse files
authored
688 fixes download links (Project-MONAI#689)
* tcia link Signed-off-by: Wenqi Li <[email protected]> * update deepgrow links Signed-off-by: Wenqi Li <[email protected]> * remove unused import Signed-off-by: Wenqi Li <[email protected]>
1 parent 64d5666 commit 171c487

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

deepgrow/ignite/inference.ipynb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"metadata": {},
2626
"outputs": [],
2727
"source": [
28-
"!python -c \"import monai\" || pip install -q \"monai-weekly[gdown, tqdm]\""
28+
"!python -c \"import monai\" || pip install -q \"monai-weekly[tqdm]\""
2929
]
3030
},
3131
{
@@ -34,13 +34,13 @@
3434
"metadata": {},
3535
"outputs": [],
3636
"source": [
37-
"import gdown\n",
3837
"import os\n",
3938
"import matplotlib.pyplot as plt\n",
4039
"import numpy as np\n",
4140
"import torch\n",
4241
"from torch import jit\n",
4342
"\n",
43+
"import monai\n",
4444
"from monai.apps.deepgrow.transforms import (\n",
4545
" AddGuidanceFromPointsd,\n",
4646
" AddGuidanceSignald,\n",
@@ -145,16 +145,16 @@
145145
"source": [
146146
"# Download data and model\n",
147147
"\n",
148-
"resource = \"https://drive.google.com/uc?id=1cIlDXWx4pEFpldoIXMEe-5JeaOxzB05Z\"\n",
148+
"resource = \"https://github.com/Project-MONAI/MONAI-extra-test-data/releases/download/0.8.1/_image.nii.gz\"\n",
149149
"dst = \"_image.nii.gz\"\n",
150150
"\n",
151151
"if not os.path.exists(dst):\n",
152-
" gdown.download(resource, dst, quiet=False)\n",
152+
" monai.apps.download_url(resource, dst)\n",
153153
"\n",
154-
"resource = \"https://drive.google.com/uc?id=1_J4qj-JRqQc9g8SGegq63Z_wq6gqgLLg\"\n",
154+
"resource = \"https://github.com/Project-MONAI/MONAI-extra-test-data/releases/download/0.8.1/deepgrow_2d.ts\"\n",
155155
"dst = \"deepgrow_2d.ts\"\n",
156156
"if not os.path.exists(dst):\n",
157-
" gdown.download(resource, dst, quiet=False)"
157+
" monai.apps.download_url(resource, dst)"
158158
]
159159
},
160160
{

modules/tcia_csv_processing.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@
244244
],
245245
"source": [
246246
"dataset = TCIADataset(\n",
247-
" url=\"https://drive.google.com/uc?id=1HQ7BZvBr1edmi8HIwdG5KBweXWms5Uzk\",\n",
247+
" url=\"https://github.com/Project-MONAI/MONAI-extra-test-data/releases/download/0.8.1/ISPY1_Combined.csv\",\n",
248248
" filename=os.path.join(root_dir, \"ISPY1_Combined.csv\"),\n",
249249
" img_dir=os.path.join(root_dir, \"tcia_images\"),\n",
250250
" row_indices=[[0, 8]],\n",
@@ -447,7 +447,7 @@
447447
"name": "python",
448448
"nbconvert_exporter": "python",
449449
"pygments_lexer": "ipython3",
450-
"version": "3.8.10"
450+
"version": "3.8.12"
451451
}
452452
},
453453
"nbformat": 4,

0 commit comments

Comments
 (0)