vkashko commited on
Commit
0f4f76e
1 Parent(s): 75c354b

fix: image open bug

Browse files
Files changed (1) hide show
  1. portrait_and_26_photos.py +3 -1
portrait_and_26_photos.py CHANGED
@@ -1,3 +1,5 @@
 
 
1
  import datasets
2
  import pandas as pd
3
 
@@ -93,7 +95,7 @@ class PortraitAnd26Photos(datasets.GeneratorBasedBuilder):
93
  data = {
94
  row[5]: {
95
  'path': row[6],
96
- 'bytes': row[7]
97
  } for row in annotation.itertuples()
98
  }
99
 
 
1
+ import io
2
+
3
  import datasets
4
  import pandas as pd
5
 
 
95
  data = {
96
  row[5]: {
97
  'path': row[6],
98
+ 'bytes': io.BytesIO(row[7])
99
  } for row in annotation.itertuples()
100
  }
101