(params, predicted_depth, ground_truth_depth)
| 112 | |
| 113 | |
| 114 | def 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 | |
| 123 | def absolute_value_scaling(predicted_depth, ground_truth_depth, s=1, t=0): |
nothing calls this directly
no outgoing calls
no test coverage detected