apal commited on
Commit
9eb42d1
·
1 Parent(s): 7823bd1
Files changed (1) hide show
  1. SkyScenes.py +5 -3
SkyScenes.py CHANGED
@@ -100,10 +100,12 @@ def _generate_examples(self, images, metadata_path):
100
  """Generate images and labels for splits."""
101
  with open(metadata_path, encoding="utf-8") as f:
102
  files_to_keep = set(f.read().split("\n"))
 
103
  for file_path, file_obj in images:
104
- if file_path.startswith(_IMAGES_DIR):
105
- if file_path[len(_IMAGES_DIR) : -len(".jpg")] in files_to_keep:
106
- label = file_path.split("/")[2]
 
107
  yield file_path, {
108
  "image": {"path": file_path, "bytes": file_obj.read()},
109
  }
 
100
  """Generate images and labels for splits."""
101
  with open(metadata_path, encoding="utf-8") as f:
102
  files_to_keep = set(f.read().split("\n"))
103
+ print('KEEP',files_to_keep)
104
  for file_path, file_obj in images:
105
+ print('FILE',file_path)
106
+ # if file_path.startswith(_IMAGES_DIR):
107
+ # if file_path[len(_IMAGES_DIR) : -len(".jpg")] in files_to_keep:
108
+ # label = file_path.split("/")[2]
109
  yield file_path, {
110
  "image": {"path": file_path, "bytes": file_obj.read()},
111
  }