Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
EliasVansteenkiste committed Apr 7, 2017
1 parent 362d754 commit 86c7f33
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions configs_class_dsb/dsb_a_eliasq14_mal2_s5_p8a1_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ def candidates_prep_function(all_candidates, n_selection=None):
print 'n valid', len(valid_pids)
print 'n test', len(test_pids)
all_pids = train_pids + valid_pids + test_pids
stage2_pids = [] #utils.load_pkl(pathfinder.STAGE2_PIDS)

id2label = utils_lung.read_labels(pathfinder.LABELS_PATH)
id2label_test = utils_lung.read_test_labels(pathfinder.TEST_LABELS_PATH)
Expand Down Expand Up @@ -127,7 +128,7 @@ def candidates_prep_function(all_candidates, n_selection=None):
id2candidates_path=id2candidates_path,
id2label = id2label_all,
rng=rng,
patient_ids=test_pids,
patient_ids=stage2_pids,
random=False, infinite=False)


Expand Down Expand Up @@ -155,7 +156,6 @@ def candidates_prep_function(all_candidates, n_selection=None):
patient_ids=valid_pids,
tta = 64)


nchunks_per_epoch = train_data_iterator.nsamples / batch_size
max_nchunks = nchunks_per_epoch * 10

Expand Down
3 changes: 2 additions & 1 deletion configs_class_dsb/dsb_a_eliasq15_mal2_s5_p8a1_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ def candidates_prep_function(all_candidates, n_selection=None):
print 'n valid', len(valid_pids)
print 'n test', len(test_pids)
all_pids = train_pids + valid_pids + test_pids
stage2_pids = [] #utils.load_pkl(pathfinder.STAGE2_PIDS)

id2label = utils_lung.read_labels(pathfinder.LABELS_PATH)
id2label_test = utils_lung.read_test_labels(pathfinder.TEST_LABELS_PATH)
Expand Down Expand Up @@ -127,7 +128,7 @@ def candidates_prep_function(all_candidates, n_selection=None):
id2candidates_path=id2candidates_path,
id2label = id2label_all,
rng=rng,
patient_ids=test_pids,
patient_ids=stage2_pids,
random=False, infinite=False)


Expand Down

0 comments on commit 86c7f33

Please sign in to comment.