Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit 5fd1ba1e authored by tekin_g's avatar tekin_g
Browse files

change output path to match RLN code

parent c369219b
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@ def get_last_run_number(path):
return last_run_number
def get_save_paths(output_path):
def get_save_paths(output_path,with_run_path = False):
"""
Get the paths $output_path$/output_N/gt for the ground truth and $output_path$/output_N/blurred for saving images to.
:param output_path: base output location
......@@ -24,11 +24,14 @@ def get_save_paths(output_path):
"""
last_run = get_last_run_number(output_path)
run_path = output_path + f"output_{last_run + 1}/"
gt_path = run_path + "gt/"
blur_path = run_path + "blurred/"
os.makedirs(run_path)
gt_path = run_path + "ground_truth/"
blur_path = run_path + "input/"
os.makedirs(gt_path)
os.makedirs(blur_path)
if with_run_path:
return gt_path,blur_path,run_path
return gt_path, blur_path
def save_array(path,array):
......
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