Datasets:
ArXiv:
License:
Update medianomaly.py
Browse files- medianomaly.py +1 -2
medianomaly.py
CHANGED
@@ -66,11 +66,10 @@ class Medianomaly(datasets.GeneratorBasedBuilder):
|
|
66 |
if config_name not in _URLS:
|
67 |
raise NotImplementedError(f"{config_name} is not implemented in Medianomaly.")
|
68 |
archive_path = dl_manager.download_and_extract(_URLS[config_name])
|
69 |
-
print(archive_path)
|
70 |
|
71 |
|
72 |
if config_name == "rsna":
|
73 |
-
data_dir = os.path.join(archive_path, config_name)
|
74 |
with open(os.path.join(data_dir, "data.json"), "r") as f:
|
75 |
metadata = json.load(f)
|
76 |
return [
|
|
|
66 |
if config_name not in _URLS:
|
67 |
raise NotImplementedError(f"{config_name} is not implemented in Medianomaly.")
|
68 |
archive_path = dl_manager.download_and_extract(_URLS[config_name])
|
|
|
69 |
|
70 |
|
71 |
if config_name == "rsna":
|
72 |
+
data_dir = os.path.join(archive_path, config_name.upper())
|
73 |
with open(os.path.join(data_dir, "data.json"), "r") as f:
|
74 |
metadata = json.load(f)
|
75 |
return [
|