ShichenLiu / SoftRas

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

Error in cuda kernels with Pytorch 1.3 #26

Open avik-pal opened 5 years ago

avik-pal commented 5 years ago

I am trying to reproduce the model for unsupervised mesh reconstruction (using the same script as in the examples directory). But during training I get the following recurring errors (the code doesn't terminate due to these)

Error in forward_transform_inv_triangle: invalid device function
Error in forward_soft_rasterize: invalid device function
Error in backward_soft_rasterize: invalid device function

I am using Pytorch 1.3 and CUDA 10.0

ShichenLiu commented 5 years ago

Hi,

Probably the API doesn't fit Pytorch 1.3. We will look into it later. For now can you try to install it on PyTorch 1.1.0? Thanks.

avik-pal commented 5 years ago

Sure. I will give a try with Pytorch 1.1.0

avik-pal commented 5 years ago

@ShichenLiu Thanks. It runs on Pytorch 1.1. I am changing the issue title for convenience.