(self, inputs, targets)
| 9 | self.loss = nn.MSELoss(reduction='mean') |
| 10 | |
| 11 | def forward(self, inputs, targets): |
| 12 | loss = self.loss(inputs['rgb_coarse'], targets) |
| 13 | if 'rgb_fine' in inputs: |
| 14 | loss += self.loss(inputs['rgb_fine'], targets) |
| 15 | |
| 16 | return self.coef * loss |
| 17 | |
| 18 | |
| 19 | class NerfWLoss(nn.Module): |
nothing calls this directly
no outgoing calls
no test coverage detected