Alessio Grancini commited on
Commit
8bda905
·
verified ·
1 Parent(s): fcdc601

Update monocular_depth_estimator.py

Browse files
Files changed (1) hide show
  1. monocular_depth_estimator.py +4 -4
monocular_depth_estimator.py CHANGED
@@ -36,10 +36,10 @@ class MonocularDepthEstimator:
36
 
37
  # MiDaS 2.1:
38
  # Legacy convolutional models midas_v21_384 and midas_v21_small_256
39
- self.fx_depth = 500
40
- self.fy_depth = 500 # Add this to match `fx_depth`
41
- self.cx_depth = 320 # Center x-coordinate of image
42
- self.cy_depth = 240 # Center y-coordinate of image
43
  # params
44
  print("Initializing parameters and model...")
45
  self.is_optimize = optimize
 
36
 
37
  # MiDaS 2.1:
38
  # Legacy convolutional models midas_v21_384 and midas_v21_small_256
39
+ #self.fx_depth = 500
40
+ #self.fy_depth = 500 # Add this to match `fx_depth`
41
+ #self.cx_depth = 320 # Center x-coordinate of image
42
+ #self.cy_depth = 240 # Center y-coordinate of image
43
  # params
44
  print("Initializing parameters and model...")
45
  self.is_optimize = optimize