Преглед изворни кода

use scaled intrinsics for compat with paper results.

Johan Edstedt пре 2 година
родитељ
комит
a29f1ad7e4
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      roma/benchmarks/megadepth_pose_estimation_benchmark.py

+ 1 - 1
roma/benchmarks/megadepth_pose_estimation_benchmark.py

@@ -62,7 +62,7 @@ class MegaDepthPoseEstimationBenchmark:
                     w1, h1 = im_A.size
                     w1, h1 = im_A.size
                     im_B = Image.open(im_B_path)
                     im_B = Image.open(im_B_path)
                     w2, h2 = im_B.size
                     w2, h2 = im_B.size
-                    if False:
+                    if True: # Note: we keep this true as it was used in DKM/RoMa papers. There is very little difference compared to setting to False. 
                         scale1 = 1200 / max(w1, h1)
                         scale1 = 1200 / max(w1, h1)
                         scale2 = 1200 / max(w2, h2)
                         scale2 = 1200 / max(w2, h2)
                         w1, h1 = scale1 * w1, scale1 * h1
                         w1, h1 = scale1 * w1, scale1 * h1