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