Closed tjdhg456 closed 4 years ago
@tjdhg456 regarding the first question, please see #17 which is requesting the same feature for non square image rasterization. This is a high priority feature on our roadmap.
For your second question, what is your use case for multi-gpu rendering?
Thank you for the response.
When I rendered the cad obj to big image (such as 1900 x 1900), out-of-memory error shows. I thought it is because of memory occupied by differential rendering. Is it right?
@tjdhg456 yes this is possible. Are you just trying to do forward rendering to produce an image or is this part of a deep learning pipeline where you want to calculate gradients?
In the renderer documentation we explain how the memory usage is calculated. One of the key components is the number of faces_per_pixel
which is set in raster_settings
e.g. in the code snipped you shared above, you have set this to 100.
If you do not need to calculate gradients, you can set faces_per_pixel
to 1 and this should significantly reduce the memory usage.
@nikhilaravi I need the differential rendering module in the part of deep learning network. So I think, faces_per_pixel should not be set to 1.
For example, if faces_per_pixel is set to 50, are there any differences in the performance of the network?
Thank you.
@tjdhg456 this is a parameter that you will need to tune and will probably vary depending on your task.
Thank you..!
❓ Questions on how to use PyTorch3d
Are there any methods for rendering the 3D cad into rectangular shaped 2D images. For example, 'image_size=256' in below code (tutorial 4) could be change into image_size=(256,512).
Also rendering the object using multi-GPU will be supported?
Thank you.
NOTE:
If you encountered any errors or unexpected issues while using PyTorch3d and need help resolving them, please use the "Bugs / Unexpected behaviors" issue template.
We do not answer general machine learning / computer vision questions that are not specific to PyTorch3d, such as how a model works or what algorithm/methods can be used to achieve X.