Giter VIP home page Giter VIP logo

neural_renderer's People

Contributors

piaozhx avatar stevenliuwen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

neural_renderer's Issues

Install error

Hello, I'm trying to install this, but i get this error. I'm using latest anaconda with clean python3.6.
Logs of installation process; log.txt

No such file or directory

I'm trying to install on ubuntu 16.04, python3.6, cuda11.0, and I'm getting the following error. Do you have any idea why these files would be missing? TY~

(ipercore) ubun@ubun-MS-7C82:~/Downloads/neural_renderer-torch-1.5.0-$ python setup.py install

running install
running bdist_egg
running egg_info
writing neural_renderer.egg-info/PKG-INFO
writing dependency_links to neural_renderer.egg-info/dependency_links.txt
writing requirements to neural_renderer.egg-info/requires.txt
writing top-level names to neural_renderer.egg-info/top_level.txt
reading manifest file 'neural_renderer.egg-info/SOURCES.txt'
writing manifest file 'neural_renderer.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
running build_ext
building 'neural_renderer.cuda.load_textures' extension
Emitting ninja build file /home/ubun/Downloads/neural_renderer-torch-1.5.0-/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.10.2
g++ -pthread -shared -B /home/ubun/anaconda3/envs/ipercore/compiler_compat -L/home/ubun/anaconda3/envs/ipercore/lib -Wl,-rpath=/home/ubun/anaconda3/envs/ipercore/lib -Wl,--no-as-needed -Wl,--sysroot=/ /home/ubun/Downloads/neural_renderer-torch-1.5.0-/build/temp.linux-x86_64-3.6/neural_renderer/cuda/load_textures_cuda.o /home/ubun/Downloads/neural_renderer-torch-1.5.0-/build/temp.linux-x86_64-3.6/neural_renderer/cuda/load_textures_cuda_kernel.o -L/home/ubun/anaconda3/envs/ipercore/lib/python3.6/site-packages/torch/lib -L/usr/local/cuda-11.0/lib64 -lc10 -ltorch -ltorch_cpu -ltorch_python -lcudart -lc10_cuda -ltorch_cuda -o build/lib.linux-x86_64-3.6/neural_renderer/cuda/load_textures.cpython-36m-x86_64-linux-gnu.so
g++: error: /home/ubun/Downloads/neural_renderer-torch-1.5.0-/build/temp.linux-x86_64-3.6/neural_renderer/cuda/load_textures_cuda.o: No such file or directory
g++: error: /home/ubun/Downloads/neural_renderer-torch-1.5.0-/build/temp.linux-x86_64-3.6/neural_renderer/cuda/load_textures_cuda_kernel.o: No such file or directory
error: command 'g++' failed with exit status 1

what is the compile env for ubuntu?

install iPERcore, i have tried cuda11,1+torch1.8.1, cuda10.2+torch1.7.0. but all failed.

