mworchel / differentiable-shadow-mapping Goto Github PK
View Code? Open in Web Editor NEWDifferentiable Shadow Mapping for Efficient Inverse Graphics (CVPR 2023)
License: BSD 3-Clause "New" or "Revised" License
Differentiable Shadow Mapping for Efficient Inverse Graphics (CVPR 2023)
License: BSD 3-Clause "New" or "Revised" License
Hi there,
I'm rendering a mesh with a point light source. The camera I use is a perspective
camera. The code is shown as follows:
camera = Camera(
projection_matrix=create_perspective_projection_matrix(fovy=math.atan(T_V_FOV), aspect=w / h, near=0.0, far=15.0, device=device),
view_matrix=create_lookat_matrix(eye=[0.0, 0.0, 0.0], focus=[0.0, 0.0, 1.0], up=[0.0, 1.0, 0.0]).to(device),
)
scene_mesh = weld_seams(Mesh(scene_pc, scene_face))
l = PointLight(ls_pc[0])
renderer = SimpleRenderer(dr.RasterizeGLContext(device=device))
img = renderer.render([scene_mesh], lights=[l], camera=camera, resolution=(h, w))
print(img.shape)
However, the code stops with the following error:
Is there any possible reasons that may lead to this error?
Thank you.
I would be very grateful if you could answer.
Hi, thanks for your interesting work.
I went through your paper and found that you can also perform light direction estimation task with differentiable shadow mapping.
However, I do not find the corresponding code on this GitHub page.
I simply made the direction differentiable and put it in the optimizer but I got the error "Trying to backward through the graph a second time". Could you please provide me the training code as reported in Table 9? Any suggestion is helpful.
Thanks for the great work! Would you update the code realse in the near future?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.