Skip to content

1086 update url #1087

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 1, 2022
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
8 changes: 4 additions & 4 deletions modules/resample_benchmark.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
"\n",
"# dict of file name and corresponding urls\n",
"url_dict = {\n",
" \"SimpleITK.jpg\": \"https://s3.amazonaws.com/simpleitk/public/notebooks/SHA512/f1b5ce1bf9d7ebc0bd66f1c3bc0f90d9e9798efc7d0c5ea7bebe0435f173355b27df632971d1771dc1fc3743c76753e6a28f6ed43c5531866bfa2b38f1b8fd46\", # noqa: E501\n",
" \"monai.png\": \"https://github.com/Project-MONAI/project-monai.github.io/raw/master/assets/logo/MONAI-logo_color.png\", # noqa: E501\n",
" \"mri.nii\": \"https://github.com/Project-MONAI/MONAI-extra-test-data/releases/download/0.8.1/Prostate_T2W_AX_1.nii\"\n",
"}\n",
"\n",
Expand Down Expand Up @@ -243,7 +243,7 @@
"# from ipywidgets import interact, fixed\n",
"# interact(\n",
"# transformation_display,\n",
"# img_path=fixed(f\"{root_dir}/SimpleITK.jpg\"),\n",
"# img_path=fixed(f\"{root_dir}/monai.png\"),\n",
"# tx=(-128.0, 128.0, 2.0),\n",
"# ty=(-64.0, 64.0),\n",
"# theta=(-np.pi/4.0, np.pi/4.0)\n",
Expand All @@ -263,7 +263,7 @@
"The following example randomly sample 10 physical points (locations) on an image and assign ascending displacements in y(H) direction accordingly.\n",
"Resampled intensities obtained by both MONAI and SimpleITK implementations are reported at all 10 points.\n",
"\n",
"First, 10 physical points are randomly sampled from the downloaded SimpleITK logo."
"First, 10 physical points are randomly sampled from the downloaded logo."
]
},
{
Expand All @@ -275,7 +275,7 @@
"outputs": [],
"source": [
"# Read image\n",
"img_path = f\"{root_dir}/SimpleITK.jpg\"\n",
"img_path = f\"{root_dir}/monai.png\"\n",
"monai_img = np.asarray(PIL.Image.open(img_path))\n",
"monai_img = monai_img.transpose((2, 0, 1))\n",
"monai_img = torch.tensor(monai_img, dtype=torch.float)\n",
Expand Down