Closed zjumsj closed 1 year ago
@zjumsj You are right! Thanks for reporting this bug. It should have been fixed in https://github.com/ashawkey/torch-ngp/commit/c3fab17e762efa46e56d5baaa2ad82531270ab16.
Thanks, I think it gives reasonable results now.
@ashawkey My recent project requires the gradient with respect to the coordinate (inputs in code, BxD, D=3). However, the gradient returned seems incorrect. Only the first channel of grad_inputs has non-zero value. I guess the mistake is at line 143 in gridencoder.cu where only the first element of array pos_deriv is set to 1.0f. Hope that you can fix it if it's really a mistake.