MCPcopy Create free account
hub / github.com/Robotics-STAR-Lab/H2-Mapping / __init__

Method __init__

mapping/src/criterion.py:6–14  ·  view source on GitHub ↗
(self, args)

Source from the content-addressed store, hash-verified

4
5class 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,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected