wip
Browse files
ANAKIN.py
CHANGED
@@ -201,6 +201,7 @@ class Anakin(datasets.GeneratorBasedBuilder):
|
|
201 |
dl_manager.download(root_url + f"masks/{idx}.zip")
|
202 |
)
|
203 |
for idx in split_ids[split]
|
|
|
204 |
}
|
205 |
|
206 |
return [
|
@@ -226,7 +227,7 @@ class Anakin(datasets.GeneratorBasedBuilder):
|
|
226 |
print(idx)
|
227 |
entry = df[df["video-id"] == idx]
|
228 |
print(entry)
|
229 |
-
if
|
230 |
sample["masks"] = [
|
231 |
{"path": p, "bytes": im.read()} for p, im in masks[idx]
|
232 |
]
|
|
|
201 |
dl_manager.download(root_url + f"masks/{idx}.zip")
|
202 |
)
|
203 |
for idx in split_ids[split]
|
204 |
+
if df[df["video-id"] == idx]["has-masks"].values[0]
|
205 |
}
|
206 |
|
207 |
return [
|
|
|
227 |
print(idx)
|
228 |
entry = df[df["video-id"] == idx]
|
229 |
print(entry)
|
230 |
+
if idx in masks.keys():
|
231 |
sample["masks"] = [
|
232 |
{"path": p, "bytes": im.read()} for p, im in masks[idx]
|
233 |
]
|