Compute RGB MSE Loss, original from NeRF Paper
(rgb, target, extras)
| 93 | return features, pose |
| 94 | |
| 95 | def rgb_loss(rgb, target, extras): |
| 96 | ''' Compute RGB MSE Loss, original from NeRF Paper ''' |
| 97 | # Compute MSE loss between predicted and true RGB. |
| 98 | img_loss = img2mse(rgb, target) |
| 99 | loss = img_loss |
| 100 | return loss |
| 101 | |
| 102 | def normalize_features(tensor, value_range=None, scale_each: bool = False): |
| 103 | ''' Find unit norm of channel wise feature |
no outgoing calls
no test coverage detected