GithubHelp home page GithubHelp logo

mworchel / differentiable-shadow-mapping Goto Github PK

View Code? Open in Web Editor NEW
50.0 4.0 4.0 5.17 MB

Differentiable Shadow Mapping for Efficient Inverse Graphics (CVPR 2023)

License: BSD 3-Clause "New" or "Revised" License

Jupyter Notebook 96.99% Python 3.01%
computer-graphics computer-vision differentiable-rendering inverse-rendering machine-learning optimization rendering 3d-reconstruction 3d-rendering deep-learning

differentiable-shadow-mapping's People

Contributors

mworchel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

differentiable-shadow-mapping's Issues

Question about light direction estimation

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.

Core dumped when rendering

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:
Screen Shot 2023-11-16 at 6 20 12 AM

Is there any possible reasons that may lead to this error?
Thank you.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.