ShichenLiu / SoftRas

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

install error #68

Closed juicyzhucx closed 3 years ago

juicyzhucx commented 3 years ago

when I run python setup.py install,it tells me: soft_renderer/cuda/load_textures_cuda.cpp(24): error C3861: “AT_CHECK”: 找不到标识符 soft_renderer/cuda/load_textures_cuda.cpp(25): error C3861: “AT_CHECK”: 找不到标识符 soft_renderer/cuda/load_textures_cuda.cpp(26): error C3861: “AT_CHECK”: 找不到标识符 soft_renderer/cuda/load_textures_cuda.cpp(27): error C3861: “AT_CHECK”: 找不到标识符 error: command 'D:\Microsoft Visual Studio\VC\Tools\MSVC\14.28.29333\bin\HostX86\x64\cl.exe' failed with exit status 2

can you tell me how to deal with this? thank you a lot! my code is built on Python3.7 and PyTorch 1.7.1. CUDA on windows

thuliu-yt16 commented 3 years ago

replace AT_CHECK with TORCH_CHECK (#54)

ShichenLiu commented 3 years ago

Fixed