Update fashion_mnist_corrupted.py
Browse files
fashion_mnist_corrupted.py
CHANGED
@@ -39,7 +39,7 @@ else:
|
|
39 |
raise ValueError("Unsupported version.")
|
40 |
|
41 |
_URL = (
|
42 |
-
f"https://github.com/testingautomated-usi/fashion-mnist-c/
|
43 |
)
|
44 |
|
45 |
_URLS = {
|
@@ -87,7 +87,7 @@ class FashionMnistCorrupted(datasets.GeneratorBasedBuilder):
|
|
87 |
|
88 |
def _split_generators(self, dl_manager):
|
89 |
urls_to_download = {
|
90 |
-
key: _URL + fname
|
91 |
}
|
92 |
downloaded_files = dl_manager.download_and_extract(urls_to_download)
|
93 |
|
|
|
39 |
raise ValueError("Unsupported version.")
|
40 |
|
41 |
_URL = (
|
42 |
+
f"https://github.com/testingautomated-usi/fashion-mnist-c/raw/{tag}/generated/npy/"
|
43 |
)
|
44 |
|
45 |
_URLS = {
|
|
|
87 |
|
88 |
def _split_generators(self, dl_manager):
|
89 |
urls_to_download = {
|
90 |
+
key: _URL + fname for key, fname in _URLS.items()
|
91 |
}
|
92 |
downloaded_files = dl_manager.download_and_extract(urls_to_download)
|
93 |
|