iPERDance / iPERCore

Liquid Warping GAN with Attention: A Unified Framework for Human Image Synthesis
https://iperdance.github.io/work/impersonator-plus-plus.html
Apache License 2.0
2.42k stars 311 forks source link

Building wheel for neural-renderer (setup.py) ... error #83

Closed LeoLee321 closed 3 years ago

LeoLee321 commented 3 years ago

Hi, iPERDance team! I want to ask you a little question, I have been troubled by this for three days,please help me! I met some problems when running the command "python setup.py develop" too, and here is my environment :

(venv) leo@leo-MS-7C82:~/Desktop/iPERCore-main$ cat /usr/local/cuda/version.txt CUDA Version 10.1.243 (venv) leo@leo-MS-7C82:~/Desktop/iPERCore-main$ pip show torch Name: torch Version: 1.7.0+cu101 Summary: Tensors and Dynamic neural networks in Python with strong GPU acceleration Home-page: https://pytorch.org/ Author: PyTorch Team Author-email: packages@pytorch.org License: BSD-3 Location: /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages Requires: dataclasses, typing-extensions, future, numpy Required-by: torchvision

And I use the RTX3070 gcc7.5

LeoLee321 commented 3 years ago

Building wheels for collected packages: neural-renderer Building wheel for neural-renderer (setup.py) ... error ERROR: Command errored out with exit status 1: command: /home/leo/anaconda3/envs/venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-b2b5vmsv/setup.py'"'"'; file='"'"'/tmp/pip-req-build-b2b5vmsv/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-ohl2p46i cwd: /tmp/pip-req-build-b2b5vmsv/ Complete output (323 lines): running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-3.6 creating build/lib.linux-x86_64-3.6/neural_renderer copying neural_renderer/init.py -> build/lib.linux-x86_64-3.6/neural_renderer copying neural_renderer/save_obj.py -> build/lib.linux-x86_64-3.6/neural_renderer copying neural_renderer/rasterize_test.py -> build/lib.linux-x86_64-3.6/neural_renderer copying neural_renderer/perspective.py -> build/lib.linux-x86_64-3.6/neural_renderer copying neural_renderer/vertices_to_faces.py -> build/lib.linux-x86_64-3.6/neural_renderer copying neural_renderer/load_obj.py -> build/lib.linux-x86_64-3.6/neural_renderer copying neural_renderer/mesh.py -> build/lib.linux-x86_64-3.6/neural_renderer copying neural_renderer/lighting.py -> build/lib.linux-x86_64-3.6/neural_renderer copying neural_renderer/rasterize.py -> build/lib.linux-x86_64-3.6/neural_renderer copying neural_renderer/get_points_from_angles.py -> build/lib.linux-x86_64-3.6/neural_renderer copying neural_renderer/renderer.py -> build/lib.linux-x86_64-3.6/neural_renderer copying neural_renderer/look.py -> build/lib.linux-x86_64-3.6/neural_renderer copying neural_renderer/look_at.py -> build/lib.linux-x86_64-3.6/neural_renderer copying neural_renderer/projection.py -> build/lib.linux-x86_64-3.6/neural_renderer creating build/lib.linux-x86_64-3.6/neural_renderer/cuda copying neural_renderer/cuda/init.py -> build/lib.linux-x86_64-3.6/neural_renderer/cuda copying neural_renderer/cuda/rasterize.py -> build/lib.linux-x86_64-3.6/neural_renderer/cuda copying neural_renderer/cuda/load_textures.py -> build/lib.linux-x86_64-3.6/neural_renderer/cuda copying neural_renderer/cuda/create_texture_image.py -> build/lib.linux-x86_64-3.6/neural_renderer/cuda running build_ext building 'neural_renderer.cuda.load_textures' extension creating /tmp/pip-req-build-b2b5vmsv/build/temp.linux-x86_64-3.6 creating /tmp/pip-req-build-b2b5vmsv/build/temp.linux-x86_64-3.6/neural_renderer creating /tmp/pip-req-build-b2b5vmsv/build/temp.linux-x86_64-3.6/neural_renderer/cuda /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/cuda/init.py:104: UserWarning: GeForce RTX 3070 with CUDA capability sm_86 is not compatible with the current PyTorch installation. The current PyTorch install supports CUDA capabilities sm_37 sm_50 sm_60 sm_70 sm_75. If you want to use the GeForce RTX 3070 GPU with PyTorch, please check the instructions at https://pytorch.org/get-started/locally/

warnings.warn(incompatible_device_warn.format(device_name, capability, " ".join(arch_list), device_name))

