BachiLi / redner

Differentiable rendering without approximation.
https://people.csail.mit.edu/tzumao/diffrt/
MIT License
1.39k stars 139 forks source link

Help testing the Inverse Path Tracing for Joint Material and Lighting Estimation publication #129

Open ttsesm opened 4 years ago

ttsesm commented 4 years ago

Hi @BachiLi and thank you for this nice repository. Would be easy to give me some guidelines how to test the output from the mentioned publication.

Thanks in advance.

ttsesm commented 4 years ago

@BachiLi any help feedback on my question.

BachiLi commented 4 years ago

Hey, that CVPR paper used a different renderer and the code was owned by Facebook, so I am not allowed to distribute. I would suggest contacting Dejan Azinović for comparison purpose. It should be possible to reproduce what we did there using redner. You can simply set up the scene and optimize the papers using the path tracing mode.

ttsesm commented 4 years ago

@BachiLi thanks for the update. Would be easy then to give me some guidance with the steps how to setup/use redner to reproduce similar results from the paper. I am not really interested for comparison purpose, rather than to understand how it works.

Based on this issue https://github.com/BachiLi/redner/issues/34 I will need to run the tests/test_living_room.py example as you have pointed there, is that correct?

Is this an out of the box representation of the paper or modifications need to be applied.

ttsesm commented 4 years ago

@BachiLi any feedback regarding my previous message?

yzx9 commented 2 years ago

@BachiLi Is there anything new? I run into the same issue:

Unsupported Mitsuba scene format: please use a look at transform
Traceback (most recent call last):
  File "./test_living_room.py", line 30, in <module>
    scene = pyredner.load_mitsuba('scenes/living-room-3/scene.xml')
  File "/home/celeste/.conda/envs/pytorch/lib/python3.8/site-packages/pyredner/load_mitsuba.py", line 488, in load_mitsuba
    ret = parse_scene(root, device)
  File "/home/celeste/.conda/envs/pytorch/lib/python3.8/site-packages/pyredner/load_mitsuba.py", line 428, in parse_scene
    cam = parse_camera(child)
  File "/home/celeste/.conda/envs/pytorch/lib/python3.8/site-packages/pyredner/load_mitsuba.py", line 91, in parse_camera
    assert(False)
AssertionError

Update: Fixed by replace original scene.xml file from zip file by /tests/scenes/living-room-3-scene.xml