alexrods commited on
Commit
87dc07c
1 Parent(s): 1e172be

Update mini_car_bikes_detection.py

Browse files
Files changed (1) hide show
  1. mini_car_bikes_detection.py +4 -2
mini_car_bikes_detection.py CHANGED
@@ -62,8 +62,10 @@ class MiniCarBikesDetection(datasets.GeneratorBasedBuilder):
62
  ]
63
 
64
  def _generate_examples(self, image_files):
65
- for image_file in image_files:
66
- yield {"image": Image.open(image_file[1])}
 
 
67
 
68
 
69
 
 
62
  ]
63
 
64
  def _generate_examples(self, image_files):
65
+ for image_file, image_obj in image_files:
66
+ yield image_file, {
67
+ "image": {"path": image_file, "bytes": image_obj.read()},
68
+ }
69
 
70
 
71