vsitzmann / siren

Official implementation of "Implicit Neural Representations with Periodic Activation Functions"
MIT License
1.72k stars 247 forks source link

Class Siren foward coords requires grad? #54

Open hpicsk opened 2 years ago

hpicsk commented 2 years ago

In Colab notebook implementation of Class Siren foward def forward(self, coords): coords = coords.clone().detach().requires_grad_(True) # allows to take derivative w.r.t. input output = self.net(coords) return output, coords

why are coords set requiregrad(True)? Shouldn't the weights of the network only updated, not coordinates?