Skip to content

Commit 86bfac0

Browse files
fix
1 parent 0a4cb47 commit 86bfac0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

scripts/make-blacklist.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,19 @@ def main(args):
5353
stats = None
5454
with open(os.path.join(folder, 'remote', 'stats.json'), 'r') as f:
5555
stats = json.load(f)
56+
57+
badDatasets = [] # list of tuples (userId, placeId, screenId)
58+
if os.path.exists(os.path.join(folder, 'blacklist.json')):
59+
with open(os.path.join(folder, 'blacklist.json'), 'r') as f:
60+
badDatasets = json.load(f)
61+
pass
5662

5763
model = dict(timesteps=timesteps, stats=stats, use_encoders=False)
5864
assert args.model is not None, 'The model should be specified'
5965
if args.model is not None:
6066
model['weights'] = dict(folder=folder, postfix=args.model, embeddings=True)
6167

6268
model = CModelTrainer(**model)
63-
badDatasets = [] # list of tuples (userId, placeId, screenId) for the blacklisted datasets
6469
# find folders with the name "/test-*/"
6570
for nm in glob.glob(os.path.join(folder, 'test-main', 'test-*/')):
6671
evalDataset = CTestLoader(nm)

0 commit comments

Comments
 (0)