Emitting ninja build file /tmp/pip-req-build-b2b5vmsv/build/temp.linux-x86_64-3.6/build.ninja... Compiling objects... Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N) [1/2] /usr/local/cuda/bin/nvcc -I/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include -I/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/TH -I/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/leo/anaconda3/envs/venv/include/python3.6m -c -c /tmp/pip-req-build-b2b5vmsv/neural_renderer/cuda/load_textures_cuda_kernel.cu -o /tmp/pip-req-build-b2b5vmsv/build/temp.linux-x86_64-3.6/neural_renderer/cuda/load_textures_cuda_kernel.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_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_86,code=sm_86 -std=c++14 FAILED: /tmp/pip-req-build-b2b5vmsv/build/temp.linux-x86_64-3.6/neural_renderer/cuda/load_textures_cuda_kernel.o /usr/local/cuda/bin/nvcc -I/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include -I/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/TH -I/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/leo/anaconda3/envs/venv/include/python3.6m -c -c /tmp/pip-req-build-b2b5vmsv/neural_renderer/cuda/load_textures_cuda_kernel.cu -o /tmp/pip-req-build-b2b5vmsv/build/temp.linux-x86_64-3.6/neural_renderer/cuda/load_textures_cuda_kernel.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_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_86,code=sm_86 -std=c++14 nvcc fatal : Unsupported gpu architecture 'compute_86' [2/2] c++ -MMD -MF /tmp/pip-req-build-b2b5vmsv/build/temp.linux-x86_64-3.6/neural_renderer/cuda/load_textures_cuda.o.d -pthread -B /home/leo/anaconda3/envs/venv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include -I/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/TH -I/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/leo/anaconda3/envs/venv/include/python3.6m -c -c /tmp/pip-req-build-b2b5vmsv/neural_renderer/cuda/load_textures_cuda.cpp -o /tmp/pip-req-build-b2b5vmsv/build/temp.linux-x86_64-3.6/neural_renderer/cuda/load_textures_cuda.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=load_textures -D_GLIBCXX_USE_CXX11_ABI=0 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ In file included from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/ATen/Parallel.h:149:0, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:12, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3, from /tmp/pip-req-build-b2b5vmsv/neural_renderer/cuda/load_textures_cuda.cpp:1: /home/leo/anaconda3/envs/venv/lib/python3.6/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)

In file included from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/c10/core/DeviceType.h:8:0, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/c10/core/Device.h:3, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/c10/core/Allocator.h:6, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/ATen/ATen.h:7, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3, from /tmp/pip-req-build-b2b5vmsv/neural_renderer/cuda/load_textures_cuda.cpp:1: /tmp/pip-req-build-b2b5vmsv/neural_renderer/cuda/load_textures_cuda.cpp: In function ‘at::Tensor load_textures(at::Tensor, at::Tensor, at::Tensor, at::Tensor)’: /tmp/pip-req-build-b2b5vmsv/neural_renderer/cuda/load_textures_cuda.cpp:13:42: 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) TORCH_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")

                                        ^

/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/c10/macros/Macros.h:171:65: note: in definition of macro ‘C10_UNLIKELY’

define C10_UNLIKELY(expr) (__builtin_expect(static_cast(expr), 0))

                                                               ^~~~

/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:330:7: note: in expansion of macro ‘C10_UNLIKELY_OR_CONST’ if (C10_UNLIKELY_OR_CONST(!(cond))) { \ ^~~~~ /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:318:3: note: in expansion of macro ‘TORCH_CHECK_WITH_MSG’ TORCH_CHECK_WITH_MSG(error_t, cond, "", __VA_ARGS__) ^~~~~~~~ /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:341:32: note: in expansion of macro ‘TORCH_CHECK_WITH’

define TORCH_CHECK(cond, ...) TORCH_CHECK_WITH(Error, cond, __VA_ARGS__)

                              ^~~~~~~~~~~~~~~~

/tmp/pip-req-build-b2b5vmsv/neural_renderer/cuda/load_textures_cuda.cpp:13:23: note: in expansion of macro ‘TORCH_CHECK’

define CHECK_CUDA(x) TORCH_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")

                     ^~~~~~~~~~~

/tmp/pip-req-build-b2b5vmsv/neural_renderer/cuda/load_textures_cuda.cpp:15:24: note: in expansion of macro ‘CHECK_CUDA’

define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)

                      ^~~~~~~~~~

/tmp/pip-req-build-b2b5vmsv/neural_renderer/cuda/load_textures_cuda.cpp:24:5: note: in expansion of macro ‘CHECK_INPUT’ CHECK_INPUT(image); ^~~ In file included from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3, from /tmp/pip-req-build-b2b5vmsv/neural_renderer/cuda/load_textures_cuda.cpp:1: /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:277:30: note: declared here DeprecatedTypeProperties & type() const { ^~~~ In file included from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/c10/core/DeviceType.h:8:0, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/c10/core/Device.h:3, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/c10/core/Allocator.h:6, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/ATen/ATen.h:7, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3, from /tmp/pip-req-build-b2b5vmsv/neural_renderer/cuda/load_textures_cuda.cpp:1: /tmp/pip-req-build-b2b5vmsv/neural_renderer/cuda/load_textures_cuda.cpp:13:42: 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) TORCH_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")

                                        ^

