rshrott commited on
Commit
8fdb331
1 Parent(s): fa45621

Update photos.py

Browse files
Files changed (1) hide show
  1. photos.py +1 -1
photos.py CHANGED
@@ -41,7 +41,7 @@ class Photos(datasets.GeneratorBasedBuilder):
41
  # Iterate over the images in the extracted directories and yield examples
42
  for label, dir in extracted_dirs.items():
43
  label_dir = os.path.join(self.config.data_dir, dir)
44
- for img_path in Path(label_dir).glob('*.jpg'):
45
  yield str(img_path), {
46
  "image": str(img_path),
47
  "label": label,
 
41
  # Iterate over the images in the extracted directories and yield examples
42
  for label, dir in extracted_dirs.items():
43
  label_dir = os.path.join(self.config.data_dir, dir)
44
+ for img_path in Path(label_dir).glob('*.jpeg'):
45
  yield str(img_path), {
46
  "image": str(img_path),
47
  "label": label,