Commit
·
2d57e56
1
Parent(s):
23ab82c
Try writing to temp file
Browse files
SMVB.py
CHANGED
@@ -144,4 +144,6 @@ class SMVBDataset(datasets.GeneratorBasedBuilder):
|
|
144 |
if i%len(keys) < 2:
|
145 |
file_infos.append((file_path, file_object.read()))
|
146 |
else:
|
147 |
-
|
|
|
|
|
|
144 |
if i%len(keys) < 2:
|
145 |
file_infos.append((file_path, file_object.read()))
|
146 |
else:
|
147 |
+
with open('temp.npy','wb') as f:
|
148 |
+
f.write(file_object.read())
|
149 |
+
file_infos.append((file_path, np.load('temp.npy')))
|