ShichenLiu / SoftRas

Project page of paper "Soft Rasterizer: A Differentiable Renderer for Image-based 3D Reasoning"
MIT License
1.21k stars 154 forks source link

Render _image_size #34

Open quyanqiu opened 4 years ago

quyanqiu commented 4 years ago

Hi,I have read your rasterize code,I found that it seems that your code only support "square" image rendering because the parameter "image_size=256" is scalar but not a 2D vector. Actually I am writing a "smpl-overlay" program by your soft-rasterization, but input image is not square,so its hard to overlay 3d body model in original image with your code,do you have some suggestion for that. BTW,for square image,all works fine. And its excited that your rasterization is differentiable theoretically to make pixel level gradient backwards

ssjsusie commented 3 years ago

I have the same question regarding the rendering of non-square images.

ForrestPi commented 3 years ago

@ShichenLiu Any plan to set non-square images ?