Closed ghost closed 5 years ago
running pip3 install git+https://github.com/daniilidis-group/neural_renderer/
fixed the issue and allowed me to install properly
@ghost Hi, I have the same environment as you does and I install it in anconda but I have the issue: ERROR: Complete output from command /home/gaofei/anaconda3/envs/dynamic1/bin/python -u -c 'import setuptools, tokenize;file='"'"'/tmp/pip-req-build-341qkp51/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-iqbj2wrx --python-tag cp35: ERROR: running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-3.5 creating build/lib.linux-x86_64-3.5/neural_renderer copying neural_renderer/load_obj.py -> build/lib.linux-x86_64-3.5/neural_renderer copying neural_renderer/rasterize.py -> build/lib.linux-x86_64-3.5/neural_renderer copying neural_renderer/save_obj.py -> build/lib.linux-x86_64-3.5/neural_renderer copying neural_renderer/perspective.py -> build/lib.linux-x86_64-3.5/neural_renderer copying neural_renderer/look_at.py -> build/lib.linux-x86_64-3.5/neural_renderer copying neural_renderer/renderer.py -> build/lib.linux-x86_64-3.5/neural_renderer copying neural_renderer/get_points_from_angles.py -> build/lib.linux-x86_64-3.5/neural_renderer copying neural_renderer/mesh.py -> build/lib.linux-x86_64-3.5/neural_renderer copying neural_renderer/init.py -> build/lib.linux-x86_64-3.5/neural_renderer copying neural_renderer/look.py -> build/lib.linux-x86_64-3.5/neural_renderer copying neural_renderer/projection.py -> build/lib.linux-x86_64-3.5/neural_renderer copying neural_renderer/lighting.py -> build/lib.linux-x86_64-3.5/neural_renderer copying neural_renderer/vertices_to_faces.py -> build/lib.linux-x86_64-3.5/neural_renderer creating build/lib.linux-x86_64-3.5/neural_renderer/cuda copying neural_renderer/cuda/init.py -> build/lib.linux-x86_64-3.5/neural_renderer/cuda running build_ext building 'neural_renderer.cuda.load_textures' extension creating build/temp.linux-x86_64-3.5 creating build/temp.linux-x86_64-3.5/neural_renderer creating build/temp.linux-x86_64-3.5/neural_renderer/cuda gcc -pthread -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/gaofei/anaconda3/envs/dynamic1/lib/python3.5/site-packages/torch/lib/include -I/home/gaofei/anaconda3/envs/dynamic1/lib/python3.5/site-packages/torch/lib/include/TH -I/home/gaofei/anaconda3/envs/dynamic1/lib/python3.5/site-packages/torch/lib/include/THC -I:/usr/local/cuda-9.0/include -I/home/gaofei/anaconda3/envs/dynamic1/include/python3.5m -c neural_renderer/cuda/load_textures_cuda.cpp -o build/temp.linux-x86_64-3.5/neural_renderer/cuda/load_textures_cuda.o -DTORCH_EXTENSION_NAME=neural_renderer.cuda.load_textures -std=c++11 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ neural_renderer/cuda/load_textures_cuda.cpp: In function ‘at::Tensor load_textures(at::Tensor, at::Tensor, at::Tensor, at::Tensor, int, int)’: neural_renderer/cuda/load_textures_cuda.cpp:15:79: error: ‘AT_CHECK’ was not declared in this scope
^
neural_renderer/cuda/load_textures_cuda.cpp:17:24: note: in expansion of macro ‘CHECK_CUDA’
^
neural_renderer/cuda/load_textures_cuda.cpp:28:5: note: in expansion of macro ‘CHECK_INPUT’ CHECK_INPUT(image); ^ In file included from /home/gaofei/anaconda3/envs/dynamic1/lib/python3.5/site-packages/torch/lib/include/pybind11/pytypes.h:12:0, from /home/gaofei/anaconda3/envs/dynamic1/lib/python3.5/site-packages/torch/lib/include/pybind11/cast.h:13, from /home/gaofei/anaconda3/envs/dynamic1/lib/python3.5/site-packages/torch/lib/include/pybind11/attr.h:13, from /home/gaofei/anaconda3/envs/dynamic1/lib/python3.5/site-packages/torch/lib/include/pybind11/pybind11.h:43, from /home/gaofei/anaconda3/envs/dynamic1/lib/python3.5/site-packages/torch/lib/include/torch/torch.h:6, from neural_renderer/cuda/load_textures_cuda.cpp:1: neural_renderer/cuda/load_textures_cuda.cpp: At global scope:
I get the following error when I run sudo python3 setup.py install
CUDA 9.0 Ubuntu 18.04 torch 0.4.0 gcc 5.5