MCPcopy Create free account
hub / github.com/ActiveVisionLab/DFNet / get_embed_weight

Method get_embed_weight

script/models/nerfw.py:135–143  ·  view source on GitHub ↗

Nerfie Paper Eq.(8)

(self, epoch, num_freqs, N)

Source from the content-addressed store, hash-verified

133 return ret
134
135 def get_embed_weight(self, epoch, num_freqs, N):
136 ''' Nerfie Paper Eq.(8) '''
137 alpha = num_freqs * epoch / N
138 W_j = []
139 for i in range(num_freqs):
140 tmp = torch.clamp(torch.Tensor([alpha - i]), 0, 1)
141 tmp2 = (1 - torch.cos(torch.Tensor([np.pi]) * tmp)) / 2
142 W_j.append(tmp2)
143 return W_j
144
145 def embed_DNeRF(self, inputs, epoch):
146 ''' Nerfie paper section 3.5 Coarse-to-Fine Deformation Regularization '''

Callers 1

embed_DNeRFMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected