Alexander Black
commited on
Commit
•
a258b81
1
Parent(s):
387eef1
script wip
Browse files
ANAKIN.py
CHANGED
@@ -118,9 +118,12 @@ class Anakin(datasets.GeneratorBasedBuilder):
|
|
118 |
random.shuffle(ids)
|
119 |
|
120 |
data_urls = [
|
121 |
-
|
122 |
-
|
123 |
-
|
|
|
|
|
|
|
124 |
for idx in ids[:10]
|
125 |
]
|
126 |
data_dir = dl_manager.download(data_urls)
|
@@ -153,4 +156,4 @@ class Anakin(datasets.GeneratorBasedBuilder):
|
|
153 |
def _generate_examples(self, files):
|
154 |
for key, sample in enumerate(files):
|
155 |
print(sample)
|
156 |
-
yield key,
|
|
|
118 |
random.shuffle(ids)
|
119 |
|
120 |
data_urls = [
|
121 |
+
{
|
122 |
+
# "full": root_url + f"full/{idx}.mp4",
|
123 |
+
"trimmed": root_url + f"trimmed/{idx}.mp4",
|
124 |
+
"edited": root_url + f"edited/{idx}.mp4",
|
125 |
+
# "masks": root_url + f"masks/{idx}/",
|
126 |
+
}
|
127 |
for idx in ids[:10]
|
128 |
]
|
129 |
data_dir = dl_manager.download(data_urls)
|
|
|
156 |
def _generate_examples(self, files):
|
157 |
for key, sample in enumerate(files):
|
158 |
print(sample)
|
159 |
+
yield key, sample
|