jmc255 commited on
Commit
0511667
1 Parent(s): 986dc0b
Files changed (1) hide show
  1. aphantasia_drawing_dataset.py +2 -2
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"] = np.nan
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"] = np.nan
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])