/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/c10/macros/Macros.h:171:65: note: in definition of macro ‘C10_UNLIKELY’

define C10_UNLIKELY(expr) (__builtin_expect(static_cast(expr), 0))

                                                               ^~~~

/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:330:7: note: in expansion of macro ‘C10_UNLIKELY_OR_CONST’ if (C10_UNLIKELY_OR_CONST(!(cond))) { \ ^~~~~ /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:318:3: note: in expansion of macro ‘TORCH_CHECK_WITH_MSG’ TORCH_CHECK_WITH_MSG(error_t, cond, "", __VA_ARGS__) ^~~~~~~~ /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:341:32: note: in expansion of macro ‘TORCH_CHECK_WITH’

define TORCH_CHECK(cond, ...) TORCH_CHECK_WITH(Error, cond, __VA_ARGS__)

                              ^~~~~~~~~~~~~~~~

/tmp/pip-req-build-b2b5vmsv/neural_renderer/cuda/load_textures_cuda.cpp:13:23: note: in expansion of macro ‘TORCH_CHECK’

define CHECK_CUDA(x) TORCH_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")

                     ^~~~~~~~~~~

/tmp/pip-req-build-b2b5vmsv/neural_renderer/cuda/load_textures_cuda.cpp:15:24: note: in expansion of macro ‘CHECK_CUDA’

define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)

                      ^~~~~~~~~~

/tmp/pip-req-build-b2b5vmsv/neural_renderer/cuda/load_textures_cuda.cpp:25:5: note: in expansion of macro ‘CHECK_INPUT’ CHECK_INPUT(faces); ^~~ In file included from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3, from /tmp/pip-req-build-b2b5vmsv/neural_renderer/cuda/load_textures_cuda.cpp:1: /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:277:30: note: declared here DeprecatedTypeProperties & type() const { ^~~~ In file included from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/c10/core/DeviceType.h:8:0, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/c10/core/Device.h:3, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/c10/core/Allocator.h:6, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/ATen/ATen.h:7, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3, from /tmp/pip-req-build-b2b5vmsv/neural_renderer/cuda/load_textures_cuda.cpp:1: /tmp/pip-req-build-b2b5vmsv/neural_renderer/cuda/load_textures_cuda.cpp:13:42: 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) TORCH_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")

                                        ^

/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/c10/macros/Macros.h:171:65: note: in definition of macro ‘C10_UNLIKELY’

define C10_UNLIKELY(expr) (__builtin_expect(static_cast(expr), 0))

                                                               ^~~~

/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:330:7: note: in expansion of macro ‘C10_UNLIKELY_OR_CONST’ if (C10_UNLIKELY_OR_CONST(!(cond))) { \ ^~~~~ /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:318:3: note: in expansion of macro ‘TORCH_CHECK_WITH_MSG’ TORCH_CHECK_WITH_MSG(error_t, cond, "", __VA_ARGS__) ^~~~~~~~ /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:341:32: note: in expansion of macro ‘TORCH_CHECK_WITH’

define TORCH_CHECK(cond, ...) TORCH_CHECK_WITH(Error, cond, __VA_ARGS__)

                              ^~~~~~~~~~~~~~~~

/tmp/pip-req-build-b2b5vmsv/neural_renderer/cuda/load_textures_cuda.cpp:13:23: note: in expansion of macro ‘TORCH_CHECK’

define CHECK_CUDA(x) TORCH_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")

                     ^~~~~~~~~~~

/tmp/pip-req-build-b2b5vmsv/neural_renderer/cuda/load_textures_cuda.cpp:15:24: note: in expansion of macro ‘CHECK_CUDA’

define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)

                      ^~~~~~~~~~

/tmp/pip-req-build-b2b5vmsv/neural_renderer/cuda/load_textures_cuda.cpp:26:5: note: in expansion of macro ‘CHECK_INPUT’ CHECK_INPUT(is_update); ^~~ In file included from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3, from /tmp/pip-req-build-b2b5vmsv/neural_renderer/cuda/load_textures_cuda.cpp:1: /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:277:30: note: declared here DeprecatedTypeProperties & type() const { ^~~~ In file included from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/c10/core/DeviceType.h:8:0, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/c10/core/Device.h:3, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/c10/core/Allocator.h:6, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/ATen/ATen.h:7, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3, from /tmp/pip-req-build-b2b5vmsv/neural_renderer/cuda/load_textures_cuda.cpp:1: /tmp/pip-req-build-b2b5vmsv/neural_renderer/cuda/load_textures_cuda.cpp:13:42: 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) TORCH_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")

                                        ^

