My commit
Browse files
aphantasia_drawing_dataset.py
CHANGED
@@ -169,14 +169,14 @@ class AphantasiaDrawingDataset(datasets.GeneratorBasedBuilder):
|
|
169 |
img = Image.open(io.BytesIO(img_byt))
|
170 |
subjects_data[sub]["drawings"][room]["perception"] = img
|
171 |
else:
|
172 |
-
subjects_data[sub]["drawings"][room]["perception"] =
|
173 |
|
174 |
if subjects_data[sub]["drawings"][room]["memory"] != "":
|
175 |
img_byt = base64.b64decode(subjects_data[sub]["drawings"][room]["memory"])
|
176 |
img = Image.open(io.BytesIO(img_byt))
|
177 |
subjects_data[sub]["drawings"][room]["memory"] = img
|
178 |
else:
|
179 |
-
subjects_data[sub]["drawings"][room]["memory"] =
|
180 |
|
181 |
for room in subjects_data[sub]["image"].keys():
|
182 |
img_byt = base64.b64decode(subjects_data[sub]["image"][room])
|
|
|
169 |
img = Image.open(io.BytesIO(img_byt))
|
170 |
subjects_data[sub]["drawings"][room]["perception"] = img
|
171 |
else:
|
172 |
+
subjects_data[sub]["drawings"][room]["perception"] = None
|
173 |
|
174 |
if subjects_data[sub]["drawings"][room]["memory"] != "":
|
175 |
img_byt = base64.b64decode(subjects_data[sub]["drawings"][room]["memory"])
|
176 |
img = Image.open(io.BytesIO(img_byt))
|
177 |
subjects_data[sub]["drawings"][room]["memory"] = img
|
178 |
else:
|
179 |
+
subjects_data[sub]["drawings"][room]["memory"] = None
|
180 |
|
181 |
for room in subjects_data[sub]["image"].keys():
|
182 |
img_byt = base64.b64decode(subjects_data[sub]["image"][room])
|