(self, args)
| 4 | |
| 5 | class Criterion(nn.Module): |
| 6 | def __init__(self, args) -> None: |
| 7 | super().__init__() |
| 8 | self.args = args |
| 9 | self.rgb_weight = args.criteria["rgb_weight"] |
| 10 | self.depth_weight = args.criteria["depth_weight"] |
| 11 | self.sdf_weight = args.criteria["sdf_weight"] |
| 12 | self.fs_weight = args.criteria["fs_weight"] |
| 13 | self.truncation = args.criteria["sdf_truncation"] |
| 14 | self.max_dpeth = args.data_specs["max_depth"] |
| 15 | |
| 16 | def forward(self, outputs, obs, use_color_loss=True, |
| 17 | use_depth_loss=True, compute_sdf_loss=True, |
nothing calls this directly
no outgoing calls
no test coverage detected