/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/c10/macros/Macros.h:171:65: note: in definition of macro ‘C10_UNLIKELY’

define C10_UNLIKELY(expr) (__builtin_expect(static_cast(expr), 0))

                                                               ^~~~

/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:330:7: note: in expansion of macro ‘C10_UNLIKELY_OR_CONST’ if (C10_UNLIKELY_OR_CONST(!(cond))) { \ ^~~~~ /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:318:3: note: in expansion of macro ‘TORCH_CHECK_WITH_MSG’ TORCH_CHECK_WITH_MSG(error_t, cond, "", __VA_ARGS__) ^~~~~~~~ /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:341:32: note: in expansion of macro ‘TORCH_CHECK_WITH’

define TORCH_CHECK(cond, ...) TORCH_CHECK_WITH(Error, cond, __VA_ARGS__)

                              ^~~~~~~~~~~~~~~~

/tmp/pip-req-build-b2b5vmsv/neural_renderer/cuda/load_textures_cuda.cpp:13:23: note: in expansion of macro ‘TORCH_CHECK’

define CHECK_CUDA(x) TORCH_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")

                     ^~~~~~~~~~~

/tmp/pip-req-build-b2b5vmsv/neural_renderer/cuda/load_textures_cuda.cpp:15:24: note: in expansion of macro ‘CHECK_CUDA’

define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)

                      ^~~~~~~~~~

/tmp/pip-req-build-b2b5vmsv/neural_renderer/cuda/load_textures_cuda.cpp:27:5: note: in expansion of macro ‘CHECK_INPUT’ CHECK_INPUT(textures); ^~~ In file included from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8, from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3, from /tmp/pip-req-build-b2b5vmsv/neural_renderer/cuda/load_textures_cuda.cpp:1: /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:277:30: note: declared here DeprecatedTypeProperties & type() const { ^~~~ ninja: build stopped: subcommand failed. Traceback (most recent call last): File "/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1522, in _run_ninja_build env=env) File "/home/leo/anaconda3/envs/venv/lib/python3.6/subprocess.py", line 418, in run output=stdout, stderr=stderr) subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "", line 1, in File "/tmp/pip-req-build-b2b5vmsv/setup.py", line 60, in cmdclass={'build_ext': BuildExtension} File "/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/setuptools/init.py", line 153, in setup return distutils.core.setup(**attrs) File "/home/leo/anaconda3/envs/venv/lib/python3.6/distutils/core.py", line 148, in setup dist.run_commands() File "/home/leo/anaconda3/envs/venv/lib/python3.6/distutils/dist.py", line 955, in run_commands self.run_command(cmd) File "/home/leo/anaconda3/envs/venv/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/wheel/bdist_wheel.py", line 299, in run self.run_command('build') File "/home/leo/anaconda3/envs/venv/lib/python3.6/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/home/leo/anaconda3/envs/venv/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/home/leo/anaconda3/envs/venv/lib/python3.6/distutils/command/build.py", line 135, in run self.run_command(cmd_name) File "/home/leo/anaconda3/envs/venv/lib/python3.6/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/home/leo/anaconda3/envs/venv/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/setuptools/command/build_ext.py", line 79, in run _build_ext.run(self) File "/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run _build_ext.build_ext.run(self) File "/home/leo/anaconda3/envs/venv/lib/python3.6/distutils/command/build_ext.py", line 339, in run self.build_extensions() File "/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 653, in build_extensions build_ext.build_extensions(self) File "/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/Cython/Distutils/old_build_ext.py", line 195, in build_extensions _build_ext.build_ext.build_extensions(self) File "/home/leo/anaconda3/envs/venv/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions self._build_extensions_serial() File "/home/leo/anaconda3/envs/venv/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial self.build_extension(ext) File "/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/setuptools/command/build_ext.py", line 196, in build_extension _build_ext.build_extension(self, ext) File "/home/leo/anaconda3/envs/venv/lib/python3.6/distutils/command/build_ext.py", line 533, in build_extension depends=ext.depends) File "/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 482, in unix_wrap_ninja_compile with_cuda=with_cuda) File "/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1238, in _write_ninja_file_and_compile_objects error_prefix='Error compiling objects for extension') File "/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1538, in _run_ninja_build raise RuntimeError(message) from e RuntimeError: Error compiling objects for extension