Running setup.py install for neural-renderer ... error
ERROR: Command errored out with exit status 1:
command: /data/anaconda3/envs/iper/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-lbfzn_sf/setup.py'"'"'; file='"'"'/tmp/pip-req-build-lbfzn_sf/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-vu4ed1in/install-record.txt --single-version-externally-managed --compile --install-headers /data/anaconda3/envs/iper/include/python3.8/neural-renderer
cwd: /tmp/pip-req-build-lbfzn_sf/
Complete output (297 lines):
running install
/data/anaconda3/envs/iper/lib/python3.8/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.8
creating build/lib.linux-x86_64-3.8/neural_renderer
copying neural_renderer/look_at.py -> build/lib.linux-x86_64-3.8/neural_renderer
copying neural_renderer/rasterize.py -> build/lib.linux-x86_64-3.8/neural_renderer
copying neural_renderer/look.py -> build/lib.linux-x86_64-3.8/neural_renderer
copying neural_renderer/load_obj.py -> build/lib.linux-x86_64-3.8/neural_renderer
copying neural_renderer/perspective.py -> build/lib.linux-x86_64-3.8/neural_renderer
copying neural_renderer/rasterize_test.py -> build/lib.linux-x86_64-3.8/neural_renderer
copying neural_renderer/init.py -> build/lib.linux-x86_64-3.8/neural_renderer
copying neural_renderer/projection.py -> build/lib.linux-x86_64-3.8/neural_renderer
copying neural_renderer/mesh.py -> build/lib.linux-x86_64-3.8/neural_renderer
copying neural_renderer/lighting.py -> build/lib.linux-x86_64-3.8/neural_renderer
copying neural_renderer/vertices_to_faces.py -> build/lib.linux-x86_64-3.8/neural_renderer
copying neural_renderer/renderer.py -> build/lib.linux-x86_64-3.8/neural_renderer
copying neural_renderer/get_points_from_angles.py -> build/lib.linux-x86_64-3.8/neural_renderer
copying neural_renderer/save_obj.py -> build/lib.linux-x86_64-3.8/neural_renderer
creating build/lib.linux-x86_64-3.8/neural_renderer/cuda
copying neural_renderer/cuda/rasterize.py -> build/lib.linux-x86_64-3.8/neural_renderer/cuda
copying neural_renderer/cuda/create_texture_image.py -> build/lib.linux-x86_64-3.8/neural_renderer/cuda
copying neural_renderer/cuda/init.py -> build/lib.linux-x86_64-3.8/neural_renderer/cuda
copying neural_renderer/cuda/load_textures.py -> build/lib.linux-x86_64-3.8/neural_renderer/cuda
running build_ext
building 'neural_renderer.cuda.load_textures' extension
creating /tmp/pip-req-build-lbfzn_sf/build/temp.linux-x86_64-3.8
creating /tmp/pip-req-build-lbfzn_sf/build/temp.linux-x86_64-3.8/neural_renderer
creating /tmp/pip-req-build-lbfzn_sf/build/temp.linux-x86_64-3.8/neural_renderer/cuda
Emitting ninja build file /tmp/pip-req-build-lbfzn_sf/build/temp.linux-x86_64-3.8/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:/usr/local/cuda/bin:/bin/nvcc --generate-dependencies-with-compile --dependency-output /tmp/pip-req-build-lbfzn_sf/build/temp.linux-x86_64-3.8/neural_renderer/cuda/load_textures_cuda_kernel.o.d -I/data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include -I/data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/TH -I/data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda/bin:/usr/local/cuda/bin:/include -I/data/anaconda3/envs/iper/include/python3.8 -c -c /tmp/pip-req-build-lbfzn_sf/neural_renderer/cuda/load_textures_cuda_kernel.cu -o /tmp/pip-req-build-lbfzn_sf/build/temp.linux-x86_64-3.8/neural_renderer/cuda/load_textures_cuda_kernel.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="gcc"' '-DPYBIND11_STDLIB="libstdcpp"' '-DPYBIND11_BUILD_ABI="cxxabi1011"' -DTORCH_EXTENSION_NAME=load_textures -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_60,code=compute_60 -gencode=arch=compute_60,code=sm_60 -std=c++14
FAILED: /tmp/pip-req-build-lbfzn_sf/build/temp.linux-x86_64-3.8/neural_renderer/cuda/load_textures_cuda_kernel.o
/usr/local/cuda/bin:/usr/local/cuda/bin:/bin/nvcc --generate-dependencies-with-compile --dependency-output /tmp/pip-req-build-lbfzn_sf/build/temp.linux-x86_64-3.8/neural_renderer/cuda/load_textures_cuda_kernel.o.d -I/data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include -I/data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/TH -I/data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda/bin:/usr/local/cuda/bin:/include -I/data/anaconda3/envs/iper/include/python3.8 -c -c /tmp/pip-req-build-lbfzn_sf/neural_renderer/cuda/load_textures_cuda_kernel.cu -o /tmp/pip-req-build-lbfzn_sf/build/temp.linux-x86_64-3.8/neural_renderer/cuda/load_textures_cuda_kernel.o -D__CUDA_NO_HALF_OPERATORS
-D__CUDA_NO_HALF_CONVERSIONS
_ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=load_textures -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_60,code=compute_60 -gencode=arch=compute_60,code=sm_60 -std=c++14
/bin/sh: 1: /usr/local/cuda/bin:/usr/local/cuda/bin:/bin/nvcc: not found
[2/2] c++ -MMD -MF /tmp/pip-req-build-lbfzn_sf/build/temp.linux-x86_64-3.8/neural_renderer/cuda/load_textures_cuda.o.d -pthread -B /data/anaconda3/envs/iper/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include -I/data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/TH -I/data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda/bin:/usr/local/cuda/bin:/include -I/data/anaconda3/envs/iper/include/python3.8 -c -c /tmp/pip-req-build-lbfzn_sf/neural_renderer/cuda/load_textures_cuda.cpp -o /tmp/pip-req-build-lbfzn_sf/build/temp.linux-x86_64-3.8/neural_renderer/cuda/load_textures_cuda.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -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 /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/ATen/Parallel.h:140:0,
from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3,
from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5,
from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3,
from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:13,
from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
from /tmp/pip-req-build-lbfzn_sf/neural_renderer/cuda/load_textures_cuda.cpp:1:
/data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/ATen/ParallelOpenMP.h:83:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]
#pragma omp parallel for if ((end - begin) >= grain_size)

