MCPcopy Create free account
hub / github.com/InternRobotics/G2VLM / absolute_error_loss

Function absolute_error_loss

eval_code/recons/utils/depth.py:114–120  ·  view source on GitHub ↗
(params, predicted_depth, ground_truth_depth)

Source from the content-addressed store, hash-verified

112
113
114def absolute_error_loss(params, predicted_depth, ground_truth_depth):
115 s, t = params
116
117 predicted_aligned = s * predicted_depth + t
118
119 abs_error = np.abs(predicted_aligned - ground_truth_depth)
120 return np.sum(abs_error)
121
122
123def absolute_value_scaling(predicted_depth, ground_truth_depth, s=1, t=0):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected