Nerfie Paper Eq.(8)
(self, epoch, num_freqs, N)
| 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 ''' |