In file included from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/c10/core/DeviceType.h:8:0,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/c10/core/Device.h:3,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/c10/core/Allocator.h:6,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/ATen/ATen.h:7,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
                 from /tmp/pip-req-build-lbfzn_sf/neural_renderer/cuda/load_textures_cuda.cpp:1:
/tmp/pip-req-build-lbfzn_sf/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-lbfzn_sf/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")
                                          ^
/data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/c10/macros/Macros.h:173:65: note: in definition of macro ‘C10_UNLIKELY’
 #define C10_UNLIKELY(expr)  (__builtin_expect(static_cast<bool>(expr), 0))
                                                                 ^~~~
/data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:362:7: note: in expansion of macro ‘C10_UNLIKELY_OR_CONST’
   if (C10_UNLIKELY_OR_CONST(!(cond))) {                                 \
       ^~~~~~~~~~~~~~~~~~~~~
/tmp/pip-req-build-lbfzn_sf/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-lbfzn_sf/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-lbfzn_sf/neural_renderer/cuda/load_textures_cuda.cpp:24:5: note: in expansion of macro ‘CHECK_INPUT’
     CHECK_INPUT(image);
     ^
In file included from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3:0,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/ATen/ATen.h:9,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
                 from /tmp/pip-req-build-lbfzn_sf/neural_renderer/cuda/load_textures_cuda.cpp:1:
/data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:303:30: note: declared here
   DeprecatedTypeProperties & type() const {
                              ^~~~
In file included from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/c10/core/DeviceType.h:8:0,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/c10/core/Device.h:3,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/c10/core/Allocator.h:6,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/ATen/ATen.h:7,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
                 from /tmp/pip-req-build-lbfzn_sf/neural_renderer/cuda/load_textures_cuda.cpp:1:
/tmp/pip-req-build-lbfzn_sf/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")
                                          ^
/data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/c10/macros/Macros.h:173:65: note: in definition of macro ‘C10_UNLIKELY’
 #define C10_UNLIKELY(expr)  (__builtin_expect(static_cast<bool>(expr), 0))
                                                                 ^~~~
/data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:362:7: note: in expansion of macro ‘C10_UNLIKELY_OR_CONST’
   if (C10_UNLIKELY_OR_CONST(!(cond))) {                                 \
       ^~~~~~~~~~~~~~~~~~~~~
/tmp/pip-req-build-lbfzn_sf/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-lbfzn_sf/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-lbfzn_sf/neural_renderer/cuda/load_textures_cuda.cpp:25:5: note: in expansion of macro ‘CHECK_INPUT’
     CHECK_INPUT(faces);
     ^
In file included from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3:0,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/ATen/ATen.h:9,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
                 from /tmp/pip-req-build-lbfzn_sf/neural_renderer/cuda/load_textures_cuda.cpp:1:
/data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:303:30: note: declared here
   DeprecatedTypeProperties & type() const {
                              ^~~~
In file included from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/c10/core/DeviceType.h:8:0,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/c10/core/Device.h:3,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/c10/core/Allocator.h:6,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/ATen/ATen.h:7,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
                 from /tmp/pip-req-build-lbfzn_sf/neural_renderer/cuda/load_textures_cuda.cpp:1:
/tmp/pip-req-build-lbfzn_sf/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")
                                          ^
/data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/c10/macros/Macros.h:173:65: note: in definition of macro ‘C10_UNLIKELY’
 #define C10_UNLIKELY(expr)  (__builtin_expect(static_cast<bool>(expr), 0))
                                                                 ^~~~
/data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:362:7: note: in expansion of macro ‘C10_UNLIKELY_OR_CONST’
   if (C10_UNLIKELY_OR_CONST(!(cond))) {                                 \
       ^~~~~~~~~~~~~~~~~~~~~
/tmp/pip-req-build-lbfzn_sf/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-lbfzn_sf/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-lbfzn_sf/neural_renderer/cuda/load_textures_cuda.cpp:26:5: note: in expansion of macro ‘CHECK_INPUT’
     CHECK_INPUT(is_update);
     ^
In file included from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3:0,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/ATen/ATen.h:9,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
                 from /tmp/pip-req-build-lbfzn_sf/neural_renderer/cuda/load_textures_cuda.cpp:1:
/data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:303:30: note: declared here
   DeprecatedTypeProperties & type() const {
                              ^~~~
In file included from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/c10/core/DeviceType.h:8:0,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/c10/core/Device.h:3,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/c10/core/Allocator.h:6,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/ATen/ATen.h:7,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
                 from /tmp/pip-req-build-lbfzn_sf/neural_renderer/cuda/load_textures_cuda.cpp:1:
/tmp/pip-req-build-lbfzn_sf/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")
                                          ^
/data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/c10/macros/Macros.h:173:65: note: in definition of macro ‘C10_UNLIKELY’
 #define C10_UNLIKELY(expr)  (__builtin_expect(static_cast<bool>(expr), 0))
                                                                 ^~~~
/data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:362:7: note: in expansion of macro ‘C10_UNLIKELY_OR_CONST’
   if (C10_UNLIKELY_OR_CONST(!(cond))) {                                 \
       ^~~~~~~~~~~~~~~~~~~~~
/tmp/pip-req-build-lbfzn_sf/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-lbfzn_sf/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-lbfzn_sf/neural_renderer/cuda/load_textures_cuda.cpp:27:5: note: in expansion of macro ‘CHECK_INPUT’
     CHECK_INPUT(textures);
     ^
In file included from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3:0,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/ATen/ATen.h:9,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
                 from /data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
                 from /tmp/pip-req-build-lbfzn_sf/neural_renderer/cuda/load_textures_cuda.cpp:1:
/data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:303:30: note: declared here
   DeprecatedTypeProperties & type() const {
                              ^~~~
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
  File "/data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1667, in _run_ninja_build
    subprocess.run(
  File "/data/anaconda3/envs/iper/lib/python3.8/subprocess.py", line 516, in run
    raise CalledProcessError(retcode, process.args,
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-lbfzn_sf/setup.py", line 49, in <module>
    setup(
  File "/data/anaconda3/envs/iper/lib/python3.8/site-packages/setuptools/__init__.py", line 153, in setup
    return distutils.core.setup(**attrs)
  File "/data/anaconda3/envs/iper/lib/python3.8/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/data/anaconda3/envs/iper/lib/python3.8/distutils/dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "/data/anaconda3/envs/iper/lib/python3.8/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/data/anaconda3/envs/iper/lib/python3.8/site-packages/setuptools/command/install.py", line 68, in run
    return orig.install.run(self)
  File "/data/anaconda3/envs/iper/lib/python3.8/distutils/command/install.py", line 545, in run
    self.run_command('build')
  File "/data/anaconda3/envs/iper/lib/python3.8/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/data/anaconda3/envs/iper/lib/python3.8/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/data/anaconda3/envs/iper/lib/python3.8/distutils/command/build.py", line 135, in run
    self.run_command(cmd_name)
  File "/data/anaconda3/envs/iper/lib/python3.8/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/data/anaconda3/envs/iper/lib/python3.8/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/data/anaconda3/envs/iper/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 79, in run
    _build_ext.run(self)
  File "/data/anaconda3/envs/iper/lib/python3.8/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run
    _build_ext.build_ext.run(self)
  File "/data/anaconda3/envs/iper/lib/python3.8/distutils/command/build_ext.py", line 340, in run
    self.build_extensions()
  File "/data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 708, in build_extensions
    build_ext.build_extensions(self)
  File "/data/anaconda3/envs/iper/lib/python3.8/site-packages/Cython/Distutils/old_build_ext.py", line 195, in build_extensions
    _build_ext.build_ext.build_extensions(self)
  File "/data/anaconda3/envs/iper/lib/python3.8/distutils/command/build_ext.py", line 449, in build_extensions
    self._build_extensions_serial()
  File "/data/anaconda3/envs/iper/lib/python3.8/distutils/command/build_ext.py", line 474, in _build_extensions_serial
    self.build_extension(ext)
  File "/data/anaconda3/envs/iper/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 202, in build_extension
    _build_ext.build_extension(self, ext)
  File "/data/anaconda3/envs/iper/lib/python3.8/distutils/command/build_ext.py", line 528, in build_extension
    objects = self.compiler.compile(sources,
  File "/data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 529, in unix_wrap_ninja_compile
    _write_ninja_file_and_compile_objects(
  File "/data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1354, in _write_ninja_file_and_compile_objects
    _run_ninja_build(
  File "/data/anaconda3/envs/iper/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1683, in _run_ninja_build
    raise RuntimeError(message) from e
RuntimeError: Error compiling objects for extension
----------------------------------------

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

what is the right env list(config). thx.

Excellent work!

The installation of the official version keeps giving errors, thank you for improving this project!
My environment is
Windows10
Python3.7
Pytorch1.4
CUDA10.1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.