MCPcopy Create free account
hub / github.com/aigc3d/LHM / forward

Method forward

engine/pose_estimation/blocks/camera_embed.py:31–36  ·  view source on GitHub ↗

Forward pass that take rays as input and generate Fourier positional encodings

(self, pos)

Source from the content-addressed store, hash-verified

29 return encoding_size
30
31 def forward(self, pos):
32 """
33 Forward pass that take rays as input and generate Fourier positional encodings
34 """
35 fourier_pos_enc = _generate_fourier_features(pos, num_bands=self.num_bands, max_resolution=self.max_resolution)
36 return fourier_pos_enc
37
38
39def _generate_fourier_features(pos, num_bands, max_resolution):

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected