080c0c2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import json def load_subset(path): with open(path, mode='r') as f: subset = set(f.read().splitlines()) return subset def load_empty_masks(path): with open(path, mode='r') as f: empty_masks = json.load(f) return empty_masks