RossVermouth commited on
Commit
f25087c
·
1 Parent(s): 671ff03

Update test_dataset.py

Browse files
Files changed (1) hide show
  1. test_dataset.py +6 -6
test_dataset.py CHANGED
@@ -88,9 +88,9 @@ class TestDataset(datasets.GeneratorBasedBuilder):
88
  def _generate_examples(self, files):
89
  for i, path in enumerate(files):
90
  file_name = os.path.basename(path)
91
- if file_name.endswith(".jpeg"):
92
- yield i, {
93
- "image_file_path": path,
94
- "image": path,
95
- "labels": os.path.basename(os.path.dirname(path)).lower(),
96
- }
 
88
  def _generate_examples(self, files):
89
  for i, path in enumerate(files):
90
  file_name = os.path.basename(path)
91
+ # if file_name.endswith(".jpeg"):
92
+ yield i, {
93
+ "image_file_path": path,
94
+ "image": path,
95
+ "labels": os.path.basename(os.path.dirname(path)).lower(),
96
+ }