rshrott commited on
Commit
34ea36d
1 Parent(s): 0efec3e

Update renovation.py

Browse files
Files changed (1) hide show
  1. renovation.py +1 -1
renovation.py CHANGED
@@ -84,7 +84,7 @@ class Renovations(datasets.GeneratorBasedBuilder):
84
  def _generate_examples(self, data_files, split):
85
  # Separate data by class
86
  data_by_class = {label: [] for label in _NAMES}
87
- allowed_extensions = {'.jpeg', '.jpg', '.PNG'}
88
  for label, path in data_files.items():
89
  files = [os.path.join(path, f) for f in os.listdir(path) if os.path.isfile(os.path.join(path, f)) and os.path.splitext(f)[1] in allowed_extensions]
90
  data_by_class[label].extend((file, label) for file in files)
 
84
  def _generate_examples(self, data_files, split):
85
  # Separate data by class
86
  data_by_class = {label: [] for label in _NAMES}
87
+ allowed_extensions = {'.jpeg', '.jpg'}
88
  for label, path in data_files.items():
89
  files = [os.path.join(path, f) for f in os.listdir(path) if os.path.isfile(os.path.join(path, f)) and os.path.splitext(f)[1] in allowed_extensions]
90
  data_by_class[label].extend((file, label) for file in files)