wip
Browse files
ANAKIN.py
CHANGED
@@ -225,6 +225,7 @@ class Anakin(datasets.GeneratorBasedBuilder):
|
|
225 |
for key, sample in enumerate(files):
|
226 |
idx = sample["trimmed"].split("/")[-1].split(".")[0]
|
227 |
entry = df[df["video-id"] == idx]
|
|
|
228 |
if entry["has-masks"].values[0]:
|
229 |
sample["masks"] = [
|
230 |
{"path": p, "bytes": im.read()} for p, im in masks[idx]
|
|
|
225 |
for key, sample in enumerate(files):
|
226 |
idx = sample["trimmed"].split("/")[-1].split(".")[0]
|
227 |
entry = df[df["video-id"] == idx]
|
228 |
+
print(entry)
|
229 |
if entry["has-masks"].values[0]:
|
230 |
sample["masks"] = [
|
231 |
{"path": p, "bytes": im.read()} for p, im in masks[idx]
|