Here's an even more formal and scientific description of the loss function:
Loss Function Formulation
The loss function is defined as a convex combination of three distinct loss terms, each quantifying a specific aspect of the prediction:
L(dpred,θ
where λi∈R+ are hyperparameters governing the relative importance of each loss term, and d denote the predicted direction, predicted half-FoV, ground-truth direction, and ground-truth half-FoV, respectively.
Half-FoV Loss
The half-FoV loss term is formulated as a measure of the discrepancy between the predicted and ground-truth half-FoV values:
L
where ∥⋅∥1 denotes the L1 norm.
FoV Containment Loss
The FoV containment loss term is defined as an indicator function quantifying whether the ground-truth direction lies within the predicted FoV:
L2(dpred,
where C(dpred,θpred) denotes the predicted FoV, and I is the indicator function.
Direction Alignment Loss
The direction alignment loss term is formulated as a measure of the angular discrepancy between the predicted and ground-truth directions:
L3(dpred
where ⋅ denotes the dot product, and ∥⋅∥2 denotes the L2 norm.
Total Loss
The total loss is a weighted sum of the three loss terms, encouraging the model to produce predictions that satisfy the desired criteria.
By minimizing this loss function, the model is trained to produce accurate predictions that meet the specified requirements.