andyyankai / psdr-room

PSDR-Room: Single Photo to Scene using Differentiable Rendering

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Detailed Explanation on the obj_stage_config.json?

dongchen-yang opened this issue · comments

Hi, thanks for your great work. I am currently trying to re-implement the room stage and object initialization stage of your paper and I have several questions regarding the parameters of the obj_stage_config.json:

  1. What do the 2 values under the wall parameter mean?
  2. For the floor height, why is it a negative value? I think this might be related to how you define your normal direction of the floor plane.
  3. Does the "rotate" parameter mean the rotation around the normal axis?

"scene": { "wall": [ 63.77136900533217, -26.22863099466783 ], "floor_height": -0.33570218086242676, "room_height": 0.06963715702295303, "room": { "scale": 0.7934396862983704, "transx": -0.31079724431037903, "transy": 0.1229747012257576, "rotate": 8.420150756835938, "ceiling_up": 0.0, "floor_up": 0.0 }, "floor_height_opt": -0.33570218086242676 },

"wall": wall angle of each wall
"floor_height": height of the floor
"room_height": height of the ceiling
floor plane normal is always 0,0,1 (a fix value)
the "rotate" parameter is the rotation append to the wall AFTER the optimization. The value can be 0 if you don't do any optimization. Same for scale, transx, transy, floor_height_opt

For the floor plane axis, how is it fixed to 0,0,1? Will that automatically be set to 0,0,1 after applying the transformations predicted by Perspective Field?

It seems like after applying the transformations from Perspective Field, the normal direction is automatically set to 0,0,1