Open ligoudaner377 opened 3 years ago
Hi @ligoudaner377 ,
switch the integrator to "path" can solve the problem
Which integrator are you using currently?
This error message means that the jit compiler is asked to performed computations with a variable that hasn't been initialized. For instance:
Float a; // uninitialized
Float b = 4.f; // initialized
SurfaceInteraction3f si; // uninitialized fields
SurfaceInteraction3f si_2 = zero<SurfaceInteraction3f>(); // initialized fields
I would recommend you compile the system in DEBUG mode and run your experiment in a debugger after adding a break point here. This way you should be able to figure out which variable is uninitialized and fix this in the code. You can also post the stack trace here so I can help you debug this.
Hi, @Speierers Thank you for your quick reply. I'm using "volpathmis" integrator currently.
But is there any debugger or IDE that can debug python and c++ at the same time? Because my test script is written in python and enoki is written in c++.
The current implementation of volpathmis
hasn't been much tested so this could well be an implementation bug.
Not sure about the IDE. I would simply start debugging in Python first, and then move to C++ if the jit operation happens within C++.
Summary
Hi, thank you for your great job. Just like #74 , I am trying to use mitsuba2 renderer as a giant node to work with pytorch but with some translucent objects in the scene. However, I got RuntimeError after several iterations.
System configuration
scalar_rgb
gpu_autodiff_rgb
Description
For simplicity, I built a test code like this:
Where I use pytorch to generate 3 random float numbers to simulate the output of the neural network. I have some translucent objects in the scene, so the integrator is "volpathmis". After about 1000 iterations, I got RuntimeError like this:
Observation
Steps to reproduce