ROSE / tracker /utils /load_subset.py
weiyuchoumou526's picture
Initial commit
080c0c2
raw
history blame
259 Bytes
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