Alexander Black commited on
Commit
99bbb2a
·
1 Parent(s): 75fa9fe

script wip

Browse files
Files changed (1) hide show
  1. ANAKIN.py +5 -11
ANAKIN.py CHANGED
@@ -127,12 +127,10 @@ class Anakin(datasets.GeneratorBasedBuilder):
127
  "edited": root_url + f"edited/{idx}.mp4",
128
  # "masks": root_url + f"masks/{idx}/",
129
  }
130
- for idx in ids[:10]
131
  ]
132
  data_dir = dl_manager.download(data_urls)
133
  data_dir = dl_manager.iter_files(data_dir)
134
- print("data_dir")
135
- print(data_dir)
136
 
137
  return [
138
  datasets.SplitGenerator(
@@ -163,11 +161,7 @@ class Anakin(datasets.GeneratorBasedBuilder):
163
  ),
164
  ]
165
 
166
- def _generate_examples(self, filepath, ids, split):
167
- for key, idx in enumerate(ids):
168
- yield key, {
169
- # "full": filepath + f"full/{idx}.mp4",
170
- "trimmed": filepath + f"trimmed/{idx}.mp4",
171
- "edited": filepath + f"edited/{idx}.mp4",
172
- # "masks": filepath + f"masks/{idx}/",
173
- }
 
127
  "edited": root_url + f"edited/{idx}.mp4",
128
  # "masks": root_url + f"masks/{idx}/",
129
  }
130
+ for idx in ids
131
  ]
132
  data_dir = dl_manager.download(data_urls)
133
  data_dir = dl_manager.iter_files(data_dir)
 
 
134
 
135
  return [
136
  datasets.SplitGenerator(
 
161
  ),
162
  ]
163
 
164
+ def _generate_examples(self, files):
165
+ for key, sample in enumerate(files):
166
+ print(sample)
167
+ yield key, sample