Skip to content
Snippets Groups Projects
Commit ffa55b59 authored by Nuno Pimpão Santos Martins's avatar Nuno Pimpão Santos Martins
Browse files

update script to do some quantifications

parent c4112786
No related branches found
No related tags found
No related merge requests found
...@@ -12,8 +12,8 @@ from tqdm import tqdm ...@@ -12,8 +12,8 @@ from tqdm import tqdm
# Data Import # Data Import
# --- # ---
#raw data path #raw data path
raw_mask_path = 'w:\\NPC_adult_new\\dl_training\\images\\mask_gt\\' raw_mask_path = 'w:\\NPC_adult_new\\dl_training\\images\\labkit_masks\\'
raw_prefix_substring = '_mask' raw_prefix_substring = '.tif'
# results paths # results paths
results_path = 'w:\\NPC_adult_new\\dl_training\\fcenet\\results\\' results_path = 'w:\\NPC_adult_new\\dl_training\\fcenet\\results\\'
...@@ -27,7 +27,7 @@ pred2_prefix_substring = '_x2' ...@@ -27,7 +27,7 @@ pred2_prefix_substring = '_x2'
pred3_mask_path = results_path+'results_x3\\' pred3_mask_path = results_path+'results_x3\\'
pred3_prefix_substring = '_x3' pred3_prefix_substring = '_x3'
quantification_name = 'fcenet' quantification_name = 'fcenet_newmasks'
raw_list = os.listdir(raw_mask_path) raw_list = os.listdir(raw_mask_path)
raw_list.sort() raw_list.sort()
...@@ -46,7 +46,7 @@ pred_list_x3.sort() ...@@ -46,7 +46,7 @@ pred_list_x3.sort()
pred_list_x3 = [name for name in pred_list_x3 if name.find('.tif') > 0] pred_list_x3 = [name for name in pred_list_x3 if name.find('.tif') > 0]
today_date = str(datetime.date.today()) today_date = str(datetime.date.today())
save_path = raw_mask_path + 'iou_quantification_%s/' % today_date save_path = raw_mask_path + 'iou_quantification_{}_{}/'.format(quantification_name, today_date)
if not os.path.exists(save_path): if not os.path.exists(save_path):
os.mkdir(save_path) os.mkdir(save_path)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment