PIFu icon indicating copy to clipboard operation
PIFu copied to clipboard

Question about project matrix

Open lingtengqiu opened this issue 3 years ago • 0 comments

first of all, thanks for your great job. To be honest, I am very confused about ortho_ratio what is the meaning of ortho_ratio, I see your code in render_data.py 2/(ortho_ratioimg_size) == 1/(ortho_ratioimg_size/2). whether it means that we only render range from -ortho_ratioimg_size/2 to ortho_ratioimg_size mesh? second is build project matrix in TrainDataset.py

#pixel unit / world unit  
ortho_ratio = param.item().get('ortho_ratio')
#world unit / model unit
scale = param.item().get('scale')
scale_intrinsic[0, 0] = scale / ortho_ratio

I don't know whether your annotation is wrong? if your annotations is right, the code should be:

#pixel unit / model unit
scale_intrinsic = scale * ortho_ratio

Best yours lingteng

lingtengqiu avatar Jan 22 '21 07:01 lingtengqiu