ERROR: Failed building wheel for neural-renderer Running setup.py clean for neural-renderer Failed to build neural-renderer Installing collected packages: neural-renderer Running setup.py install for neural-renderer ... error ERROR: Command errored out with exit status 1: command: /home/leo/anaconda3/envs/venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-b2b5vmsv/setup.py'"'"'; file='"'"'/tmp/pip-req-build-b2b5vmsv/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-lgzgjnvf/install-record.txt --single-version-externally-managed --compile --install-headers /home/leo/anaconda3/envs/venv/include/python3.6m/neural-renderer cwd: /tmp/pip-req-build-b2b5vmsv/ Complete output (325 lines): running install running build running build_py creating build creating build/lib.linux-x86_64-3.6 creating build/lib.linux-x86_64-3.6/neural_renderer copying neural_renderer/init.py -> build/lib.linux-x86_64-3.6/neural_renderer copying neural_renderer/save_obj.py -> build/lib.linux-x86_64-3.6/neural_renderer copying neural_renderer/rasterize_test.py -> build/lib.linux-x86_64-3.6/neural_renderer copying neural_renderer/perspective.py -> build/lib.linux-x86_64-3.6/neural_renderer copying neural_renderer/vertices_to_faces.py -> build/lib.linux-x86_64-3.6/neural_renderer copying neural_renderer/load_obj.py -> build/lib.linux-x86_64-3.6/neural_renderer copying neural_renderer/mesh.py -> build/lib.linux-x86_64-3.6/neural_renderer copying neural_renderer/lighting.py -> build/lib.linux-x86_64-3.6/neural_renderer copying neural_renderer/rasterize.py -> build/lib.linux-x86_64-3.6/neural_renderer copying neural_renderer/get_points_from_angles.py -> build/lib.linux-x86_64-3.6/neural_renderer copying neural_renderer/renderer.py -> build/lib.linux-x86_64-3.6/neural_renderer copying neural_renderer/look.py -> build/lib.linux-x86_64-3.6/neural_renderer copying neural_renderer/look_at.py -> build/lib.linux-x86_64-3.6/neural_renderer copying neural_renderer/projection.py -> build/lib.linux-x86_64-3.6/neural_renderer creating build/lib.linux-x86_64-3.6/neural_renderer/cuda copying neural_renderer/cuda/init.py -> build/lib.linux-x86_64-3.6/neural_renderer/cuda copying neural_renderer/cuda/rasterize.py -> build/lib.linux-x86_64-3.6/neural_renderer/cuda copying neural_renderer/cuda/load_textures.py -> build/lib.linux-x86_64-3.6/neural_renderer/cuda copying neural_renderer/cuda/create_texture_image.py -> build/lib.linux-x86_64-3.6/neural_renderer/cuda running build_ext building 'neural_renderer.cuda.load_textures' extension creating /tmp/pip-req-build-b2b5vmsv/build/temp.linux-x86_64-3.6 creating /tmp/pip-req-build-b2b5vmsv/build/temp.linux-x86_64-3.6/neural_renderer creating /tmp/pip-req-build-b2b5vmsv/build/temp.linux-x86_64-3.6/neural_renderer/cuda /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/cuda/init.py:104: UserWarning: GeForce RTX 3070 with CUDA capability sm_86 is not compatible with the current PyTorch installation. The current PyTorch install supports CUDA capabilities sm_37 sm_50 sm_60 sm_70 sm_75. If you want to use the GeForce RTX 3070 GPU with PyTorch, please check the instructions at https://pytorch.org/get-started/locally/

  warnings.warn(incompatible_device_warn.format(device_name, capability, " ".join(arch_list), device_name))
Emitting ninja build file /tmp/pip-req-build-b2b5vmsv/build/temp.linux-x86_64-3.6/build.ninja...
Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
[1/2] /usr/local/cuda/bin/nvcc -I/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include -I/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/TH -I/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/leo/anaconda3/envs/venv/include/python3.6m -c -c /tmp/pip-req-build-b2b5vmsv/neural_renderer/cuda/load_textures_cuda_kernel.cu -o /tmp/pip-req-build-b2b5vmsv/build/temp.linux-x86_64-3.6/neural_renderer/cuda/load_textures_cuda_kernel.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_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_86,code=sm_86 -std=c++14
FAILED: /tmp/pip-req-build-b2b5vmsv/build/temp.linux-x86_64-3.6/neural_renderer/cuda/load_textures_cuda_kernel.o
/usr/local/cuda/bin/nvcc -I/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include -I/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/TH -I/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/leo/anaconda3/envs/venv/include/python3.6m -c -c /tmp/pip-req-build-b2b5vmsv/neural_renderer/cuda/load_textures_cuda_kernel.cu -o /tmp/pip-req-build-b2b5vmsv/build/temp.linux-x86_64-3.6/neural_renderer/cuda/load_textures_cuda_kernel.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_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_86,code=sm_86 -std=c++14
nvcc fatal   : Unsupported gpu architecture 'compute_86'
[2/2] c++ -MMD -MF /tmp/pip-req-build-b2b5vmsv/build/temp.linux-x86_64-3.6/neural_renderer/cuda/load_textures_cuda.o.d -pthread -B /home/leo/anaconda3/envs/venv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include -I/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/TH -I/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/leo/anaconda3/envs/venv/include/python3.6m -c -c /tmp/pip-req-build-b2b5vmsv/neural_renderer/cuda/load_textures_cuda.cpp -o /tmp/pip-req-build-b2b5vmsv/build/temp.linux-x86_64-3.6/neural_renderer/cuda/load_textures_cuda.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=load_textures -D_GLIBCXX_USE_CXX11_ABI=0
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/ATen/Parallel.h:149:0,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:12,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
                 from /tmp/pip-req-build-b2b5vmsv/neural_renderer/cuda/load_textures_cuda.cpp:1:
