Open avani17101 opened 3 years ago
I got the same error when I tried to install the library via pip
Try this pull-request.
It seems that Nueral-Renderer is not compatible with Pytorch > 1.5. Go to the original repo, clone it to your local, reflect the pull-request, do
python setup.py intsall
@hongsukchoi After making the suggested change, the installation was successful but now I am getting the error while importing neural-renderer.
File "/opt/conda/lib/python3.7/site-packages/neural_renderer_pytorch-1.1.3-py3.7-linux-x86_64.egg/neural_renderer/load_obj.py", line 8, in <module>
import neural_renderer.cuda.load_textures as load_textures_cuda
ImportError: /opt/conda/lib/python3.7/site-packages/neural_renderer_pytorch-1.1.3-py3.7-linux-x86_64.egg/neural_renderer/cuda/load_textures.cpython-37m-x86_64-linux-gnu.so: undefined symbol: cudaSetupArgument
Pytorch version - 1.6, CUDA Tool kit - 10.1 My other PyTorch codes are working fine with this setting.
Could you (or anyone else) please help here. Thanks!
I get the follwing error while trying to install neural-renderer-pytorch
pip install neural-renderer-pytorch
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip. Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue. To avoid this problem you can invoke Python with '-m pip' instead of running pip directly. Collecting neural-renderer-pytorch Downloading neural_renderer_pytorch-1.1.3.tar.gz (19 kB) Requirement already satisfied: torch in /home/avani.gupta/anaconda3/lib/python3.7/site-packages (from neural-renderer-pytorch) (1.6.0) Requirement already satisfied: numpy in /home/avani.gupta/anaconda3/lib/python3.7/site-packages (from neural-renderer-pytorch) (1.18.1) Requirement already satisfied: scikit-image in /home/avani.gupta/anaconda3/lib/python3.7/site-packages (from neural-renderer-pytorch) (0.16.2) Requirement already satisfied: future in /home/avani.gupta/anaconda3/lib/python3.7/site-packages (from torch->neural-renderer-pytorch) (0.18.2) Requirement already satisfied: PyWavelets>=0.4.0 in /home/avani.gupta/anaconda3/lib/python3.7/site-packages (from scikit-image->neural-renderer-pytorch) (1.1.1) Requirement already satisfied: matplotlib!=3.0.0,>=2.0.0 in /home/avani.gupta/anaconda3/lib/python3.7/site-packages (from scikit-image->neural-renderer-pytorch) (3.1.3) Requirement already satisfied: pillow>=4.3.0 in /home/avani.gupta/anaconda3/lib/python3.7/site-packages (from scikit-image->neural-renderer-pytorch) (7.0.0) Requirement already satisfied: scipy>=0.19.0 in /home/avani.gupta/anaconda3/lib/python3.7/site-packages (from scikit-image->neural-renderer-pytorch) (1.4.1) Requirement already satisfied: imageio>=2.3.0 in /home/avani.gupta/anaconda3/lib/python3.7/site-packages (from scikit-image->neural-renderer-pytorch) (2.6.1) Requirement already satisfied: networkx>=2.0 in /home/avani.gupta/anaconda3/lib/python3.7/site-packages (from scikit-image->neural-renderer-pytorch) (2.4) Requirement already satisfied: kiwisolver>=1.0.1 in /home/avani.gupta/anaconda3/lib/python3.7/site-packages (from matplotlib!=3.0.0,>=2.0.0->scikit-image->neural-renderer-pytorch) (1.1.0) Requirement already satisfied: python-dateutil>=2.1 in /home/avani.gupta/anaconda3/lib/python3.7/site-packages (from matplotlib!=3.0.0,>=2.0.0->scikit-image->neural-renderer-pytorch) (2.8.1) Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in /home/avani.gupta/anaconda3/lib/python3.7/site-packages (from matplotlib!=3.0.0,>=2.0.0->scikit-image->neural-renderer-pytorch) (2.4.6) Requirement already satisfied: cycler>=0.10 in /home/avani.gupta/anaconda3/lib/python3.7/site-packages (from matplotlib!=3.0.0,>=2.0.0->scikit-image->neural-renderer-pytorch) (0.10.0) Requirement already satisfied: decorator>=4.3.0 in /home/avani.gupta/anaconda3/lib/python3.7/site-packages (from networkx>=2.0->scikit-image->neural-renderer-pytorch) (4.4.1) Requirement already satisfied: setuptools in /home/avani.gupta/anaconda3/lib/python3.7/site-packages (from kiwisolver>=1.0.1->matplotlib!=3.0.0,>=2.0.0->scikit-image->neural-renderer-pytorch) (45.2.0.post20200210) Requirement already satisfied: six>=1.5 in /home/avani.gupta/anaconda3/lib/python3.7/site-packages (from python-dateutil>=2.1->matplotlib!=3.0.0,>=2.0.0->scikit-image->neural-renderer-pytorch) (1.14.0) Building wheels for collected packages: neural-renderer-pytorch Building wheel for neural-renderer-pytorch (setup.py) ... error ERROR: Command errored out with exit status 1: command: /home/avani.gupta/anaconda3/envs/relightable-nr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-az3rvbo4/neural-renderer-pytorch/setup.py'"'"'; file='"'"'/tmp/pip-install-az3rvbo4/neural-renderer-pytorch/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-eczk74yt cwd: /tmp/pip-install-az3rvbo4/neural-renderer-pytorch/ Complete output (254 lines): running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-3.7 creating build/lib.linux-x86_64-3.7/neural_renderer copying neural_renderer/vertices_to_faces.py -> build/lib.linux-x86_64-3.7/neural_renderer copying neural_renderer/get_points_from_angles.py -> build/lib.linux-x86_64-3.7/neural_renderer copying neural_renderer/save_obj.py -> build/lib.linux-x86_64-3.7/neural_renderer copying neural_renderer/look.py -> build/lib.linux-x86_64-3.7/neural_renderer copying neural_renderer/load_obj.py -> build/lib.linux-x86_64-3.7/neural_renderer copying neural_renderer/projection.py -> build/lib.linux-x86_64-3.7/neural_renderer copying neural_renderer/lighting.py -> build/lib.linux-x86_64-3.7/neural_renderer copying neural_renderer/init.py -> build/lib.linux-x86_64-3.7/neural_renderer copying neural_renderer/look_at.py -> build/lib.linux-x86_64-3.7/neural_renderer copying neural_renderer/perspective.py -> build/lib.linux-x86_64-3.7/neural_renderer copying neural_renderer/renderer.py -> build/lib.linux-x86_64-3.7/neural_renderer copying neural_renderer/mesh.py -> build/lib.linux-x86_64-3.7/neural_renderer copying neural_renderer/rasterize.py -> build/lib.linux-x86_64-3.7/neural_renderer creating build/lib.linux-x86_64-3.7/neural_renderer/cuda copying neural_renderer/cuda/init.py -> build/lib.linux-x86_64-3.7/neural_renderer/cuda running build_ext building 'neural_renderer.cuda.load_textures' extension creating /tmp/pip-install-az3rvbo4/neural-renderer-pytorch/build/temp.linux-x86_64-3.7 creating /tmp/pip-install-az3rvbo4/neural-renderer-pytorch/build/temp.linux-x86_64-3.7/neural_renderer creating /tmp/pip-install-az3rvbo4/neural-renderer-pytorch/build/temp.linux-x86_64-3.7/neural_renderer/cuda Emitting ninja build file /tmp/pip-install-az3rvbo4/neural-renderer-pytorch/build/temp.linux-x86_64-3.7/build.ninja... Compiling objects... Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N) [1/2] c++ -MMD -MF /tmp/pip-install-az3rvbo4/neural-renderer-pytorch/build/temp.linux-x86_64-3.7/neural_renderer/cuda/load_textures_cuda.o.d -pthread -B /home/avani.gupta/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include -I/home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/TH -I/home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/avani.gupta/anaconda3/include/python3.7m -c -c /tmp/pip-install-az3rvbo4/neural-renderer-pytorch/neural_renderer/cuda/load_textures_cuda.cpp -o /tmp/pip-install-az3rvbo4/neural-renderer-pytorch/build/temp.linux-x86_64-3.7/neural_renderer/cuda/load_textures_cuda.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=load_textures -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 FAILED: /tmp/pip-install-az3rvbo4/neural-renderer-pytorch/build/temp.linux-x86_64-3.7/neural_renderer/cuda/load_textures_cuda.o c++ -MMD -MF /tmp/pip-install-az3rvbo4/neural-renderer-pytorch/build/temp.linux-x86_64-3.7/neural_renderer/cuda/load_textures_cuda.o.d -pthread -B /home/avani.gupta/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include -I/home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/TH -I/home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/avani.gupta/anaconda3/include/python3.7m -c -c /tmp/pip-install-az3rvbo4/neural-renderer-pytorch/neural_renderer/cuda/load_textures_cuda.cpp -o /tmp/pip-install-az3rvbo4/neural-renderer-pytorch/build/temp.linux-x86_64-3.7/neural_renderer/cuda/load_textures_cuda.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=load_textures -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ In file included from /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/ATen/Parallel.h:149:0, from /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3, from /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5, from /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3, from /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:7, from /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3, from /tmp/pip-install-az3rvbo4/neural-renderer-pytorch/neural_renderer/cuda/load_textures_cuda.cpp:1: /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/ATen/ParallelOpenMP.h:84:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]pragma omp parallel for if ((end - begin) >= grain_size)
^ /tmp/pip-install-az3rvbo4/neural-renderer-pytorch/neural_renderer/cuda/load_textures_cuda.cpp: In function ‘at::Tensor load_textures(at::Tensor, at::Tensor, at::Tensor, at::Tensor, int, int)’: /tmp/pip-install-az3rvbo4/neural-renderer-pytorch/neural_renderer/cuda/load_textures_cuda.cpp:15:39: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
define CHECK_CUDA(x) AT_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")
/tmp/pip-install-az3rvbo4/neural-renderer-pytorch/neural_renderer/cuda/load_textures_cuda.cpp:17:24: note: in expansion of macro ‘CHECK_CUDA’
define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)
/tmp/pip-install-az3rvbo4/neural-renderer-pytorch/neural_renderer/cuda/load_textures_cuda.cpp:28:5: note: in expansion of macro ‘CHECK_INPUT’ CHECK_INPUT(image); ^ In file included from /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3:0, from /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/ATen/Context.h:4, from /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/ATen/ATen.h:5, from /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3, from /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4, from /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3, from /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3, from /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3, from /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3, from /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:4, from /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3, from /tmp/pip-install-az3rvbo4/neural-renderer-pytorch/neural_renderer/cuda/load_textures_cuda.cpp:1: /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:268:30: note: declared here DeprecatedTypeProperties & type() const { ^ /tmp/pip-install-az3rvbo4/neural-renderer-pytorch/neural_renderer/cuda/load_textures_cuda.cpp:15:79: error: ‘AT_CHECK’ was not declared in this scope
define CHECK_CUDA(x) AT_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")
/tmp/pip-install-az3rvbo4/neural-renderer-pytorch/neural_renderer/cuda/load_textures_cuda.cpp:17:24: note: in expansion of macro ‘CHECK_CUDA’
define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)
/tmp/pip-install-az3rvbo4/neural-renderer-pytorch/neural_renderer/cuda/load_textures_cuda.cpp:28:5: note: in expansion of macro ‘CHECK_INPUT’ CHECK_INPUT(image); ^ /tmp/pip-install-az3rvbo4/neural-renderer-pytorch/neural_renderer/cuda/load_textures_cuda.cpp:15:39: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
define CHECK_CUDA(x) AT_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")
/tmp/pip-install-az3rvbo4/neural-renderer-pytorch/neural_renderer/cuda/load_textures_cuda.cpp:17:24: note: in expansion of macro ‘CHECK_CUDA’
define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)
/tmp/pip-install-az3rvbo4/neural-renderer-pytorch/neural_renderer/cuda/load_textures_cuda.cpp:29:5: note: in expansion of macro ‘CHECK_INPUT’ CHECK_INPUT(faces); ^ In file included from /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3:0, from /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/ATen/Context.h:4, from /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/ATen/ATen.h:5, from /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3, from /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4, from /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3, from /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3, from /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3, from /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3, from /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:4, from /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3, from /tmp/pip-install-az3rvbo4/neural-renderer-pytorch/neural_renderer/cuda/load_textures_cuda.cpp:1: /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:268:30: note: declared here DeprecatedTypeProperties & type() const { ^ /tmp/pip-install-az3rvbo4/neural-renderer-pytorch/neural_renderer/cuda/load_textures_cuda.cpp:15:39: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
define CHECK_CUDA(x) AT_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")
/tmp/pip-install-az3rvbo4/neural-renderer-pytorch/neural_renderer/cuda/load_textures_cuda.cpp:17:24: note: in expansion of macro ‘CHECK_CUDA’
define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)
/tmp/pip-install-az3rvbo4/neural-renderer-pytorch/neural_renderer/cuda/load_textures_cuda.cpp:30:5: note: in expansion of macro ‘CHECK_INPUT’ CHECK_INPUT(is_update); ^ In file included from /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3:0, from /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/ATen/Context.h:4, from /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/ATen/ATen.h:5, from /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3, from /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4, from /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3, from /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3, from /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3, from /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3, from /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:4, from /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3, from /tmp/pip-install-az3rvbo4/neural-renderer-pytorch/neural_renderer/cuda/load_textures_cuda.cpp:1: /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:268:30: note: declared here DeprecatedTypeProperties & type() const { ^ /tmp/pip-install-az3rvbo4/neural-renderer-pytorch/neural_renderer/cuda/load_textures_cuda.cpp:15:39: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
define CHECK_CUDA(x) AT_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")
/tmp/pip-install-az3rvbo4/neural-renderer-pytorch/neural_renderer/cuda/load_textures_cuda.cpp:17:24: note: in expansion of macro ‘CHECK_CUDA’
define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)
/tmp/pip-install-az3rvbo4/neural-renderer-pytorch/neural_renderer/cuda/load_textures_cuda.cpp:31:5: note: in expansion of macro ‘CHECK_INPUT’ CHECK_INPUT(textures); ^ In file included from /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3:0, from /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/ATen/Context.h:4, from /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/ATen/ATen.h:5, from /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3, from /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4, from /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3, from /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3, from /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3, from /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3, from /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:4, from /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3, from /tmp/pip-install-az3rvbo4/neural-renderer-pytorch/neural_renderer/cuda/load_textures_cuda.cpp:1: /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:268:30: note: declared here DeprecatedTypeProperties & type() const { ^ [2/2] /usr/local/cuda/bin/nvcc -I/home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include -I/home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/TH -I/home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/avani.gupta/anaconda3/include/python3.7m -c -c /tmp/pip-install-az3rvbo4/neural-renderer-pytorch/neural_renderer/cuda/load_textures_cuda_kernel.cu -o /tmp/pip-install-az3rvbo4/neural-renderer-pytorch/build/temp.linux-x86_64-3.7/neural_renderer/cuda/load_textures_cuda_kernel.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=load_textures -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_61,code=sm_61 -std=c++14 /tmp/pip-install-az3rvbo4/neural-renderer-pytorch/neural_renderer/cuda/load_textures_cuda_kernel.cu: In lambda function: /tmp/pip-install-az3rvbo4/neural-renderer-pytorch/neural_renderer/cuda/load_textures_cuda_kernel.cu:134:43: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations] AT_DISPATCH_FLOATING_TYPES(image.type(), "load_textures_cuda", ([&] { ^ /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:268:1: note: declared here DeprecatedTypeProperties & type() const { ^ /tmp/pip-install-az3rvbo4/neural-renderer-pytorch/neural_renderer/cuda/load_textures_cuda_kernel.cu:134:98: warning: ‘c10::ScalarType detail::scalar_type(const at::DeprecatedTypeProperties&)’ is deprecated: passing at::DeprecatedTypeProperties to an AT_DISPATCH macro is deprecated, pass an at::ScalarType instead [-Wdeprecated-declarations] /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/ATen/Dispatch.h:66:1: note: declared here inline at::ScalarType scalar_type(const at::DeprecatedTypeProperties& t) { ^ /tmp/pip-install-az3rvbo4/neural-renderer-pytorch/neural_renderer/cuda/load_textures_cuda_kernel.cu: In lambda function: /tmp/pip-install-az3rvbo4/neural-renderer-pytorch/neural_renderer/cuda/load_textures_cuda_kernel.cu:134:304: warning: ‘T at::Tensor::data() const [with T = double]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
/home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:354:1: note: declared here
T data() const {
^
/tmp/pip-install-az3rvbo4/neural-renderer-pytorch/neural_renderer/cuda/load_textures_cuda_kernel.cu:134:331: warning: ‘T at::Tensor::data() const [with T = int]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
/home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:354:1: note: declared here
T data() const {
^
/tmp/pip-install-az3rvbo4/neural-renderer-pytorch/neural_renderer/cuda/load_textures_cuda_kernel.cu:134:357: warning: ‘T at::Tensor::data() const [with T = double]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
/home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:354:1: note: declared here
T data() const {
^
/tmp/pip-install-az3rvbo4/neural-renderer-pytorch/neural_renderer/cuda/load_textures_cuda_kernel.cu:134:386: warning: ‘T at::Tensor::data() const [with T = double]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
/home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:354:1: note: declared here
T data() const {
^
/tmp/pip-install-az3rvbo4/neural-renderer-pytorch/neural_renderer/cuda/load_textures_cuda_kernel.cu: In lambda function:
/tmp/pip-install-az3rvbo4/neural-renderer-pytorch/neural_renderer/cuda/load_textures_cuda_kernel.cu:134:671: warning: ‘T at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
/home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:354:1: note: declared here
T data() const {
^
/tmp/pip-install-az3rvbo4/neural-renderer-pytorch/neural_renderer/cuda/load_textures_cuda_kernel.cu:134:698: warning: ‘T at::Tensor::data() const [with T = int]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
/home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:354:1: note: declared here
T data() const {
^
/tmp/pip-install-az3rvbo4/neural-renderer-pytorch/neural_renderer/cuda/load_textures_cuda_kernel.cu:134:723: warning: ‘T at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
/home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:354:1: note: declared here
T data() const {
^
/tmp/pip-install-az3rvbo4/neural-renderer-pytorch/neural_renderer/cuda/load_textures_cuda_kernel.cu:134:751: warning: ‘T at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
/home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:354:1: note: declared here
T data() const {
^
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "/home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1515, in _run_ninja_build
env=env)
File "/home/avani.gupta/anaconda3/lib/python3.7/subprocess.py", line 512, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "", line 1, in
File "/tmp/pip-install-az3rvbo4/neural-renderer-pytorch/setup.py", line 40, in
cmdclass = {'build_ext': BuildExtension}
File "/home/avani.gupta/anaconda3/lib/python3.7/site-packages/setuptools/init.py", line 144, in setup
return distutils.core.setup(**attrs)
File "/home/avani.gupta/anaconda3/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/home/avani.gupta/anaconda3/lib/python3.7/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/home/avani.gupta/anaconda3/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/avani.gupta/anaconda3/lib/python3.7/site-packages/wheel/bdist_wheel.py", line 223, in run
self.run_command('build')
File "/home/avani.gupta/anaconda3/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/avani.gupta/anaconda3/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/avani.gupta/anaconda3/lib/python3.7/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/home/avani.gupta/anaconda3/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/avani.gupta/anaconda3/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/avani.gupta/anaconda3/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 87, in run
_build_ext.run(self)
File "/home/avani.gupta/anaconda3/lib/python3.7/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run
_build_ext.build_ext.run(self)
File "/home/avani.gupta/anaconda3/lib/python3.7/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 649, in build_extensions
build_ext.build_extensions(self)
File "/home/avani.gupta/anaconda3/lib/python3.7/site-packages/Cython/Distutils/old_build_ext.py", line 195, in build_extensions
_build_ext.build_ext.build_extensions(self)
File "/home/avani.gupta/anaconda3/lib/python3.7/distutils/command/build_ext.py", line 449, in build_extensions
self._build_extensions_serial()
File "/home/avani.gupta/anaconda3/lib/python3.7/distutils/command/build_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "/home/avani.gupta/anaconda3/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 208, in build_extension
_build_ext.build_extension(self, ext)
File "/home/avani.gupta/anaconda3/lib/python3.7/distutils/command/build_ext.py", line 534, in build_extension
depends=ext.depends)
File "/home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 478, in unix_wrap_ninja_compile
with_cuda=with_cuda)
File "/home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1233, in _write_ninja_file_and_compile_objects
error_prefix='Error compiling objects for extension')
File "/home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1529, in _run_ninja_build
raise RuntimeError(message)
RuntimeError: Error compiling objects for extension
ERROR: Failed building wheel for neural-renderer-pytorch Running setup.py clean for neural-renderer-pytorch Failed to build neural-renderer-pytorch Installing collected packages: neural-renderer-pytorch Running setup.py install for neural-renderer-pytorch ... error ERROR: Command errored out with exit status 1: command: /home/avani.gupta/anaconda3/envs/relightable-nr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-az3rvbo4/neural-renderer-pytorch/setup.py'"'"'; file='"'"'/tmp/pip-install-az3rvbo4/neural-renderer-pytorch/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-41m4x2f3/install-record.txt --single-version-externally-managed --compile --install-headers /home/avani.gupta/anaconda3/include/python3.7m/neural-renderer-pytorch cwd: /tmp/pip-install-az3rvbo4/neural-renderer-pytorch/ Complete output (256 lines): running install running build running build_py creating build creating build/lib.linux-x86_64-3.7 creating build/lib.linux-x86_64-3.7/neural_renderer copying neural_renderer/vertices_to_faces.py -> build/lib.linux-x86_64-3.7/neural_renderer copying neural_renderer/get_points_from_angles.py -> build/lib.linux-x86_64-3.7/neural_renderer copying neural_renderer/save_obj.py -> build/lib.linux-x86_64-3.7/neural_renderer copying neural_renderer/look.py -> build/lib.linux-x86_64-3.7/neural_renderer copying neural_renderer/load_obj.py -> build/lib.linux-x86_64-3.7/neural_renderer copying neural_renderer/projection.py -> build/lib.linux-x86_64-3.7/neural_renderer copying neural_renderer/lighting.py -> build/lib.linux-x86_64-3.7/neural_renderer copying neural_renderer/init.py -> build/lib.linux-x86_64-3.7/neural_renderer copying neural_renderer/look_at.py -> build/lib.linux-x86_64-3.7/neural_renderer copying neural_renderer/perspective.py -> build/lib.linux-x86_64-3.7/neural_renderer copying neural_renderer/renderer.py -> build/lib.linux-x86_64-3.7/neural_renderer copying neural_renderer/mesh.py -> build/lib.linux-x86_64-3.7/neural_renderer copying neural_renderer/rasterize.py -> build/lib.linux-x86_64-3.7/neural_renderer creating build/lib.linux-x86_64-3.7/neural_renderer/cuda copying neural_renderer/cuda/init.py -> build/lib.linux-x86_64-3.7/neural_renderer/cuda running build_ext building 'neural_renderer.cuda.load_textures' extension creating /tmp/pip-install-az3rvbo4/neural-renderer-pytorch/build/temp.linux-x86_64-3.7 creating /tmp/pip-install-az3rvbo4/neural-renderer-pytorch/build/temp.linux-x86_64-3.7/neural_renderer creating /tmp/pip-install-az3rvbo4/neural-renderer-pytorch/build/temp.linux-x86_64-3.7/neural_renderer/cuda Emitting ninja build file /tmp/pip-install-az3rvbo4/neural-renderer-pytorch/build/temp.linux-x86_64-3.7/build.ninja... Compiling objects... Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N) [1/2] c++ -MMD -MF /tmp/pip-install-az3rvbo4/neural-renderer-pytorch/build/temp.linux-x86_64-3.7/neural_renderer/cuda/load_textures_cuda.o.d -pthread -B /home/avani.gupta/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include -I/home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/TH -I/home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/avani.gupta/anaconda3/include/python3.7m -c -c /tmp/pip-install-az3rvbo4/neural-renderer-pytorch/neural_renderer/cuda/load_textures_cuda.cpp -o /tmp/pip-install-az3rvbo4/neural-renderer-pytorch/build/temp.linux-x86_64-3.7/neural_renderer/cuda/load_textures_cuda.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=load_textures -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 FAILED: /tmp/pip-install-az3rvbo4/neural-renderer-pytorch/build/temp.linux-x86_64-3.7/neural_renderer/cuda/load_textures_cuda.o c++ -MMD -MF /tmp/pip-install-az3rvbo4/neural-renderer-pytorch/build/temp.linux-x86_64-3.7/neural_renderer/cuda/load_textures_cuda.o.d -pthread -B /home/avani.gupta/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include -I/home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/TH -I/home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/avani.gupta/anaconda3/include/python3.7m -c -c /tmp/pip-install-az3rvbo4/neural-renderer-pytorch/neural_renderer/cuda/load_textures_cuda.cpp -o /tmp/pip-install-az3rvbo4/neural-renderer-pytorch/build/temp.linux-x86_64-3.7/neural_renderer/cuda/load_textures_cuda.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=load_textures -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ In file included from /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/ATen/Parallel.h:149:0, from /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3, from /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5, from /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3, from /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:7, from /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3, from /tmp/pip-install-az3rvbo4/neural-renderer-pytorch/neural_renderer/cuda/load_textures_cuda.cpp:1: /home/avani.gupta/anaconda3/lib/python3.7/site-packages/torch/include/ATen/ParallelOpenMP.h:84:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]
pragma omp parallel for if ((end - begin) >= grain_size)
ERROR: Command errored out with exit status 1: /home/avani.gupta/anaconda3/envs/relightable-nr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-az3rvbo4/neural-renderer-pytorch/setup.py'"'"'; file='"'"'/tmp/pip-install-az3rvbo4/neural-renderer-pytorch/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-41m4x2f3/install-record.txt --single-version-externally-managed --compile --install-headers /home/avani.gupta/anaconda3/include/python3.7m/neural-renderer-pytorch Check the logs for full command output.