jordyvl commited on
Commit
bfa5bcd
1 Parent(s): 1f06b77

Update DUDE_loader.py

Browse files
Files changed (1) hide show
  1. DUDE_loader.py +2 -0
DUDE_loader.py CHANGED
@@ -230,6 +230,8 @@ class DUDE(datasets.GeneratorBasedBuilder):
230
  )
231
  return extracted_path
232
 
 
 
233
  split_condition = (
234
  lambda x, split: bool(x["data_split"] == split)
235
  if split in ["train", "val"]
 
230
  )
231
  return extracted_path
232
 
233
+ annotations = annotations['data'] if isinstance(annotations, dict) else annotations
234
+
235
  split_condition = (
236
  lambda x, split: bool(x["data_split"] == split)
237
  if split in ["train", "val"]