Update aphantasia_drawing_dataset.py
Browse files
aphantasia_drawing_dataset.py
CHANGED
@@ -72,7 +72,7 @@ def _get_drive_url(url):
|
|
72 |
split_url = url.split('/')
|
73 |
return base_url + split_url[5]
|
74 |
|
75 |
-
_URL = {"train":
|
76 |
|
77 |
|
78 |
|
@@ -146,7 +146,7 @@ class AphantasiaDrawingDataset(datasets.GeneratorBasedBuilder):
|
|
146 |
return image
|
147 |
return None
|
148 |
|
149 |
-
with open(filepath, "
|
150 |
subjects_data = pd.read_parquet(subjects_file)
|
151 |
#idx = 0
|
152 |
for sub_row in subjects_data.iterrows():
|
|
|
72 |
split_url = url.split('/')
|
73 |
return base_url + split_url[5]
|
74 |
|
75 |
+
_URL = {"train": _get_drive_url(url)}
|
76 |
|
77 |
|
78 |
|
|
|
146 |
return image
|
147 |
return None
|
148 |
|
149 |
+
with open(filepath, "rb") as subjects_file:
|
150 |
subjects_data = pd.read_parquet(subjects_file)
|
151 |
#idx = 0
|
152 |
for sub_row in subjects_data.iterrows():
|