From 7b81bc471b3bcf4c9db4676805fe68b1a5dc5f0d Mon Sep 17 00:00:00 2001
From: manurare <mreyarea@gmail.com>
Date: Wed, 31 Aug 2022 13:20:54 +0100
Subject: [PATCH] Official settings for BoostingMonoDepth

---
 code/python/src/utility/depthmap_utils.py | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/code/python/src/utility/depthmap_utils.py b/code/python/src/utility/depthmap_utils.py
index 360fe32..1ec02d7 100644
--- a/code/python/src/utility/depthmap_utils.py
+++ b/code/python/src/utility/depthmap_utils.py
@@ -305,13 +305,15 @@ def boosting_monodepth(rgb_image_data_list):
     class Object(object):
         pass
 
+    # Settings from the official repo
     option = Object()
     option.R0 = False
     option.R20 = False
+    option.Final = True
     option.output_resolution = 1
     option.pix2pixsize = 1024
     option.depthNet = 0
-    option.max_res = np.Inf
+    option.max_res = 2000
 
     currfile_dir = os.path.dirname(__file__)
     boost_path = f"{os.path.join(currfile_dir, os.pardir, os.pardir, os.pardir, os.pardir, 'BoostingMonocularDepth')}"
@@ -340,9 +342,6 @@ def boosting_monodepth(rgb_image_data_list):
 
     whole_size_threshold = 3000  # R_max from the paper
     GPU_threshold = 1600 - 32  # Limit for the GPU (NVIDIA RTX 2080), can be adjusted
-    opt_pix2pix = Object()
-    opt_pix2pix.input_nc = 2
-    opt_pix2pix.output_nc = 1
 
     # Handle pix2pix parser
     opt = TestOptions()
-- 
GitLab