Alexander Black
commited on
Commit
·
6af195e
1
Parent(s):
e8302ef
script wip
Browse files
ANAKIN.py
CHANGED
@@ -5,6 +5,7 @@ import random
|
|
5 |
|
6 |
import datasets
|
7 |
import pandas as pd
|
|
|
8 |
|
9 |
# TODO: Add BibTeX citation
|
10 |
# Find for instance the citation on arxiv or on the dataset repo/website
|
@@ -154,4 +155,4 @@ class Anakin(datasets.GeneratorBasedBuilder):
|
|
154 |
def _generate_examples(self, files):
|
155 |
for key, sample in enumerate(files):
|
156 |
print(sample)
|
157 |
-
yield key, {"trimmed": sample}
|
|
|
5 |
|
6 |
import datasets
|
7 |
import pandas as pd
|
8 |
+
from torchvision.io import read_video
|
9 |
|
10 |
# TODO: Add BibTeX citation
|
11 |
# Find for instance the citation on arxiv or on the dataset repo/website
|
|
|
155 |
def _generate_examples(self, files):
|
156 |
for key, sample in enumerate(files):
|
157 |
print(sample)
|
158 |
+
yield key, {"trimmed": read_video(sample, output_format="TCHW")}
|