Skip to content

Commit

Permalink
debug forward sppm finished
Browse files Browse the repository at this point in the history
  • Loading branch information
jkxing committed Apr 18, 2024
1 parent de684ed commit 6ee34b4
Show file tree
Hide file tree
Showing 2 changed files with 116 additions and 27 deletions.
3 changes: 1 addition & 2 deletions src/base/integrator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,7 @@ void DifferentiableIntegrator::Instance::render_backward(Stream &stream, luisa::
assert(grad_in.size() == pipeline().camera_count());
for (auto i = 0u; i < pipeline().camera_count(); i++) {
auto camera = pipeline().camera(i);
auto resolution = camera->film()->node()->resolution();
auto pixel_count = resolution.x * resolution.y;
//auto pixel_count = resolution.x * resolution.y;
camera->film()->prepare(command_buffer);
_render_one_camera_backward(command_buffer, 0, camera, grad_in[i]);
}
Expand Down
Loading

0 comments on commit 6ee34b4

Please sign in to comment.