-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use taichi to caculate jacobian for differential rendering #6196
Comments
It almost work,
|
Hi @fangde , thanks for the detailed description.
|
@erizmr
|
Hi @fangde
|
jacobina cacluaiton
I'm trying to use taichi to implement differential ray tracing for various computer vision task.
we are using least square to optimized the parameters, needs to calculate the Jacobina,
after a bit research, i managed to get it work, except for a few issues there, someone may have optimization suggestions.
background
The idea is to shot a ray around each pixel, and calculate the intersection of the ray with object.
the object can be parametrized, such as the size, and position
based on the measurement data (a photo), we can Calcutta the error between rendered data and measurement, by optimized it against the object parameters, we may correctly estimate the parameters.
I have a test code. ray tracking a sphere, the sphere radius, position are parameters to be optimized .
I run once with some parameter, and slightly modify it , render again, caculate the difference, and then use least square optimization to estimate the modifed radius. and postions of the sphere.
trace_loss, find the difference of each pixel
to caculate the jacobin, i use the forward model
and finallly gaussion newton is cacluate in least square manner
if es is correct,should be 0.1
The text was updated successfully, but these errors were encountered: