Upload dave.py with huggingface_hub
Browse files
dave.py
CHANGED
@@ -97,12 +97,16 @@ class DaveDataset(datasets.GeneratorBasedBuilder):
|
|
97 |
with open(json_path, "r", encoding="utf-8") as f:
|
98 |
data = json.load(f)
|
99 |
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
for idx, item in enumerate(data):
|
101 |
|
102 |
-
|
103 |
-
|
104 |
-
if "P02" in f:
|
105 |
-
print(f, downloaded_files[f])
|
106 |
|
107 |
for field in _MEDIA_FIELDS:
|
108 |
if "P02" not in item[field]:
|
|
|
97 |
with open(json_path, "r", encoding="utf-8") as f:
|
98 |
data = json.load(f)
|
99 |
|
100 |
+
|
101 |
+
print(len(downloaded_files))
|
102 |
+
for f in downloaded_files.keys():
|
103 |
+
if "P02" in f:
|
104 |
+
print(f, downloaded_files[f])
|
105 |
+
|
106 |
for idx, item in enumerate(data):
|
107 |
|
108 |
+
if "P02" in item["raw_video_path"]:
|
109 |
+
print(item)
|
|
|
|
|
110 |
|
111 |
for field in _MEDIA_FIELDS:
|
112 |
if "P02" not in item[field]:
|