sanak commited on
Commit
c3aa4f9
·
1 Parent(s): 7737326

Update IDD.py

Browse files
Files changed (1) hide show
  1. IDD.py +1 -1
IDD.py CHANGED
@@ -117,7 +117,7 @@ class IDD(datasets.GeneratorBasedBuilder):
117
  # TODO: This method handles input defined in _split_generators to yield (key, example) tuples from the dataset.
118
  idx = 0
119
  #itrate trough images
120
- from file_path , image in images:
121
  yield idx, {
122
  "image": {"filepath": file_path, 'image': image.read()}
123
  }
 
117
  # TODO: This method handles input defined in _split_generators to yield (key, example) tuples from the dataset.
118
  idx = 0
119
  #itrate trough images
120
+ for file_path , image in images:
121
  yield idx, {
122
  "image": {"filepath": file_path, 'image': image.read()}
123
  }