MCPcopy Create free account
hub / github.com/Sin3DM/Sin3DM / reset_aabb

Method reset_aabb

src/encoding/networks.py:157–162  ·  view source on GitHub ↗
(self, aabb)

Source from the content-addressed store, hash-verified

155 return list(self.tex_encoder.parameters()) + list(self.tex_convs.parameters()) + list(self.tex_decoder.parameters())
156
157 def reset_aabb(self, aabb):
158 print("set net aabb:", aabb)
159 if not isinstance(aabb, torch.Tensor):
160 aabb = torch.tensor(aabb, dtype=torch.float32)
161 # self.register_buffer("aabb", aabb.to(self.encoder.weight.device))
162 self.aabb = aabb.to(self.geo_encoder.weight.device)
163
164 def encode(self, vol):
165 geo_feat = self.geo_encoder(vol[:, :1])

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected