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

Method __init__

engine/pose_estimation/blocks/camera_embed.py:10–17  ·  view source on GitHub ↗

Module that generate Fourier encoding - no learning involved

(self, n, num_bands, max_resolution)

Source from the content-addressed store, hash-verified

8
9class FourierPositionEncoding(nn.Module):
10 def __init__(self, n, num_bands, max_resolution):
11 """
12 Module that generate Fourier encoding - no learning involved
13 """
14 super().__init__()
15
16 self.num_bands = num_bands
17 self.max_resolution = [max_resolution] * n
18
19 @property
20 def channels(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected