|
25 | 25 | "metadata": {},
|
26 | 26 | "outputs": [],
|
27 | 27 | "source": [
|
28 |
| - "!python -c \"import monai\" || pip install -q \"monai-weekly[gdown, tqdm]\"" |
| 28 | + "!python -c \"import monai\" || pip install -q \"monai-weekly[tqdm]\"" |
29 | 29 | ]
|
30 | 30 | },
|
31 | 31 | {
|
|
34 | 34 | "metadata": {},
|
35 | 35 | "outputs": [],
|
36 | 36 | "source": [
|
37 |
| - "import gdown\n", |
38 | 37 | "import os\n",
|
39 | 38 | "import matplotlib.pyplot as plt\n",
|
40 | 39 | "import numpy as np\n",
|
41 | 40 | "import torch\n",
|
42 | 41 | "from torch import jit\n",
|
43 | 42 | "\n",
|
| 43 | + "import monai\n", |
44 | 44 | "from monai.apps.deepgrow.transforms import (\n",
|
45 | 45 | " AddGuidanceFromPointsd,\n",
|
46 | 46 | " AddGuidanceSignald,\n",
|
|
145 | 145 | "source": [
|
146 | 146 | "# Download data and model\n",
|
147 | 147 | "\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", |
149 | 149 | "dst = \"_image.nii.gz\"\n",
|
150 | 150 | "\n",
|
151 | 151 | "if not os.path.exists(dst):\n",
|
152 |
| - " gdown.download(resource, dst, quiet=False)\n", |
| 152 | + " monai.apps.download_url(resource, dst)\n", |
153 | 153 | "\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", |
155 | 155 | "dst = \"deepgrow_2d.ts\"\n",
|
156 | 156 | "if not os.path.exists(dst):\n",
|
157 |
| - " gdown.download(resource, dst, quiet=False)" |
| 157 | + " monai.apps.download_url(resource, dst)" |
158 | 158 | ]
|
159 | 159 | },
|
160 | 160 | {
|
|
0 commit comments