diff --git a/scripts/GUI.py b/scripts/GUI.py index a78a2c94770a846be52396aac62cb43d23c59966..fc61a8c50b99ce3db6aa60bba6b39b685cceceaf 100644 --- a/scripts/GUI.py +++ b/scripts/GUI.py @@ -43,7 +43,7 @@ def select_Image(event): def depthmap_creation(): print("Manually upload depth map: ", uploadDepthCheck.get()) - if uploadDepthCheck == 0: + if uploadDepthCheck.get() == 0: check.set(1) else: check.set(0) #temporary. TODO implement Mona's monodepth upload @@ -93,8 +93,9 @@ def runProcess(): print(f"Attempting to run: {combined_bat}") print(f"With arguments: {file_path}, {str(check.get())}, {include_top_option}, {shift_image_option}") - if check == 1: - print("Autodepth map") + # depth map check + if check.get() == 1: + print("Auto depth map") else: print("Manual depth map")