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

Method get_embed_weight

script/models/nerf.py:102–110  ·  view source on GitHub ↗

Nerfie Paper Eq.(8)

(self, epoch, num_freqs, N)

Source from the content-addressed store, hash-verified

100 return ret
101
102 def get_embed_weight(self, epoch, num_freqs, N):
103 ''' Nerfie Paper Eq.(8) '''
104 alpha = num_freqs * epoch / N
105 W_j = []
106 for i in range(num_freqs):
107 tmp = torch.clamp(torch.Tensor([alpha - i]), 0, 1)
108 tmp2 = (1 - torch.cos(torch.Tensor([np.pi]) * tmp)) / 2
109 W_j.append(tmp2)
110 return W_j
111
112 def embed_DNeRF(self, inputs, epoch):
113 ''' 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