From 76fa42f2c079ddfa126e303ec5878e1bccb054c3 Mon Sep 17 00:00:00 2001 From: Wenqi Li Date: Fri, 28 May 2021 17:31:56 +0100 Subject: [PATCH] move mednist to gdrive Signed-off-by: Wenqi Li --- monai/apps/datasets.py | 2 +- tests/test_download_and_extract.py | 2 +- tests/test_integration_classification_2d.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/monai/apps/datasets.py b/monai/apps/datasets.py index b5bc6e839b..3e9bc341e5 100644 --- a/monai/apps/datasets.py +++ b/monai/apps/datasets.py @@ -57,7 +57,7 @@ class MedNISTDataset(Randomizable, CacheDataset): """ - resource = "https://www.dropbox.com/s/5wwskxctvcxiuea/MedNIST.tar.gz?dl=1" + resource = "https://drive.google.com/uc?id=13MhoPsNgI6qboJfLicFf_jNvsFUbIYsd" md5 = "0bc7306e7427e00ad1c5526a6677552d" compressed_file_name = "MedNIST.tar.gz" dataset_folder_name = "MedNIST" diff --git a/tests/test_download_and_extract.py b/tests/test_download_and_extract.py index 1c6cec3c74..3c98ebd0c0 100644 --- a/tests/test_download_and_extract.py +++ b/tests/test_download_and_extract.py @@ -22,7 +22,7 @@ class TestDownloadAndExtract(unittest.TestCase): @skip_if_quick def test_actions(self): testing_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), "testing_data") - url = "https://www.dropbox.com/s/5wwskxctvcxiuea/MedNIST.tar.gz?dl=1" + url = "https://drive.google.com/uc?id=13MhoPsNgI6qboJfLicFf_jNvsFUbIYsd" filepath = os.path.join(testing_dir, "MedNIST.tar.gz") output_dir = testing_dir md5_value = "0bc7306e7427e00ad1c5526a6677552d" diff --git a/tests/test_integration_classification_2d.py b/tests/test_integration_classification_2d.py index 68493e4ffb..f8f4ffdc89 100644 --- a/tests/test_integration_classification_2d.py +++ b/tests/test_integration_classification_2d.py @@ -39,7 +39,7 @@ from tests.testing_data.integration_answers import test_integration_value from tests.utils import DistTestCase, TimedCall, skip_if_quick -TEST_DATA_URL = "https://www.dropbox.com/s/5wwskxctvcxiuea/MedNIST.tar.gz?dl=1" +TEST_DATA_URL = "https://drive.google.com/uc?id=13MhoPsNgI6qboJfLicFf_jNvsFUbIYsd" MD5_VALUE = "0bc7306e7427e00ad1c5526a6677552d" TASK = "integration_classification_2d"