wip
Browse files
ANAKIN.py
CHANGED
@@ -1,12 +1,7 @@
|
|
1 |
-
import csv
|
2 |
-
import json
|
3 |
-
import os
|
4 |
import random
|
5 |
|
6 |
import datasets
|
7 |
import pandas as pd
|
8 |
-
from PIL import Image
|
9 |
-
from torchvision.io import read_video
|
10 |
|
11 |
# TODO: Add BibTeX citation
|
12 |
# Find for instance the citation on arxiv or on the dataset repo/website
|
@@ -170,7 +165,7 @@ class Anakin(datasets.GeneratorBasedBuilder):
|
|
170 |
df = pd.read_csv(metadata_dir)
|
171 |
if "full" in folders:
|
172 |
df = df[df["full-available"] == True]
|
173 |
-
if "masks" in
|
174 |
df = df[df["has-masks"] == True]
|
175 |
|
176 |
ids = df["video-id"].to_list()
|
|
|
|
|
|
|
|
|
1 |
import random
|
2 |
|
3 |
import datasets
|
4 |
import pandas as pd
|
|
|
|
|
5 |
|
6 |
# TODO: Add BibTeX citation
|
7 |
# Find for instance the citation on arxiv or on the dataset repo/website
|
|
|
165 |
df = pd.read_csv(metadata_dir)
|
166 |
if "full" in folders:
|
167 |
df = df[df["full-available"] == True]
|
168 |
+
if "-masks" in self.config.name:
|
169 |
df = df[df["has-masks"] == True]
|
170 |
|
171 |
ids = df["video-id"].to_list()
|