/home/leo/anaconda3/envs/venv/lib/python3.6/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)

In file included from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/c10/core/DeviceType.h:8:0,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/c10/core/Device.h:3,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/c10/core/Allocator.h:6,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/ATen/ATen.h:7,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
                 from /tmp/pip-req-build-b2b5vmsv/neural_renderer/cuda/load_textures_cuda.cpp:1:
/tmp/pip-req-build-b2b5vmsv/neural_renderer/cuda/load_textures_cuda.cpp: In function ‘at::Tensor load_textures(at::Tensor, at::Tensor, at::Tensor, at::Tensor)’:
/tmp/pip-req-build-b2b5vmsv/neural_renderer/cuda/load_textures_cuda.cpp:13:42: 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) TORCH_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")
                                          ^
/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/c10/macros/Macros.h:171:65: note: in definition of macro ‘C10_UNLIKELY’
 #define C10_UNLIKELY(expr)  (__builtin_expect(static_cast<bool>(expr), 0))
                                                                 ^~~~
/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:330:7: note: in expansion of macro ‘C10_UNLIKELY_OR_CONST’
   if (C10_UNLIKELY_OR_CONST(!(cond))) {                               \
       ^~~~~~~~~~~~~~~~~~~~~
/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:318:3: note: in expansion of macro ‘TORCH_CHECK_WITH_MSG’
   TORCH_CHECK_WITH_MSG(error_t, cond, "", __VA_ARGS__)
   ^~~~~~~~~~~~~~~~~~~~
/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:341:32: note: in expansion of macro ‘TORCH_CHECK_WITH’
 #define TORCH_CHECK(cond, ...) TORCH_CHECK_WITH(Error, cond, __VA_ARGS__)
                                ^~~~~~~~~~~~~~~~
/tmp/pip-req-build-b2b5vmsv/neural_renderer/cuda/load_textures_cuda.cpp:13:23: note: in expansion of macro ‘TORCH_CHECK’
 #define CHECK_CUDA(x) TORCH_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")
                       ^~~~~~~~~~~
/tmp/pip-req-build-b2b5vmsv/neural_renderer/cuda/load_textures_cuda.cpp:15:24: note: in expansion of macro ‘CHECK_CUDA’
 #define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)
                        ^~~~~~~~~~
/tmp/pip-req-build-b2b5vmsv/neural_renderer/cuda/load_textures_cuda.cpp:24:5: note: in expansion of macro ‘CHECK_INPUT’
     CHECK_INPUT(image);
     ^~~~~~~~~~~
In file included from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
                 from /tmp/pip-req-build-b2b5vmsv/neural_renderer/cuda/load_textures_cuda.cpp:1:
/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:277:30: note: declared here
   DeprecatedTypeProperties & type() const {
                              ^~~~
In file included from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/c10/core/DeviceType.h:8:0,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/c10/core/Device.h:3,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/c10/core/Allocator.h:6,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/ATen/ATen.h:7,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
                 from /tmp/pip-req-build-b2b5vmsv/neural_renderer/cuda/load_textures_cuda.cpp:1:
/tmp/pip-req-build-b2b5vmsv/neural_renderer/cuda/load_textures_cuda.cpp:13:42: 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) TORCH_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")
                                          ^
/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/c10/macros/Macros.h:171:65: note: in definition of macro ‘C10_UNLIKELY’
 #define C10_UNLIKELY(expr)  (__builtin_expect(static_cast<bool>(expr), 0))
                                                                 ^~~~
/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:330:7: note: in expansion of macro ‘C10_UNLIKELY_OR_CONST’
   if (C10_UNLIKELY_OR_CONST(!(cond))) {                               \
       ^~~~~~~~~~~~~~~~~~~~~
/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:318:3: note: in expansion of macro ‘TORCH_CHECK_WITH_MSG’
   TORCH_CHECK_WITH_MSG(error_t, cond, "", __VA_ARGS__)
   ^~~~~~~~~~~~~~~~~~~~
/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:341:32: note: in expansion of macro ‘TORCH_CHECK_WITH’
 #define TORCH_CHECK(cond, ...) TORCH_CHECK_WITH(Error, cond, __VA_ARGS__)
                                ^~~~~~~~~~~~~~~~
/tmp/pip-req-build-b2b5vmsv/neural_renderer/cuda/load_textures_cuda.cpp:13:23: note: in expansion of macro ‘TORCH_CHECK’
 #define CHECK_CUDA(x) TORCH_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")
                       ^~~~~~~~~~~
/tmp/pip-req-build-b2b5vmsv/neural_renderer/cuda/load_textures_cuda.cpp:15:24: note: in expansion of macro ‘CHECK_CUDA’
 #define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)
                        ^~~~~~~~~~
/tmp/pip-req-build-b2b5vmsv/neural_renderer/cuda/load_textures_cuda.cpp:25:5: note: in expansion of macro ‘CHECK_INPUT’
     CHECK_INPUT(faces);
     ^~~~~~~~~~~
In file included from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
                 from /tmp/pip-req-build-b2b5vmsv/neural_renderer/cuda/load_textures_cuda.cpp:1:
/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:277:30: note: declared here
   DeprecatedTypeProperties & type() const {
                              ^~~~
In file included from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/c10/core/DeviceType.h:8:0,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/c10/core/Device.h:3,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/c10/core/Allocator.h:6,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/ATen/ATen.h:7,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
                 from /tmp/pip-req-build-b2b5vmsv/neural_renderer/cuda/load_textures_cuda.cpp:1:
/tmp/pip-req-build-b2b5vmsv/neural_renderer/cuda/load_textures_cuda.cpp:13:42: 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) TORCH_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")
                                          ^
/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/c10/macros/Macros.h:171:65: note: in definition of macro ‘C10_UNLIKELY’
 #define C10_UNLIKELY(expr)  (__builtin_expect(static_cast<bool>(expr), 0))
                                                                 ^~~~
/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:330:7: note: in expansion of macro ‘C10_UNLIKELY_OR_CONST’
   if (C10_UNLIKELY_OR_CONST(!(cond))) {                               \
       ^~~~~~~~~~~~~~~~~~~~~
/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:318:3: note: in expansion of macro ‘TORCH_CHECK_WITH_MSG’
   TORCH_CHECK_WITH_MSG(error_t, cond, "", __VA_ARGS__)
   ^~~~~~~~~~~~~~~~~~~~
/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:341:32: note: in expansion of macro ‘TORCH_CHECK_WITH’
 #define TORCH_CHECK(cond, ...) TORCH_CHECK_WITH(Error, cond, __VA_ARGS__)
                                ^~~~~~~~~~~~~~~~
/tmp/pip-req-build-b2b5vmsv/neural_renderer/cuda/load_textures_cuda.cpp:13:23: note: in expansion of macro ‘TORCH_CHECK’
 #define CHECK_CUDA(x) TORCH_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")
                       ^~~~~~~~~~~
/tmp/pip-req-build-b2b5vmsv/neural_renderer/cuda/load_textures_cuda.cpp:15:24: note: in expansion of macro ‘CHECK_CUDA’
 #define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)
                        ^~~~~~~~~~
/tmp/pip-req-build-b2b5vmsv/neural_renderer/cuda/load_textures_cuda.cpp:26:5: note: in expansion of macro ‘CHECK_INPUT’
     CHECK_INPUT(is_update);
     ^~~~~~~~~~~
In file included from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
                 from /tmp/pip-req-build-b2b5vmsv/neural_renderer/cuda/load_textures_cuda.cpp:1:
/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:277:30: note: declared here
   DeprecatedTypeProperties & type() const {
                              ^~~~
In file included from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/c10/core/DeviceType.h:8:0,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/c10/core/Device.h:3,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/c10/core/Allocator.h:6,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/ATen/ATen.h:7,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
                 from /tmp/pip-req-build-b2b5vmsv/neural_renderer/cuda/load_textures_cuda.cpp:1:
/tmp/pip-req-build-b2b5vmsv/neural_renderer/cuda/load_textures_cuda.cpp:13:42: 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) TORCH_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")
                                          ^
/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/c10/macros/Macros.h:171:65: note: in definition of macro ‘C10_UNLIKELY’
 #define C10_UNLIKELY(expr)  (__builtin_expect(static_cast<bool>(expr), 0))
                                                                 ^~~~
/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:330:7: note: in expansion of macro ‘C10_UNLIKELY_OR_CONST’
   if (C10_UNLIKELY_OR_CONST(!(cond))) {                               \
       ^~~~~~~~~~~~~~~~~~~~~
/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:318:3: note: in expansion of macro ‘TORCH_CHECK_WITH_MSG’
   TORCH_CHECK_WITH_MSG(error_t, cond, "", __VA_ARGS__)
   ^~~~~~~~~~~~~~~~~~~~
/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:341:32: note: in expansion of macro ‘TORCH_CHECK_WITH’
 #define TORCH_CHECK(cond, ...) TORCH_CHECK_WITH(Error, cond, __VA_ARGS__)
                                ^~~~~~~~~~~~~~~~
/tmp/pip-req-build-b2b5vmsv/neural_renderer/cuda/load_textures_cuda.cpp:13:23: note: in expansion of macro ‘TORCH_CHECK’
 #define CHECK_CUDA(x) TORCH_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")
                       ^~~~~~~~~~~
/tmp/pip-req-build-b2b5vmsv/neural_renderer/cuda/load_textures_cuda.cpp:15:24: note: in expansion of macro ‘CHECK_CUDA’
 #define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)
                        ^~~~~~~~~~
/tmp/pip-req-build-b2b5vmsv/neural_renderer/cuda/load_textures_cuda.cpp:27:5: note: in expansion of macro ‘CHECK_INPUT’
     CHECK_INPUT(textures);
     ^~~~~~~~~~~
In file included from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
                 from /home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
                 from /tmp/pip-req-build-b2b5vmsv/neural_renderer/cuda/load_textures_cuda.cpp:1:
/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:277:30: note: declared here
   DeprecatedTypeProperties & type() const {
                              ^~~~
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
  File "/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1522, in _run_ninja_build
    env=env)
  File "/home/leo/anaconda3/envs/venv/lib/python3.6/subprocess.py", line 418, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-req-build-b2b5vmsv/setup.py", line 60, in <module>
    cmdclass={'build_ext': BuildExtension}
  File "/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/setuptools/__init__.py", line 153, in setup
    return distutils.core.setup(**attrs)
  File "/home/leo/anaconda3/envs/venv/lib/python3.6/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/home/leo/anaconda3/envs/venv/lib/python3.6/distutils/dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "/home/leo/anaconda3/envs/venv/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/setuptools/command/install.py", line 61, in run
    return orig.install.run(self)
  File "/home/leo/anaconda3/envs/venv/lib/python3.6/distutils/command/install.py", line 545, in run
    self.run_command('build')
  File "/home/leo/anaconda3/envs/venv/lib/python3.6/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/home/leo/anaconda3/envs/venv/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/home/leo/anaconda3/envs/venv/lib/python3.6/distutils/command/build.py", line 135, in run
    self.run_command(cmd_name)
  File "/home/leo/anaconda3/envs/venv/lib/python3.6/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/home/leo/anaconda3/envs/venv/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/setuptools/command/build_ext.py", line 79, in run
    _build_ext.run(self)
  File "/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run
    _build_ext.build_ext.run(self)
  File "/home/leo/anaconda3/envs/venv/lib/python3.6/distutils/command/build_ext.py", line 339, in run
    self.build_extensions()
  File "/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 653, in build_extensions
    build_ext.build_extensions(self)
  File "/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/Cython/Distutils/old_build_ext.py", line 195, in build_extensions
    _build_ext.build_ext.build_extensions(self)
  File "/home/leo/anaconda3/envs/venv/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions
    self._build_extensions_serial()
  File "/home/leo/anaconda3/envs/venv/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial
    self.build_extension(ext)
  File "/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/setuptools/command/build_ext.py", line 196, in build_extension
    _build_ext.build_extension(self, ext)
  File "/home/leo/anaconda3/envs/venv/lib/python3.6/distutils/command/build_ext.py", line 533, in build_extension
    depends=ext.depends)
  File "/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 482, in unix_wrap_ninja_compile
    with_cuda=with_cuda)
  File "/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1238, in _write_ninja_file_and_compile_objects
    error_prefix='Error compiling objects for extension')
  File "/home/leo/anaconda3/envs/venv/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1538, in _run_ninja_build
    raise RuntimeError(message) from e
RuntimeError: Error compiling objects for extension
----------------------------------------

ERROR: Command errored out with exit status 1: /home/leo/anaconda3/envs/venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-b2b5vmsv/setup.py'"'"'; file='"'"'/tmp/pip-req-build-b2b5vmsv/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-lgzgjnvf/install-record.txt --single-version-externally-managed --compile --install-headers /home/leo/anaconda3/envs/venv/include/python3.6m/neural-renderer Check the logs for full command output.

LeoLee321 commented 3 years ago

And I also use the CUDA 11.0, The same won't work. It could only run on pytorch==1.2 , but I can't run the demo with pytorch==1.2.

LeoLee321 commented 3 years ago

I use CUDA11.2 and pytorch1.8 to solve this problem.