xiumingzhang / GenRe-ShapeHD

Code and Data Release for GenRe (NeurIPS 2018) and ShapeHD (ECCV 2018)
http://genre.csail.mit.edu/
294 stars 62 forks source link

normals definition #28

Closed HeidiCheng closed 5 years ago

HeidiCheng commented 5 years ago

I have printed the values of normals' ground truth, and got the results that they are in the range of 0-100. May I ask about how to get the value? Is it scale from RGB or something else? Thank you!

xiumingzhang commented 5 years ago

Could you clarify which normal file(s) are you referring to?

HeidiCheng commented 5 years ago

Hi, we are using the 2.5D normal map in marrnet2.py and taking it from batch['normal']. May I also ask about how to obtain the 2.5D normal map from Shapenet object, we are not sure about the axis definition for the normal map. Thank you! Sincerely, Heidi

xiumingzhang commented 5 years ago

Regarding the range, we have applied an amplifying factor of 100 to the 2.5D maps, https://github.com/xiumingzhang/GenRe-ShapeHD/blob/b68e54d74dcceb5b3ba8b9846c210d10c70a1675/models/marrnetbase.py#L17 although this may be optional and unimportant.

We recommend using the camera's local coordinate system, although using the world coordinate system or any other frame may also work.

xiumingzhang commented 5 years ago

Closing. Feel free to reopen with followup questions.

HeidiCheng commented 5 years ago

Thanks for your reply! Sincerely, Heidi

On Thu, Aug 1, 2019 at 11:30 PM Xiuming Zhang notifications@github.com wrote:

Closing. Feel free to reopen with followup questions.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/xiumingzhang/GenRe-ShapeHD/issues/28?email_source=notifications&email_token=AL4BJZ5XL6UEDLFI46H6UM3QCPIBFA5CNFSM4IHZCFP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3MYJJI#issuecomment-517571749, or mute the thread https://github.com/notifications/unsubscribe-auth/AL4BJZ6X2KUZEVFTMHGRRCDQCPIBFANCNFSM4IHZCFPQ .