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

ModuleNotFoundError: No module named 'soft_renderer.cuda.load_textures' #51

Closed Shilling818 closed 4 years ago

Shilling818 commented 4 years ago

I use Python3.6.5 and Pytorch=1.1.0, and after running "sudo python setup.py install", I found this error. In "load_obj.py", there is a line "import soft_renderer.cuda.load_textures as load_textures_cuda", but there is just a "load_textures_cuda.cpp" in that folder. Is there any error?

hamaadtahir commented 4 years ago

How did you solve this issue?

luogyu7 commented 2 years ago

Why this issue is closed ? Has it been solved ?

wrk226 commented 2 years ago

You should rename the soft_renderer folder after build the SoftRas, otherwise it will be the same as installed soft_renderer library . @luogyu7 @hamaadtahir

yangyouzi commented 1 year ago

构建 SoftRas 后,您应该重命名soft_renderer文件夹,否则它将与soft_renderer库中安装的文件夹相同。@luogyu7@hamaadtahir Hello, where is the "soft_render library" installed?

wrk226 commented 1 year ago

Hello, where is the "soft_render library" installed?

That depends on your environment. For example, in my enviroment, it located in "D:\miniconda3\envs\umr18\Lib\site-packages\soft_renderer-1.0.0-py3.6-win-amd64.egg\soft_renderer". By the way, this soft_renderer is not the one you need to rename. The folder I mentioned is the one in original code:soft_renderer