Update photos.py
Browse files
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('*.
|
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,
|