jmhb commited on
Commit
d48be72
·
verified ·
1 Parent(s): 5160dcf

Update load_viddiff_dataset.py

Browse files
Files changed (1) hide show
  1. load_viddiff_dataset.py +0 -14
load_viddiff_dataset.py CHANGED
@@ -46,20 +46,6 @@ def load_viddiff_dataset(splits=["easy"], subset_mode="0", cache_dir=None, test_
46
  # dataset = dataset.map(_clean_annotations)
47
  dataset = apply_subset_mode(dataset, subset_mode)
48
 
49
- dataset = _get_difficulty_splits(dataset)
50
-
51
- return dataset
52
-
53
-
54
- def _get_difficulty_splits(dataset):
55
- with open("data/lookup_action_to_split.json", "r") as fp:
56
- lookup_action_to_split = json.load(fp)
57
-
58
- def add_split_difficulty(example):
59
- example['split_difficulty'] = lookup_action_to_split[example['action']]
60
- return example
61
-
62
- dataset = dataset.map(add_split_difficulty)
63
  return dataset
64
 
65
 
 
46
  # dataset = dataset.map(_clean_annotations)
47
  dataset = apply_subset_mode(dataset, subset_mode)
48
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49
  return dataset
50
 
51