I am trying to install a github repo named multiperson for PyTorch 1.6 and I get the following error. How can I make it work for PyTorch 1.6?
JavaScript
x
256
256
1
(base) mona@mona:~/research$ cd phosa/
2
(base) mona@mona:~/research/phosa$ mkdir -p external
3
(base) mona@mona:~/research/phosa$ git clone https://github.com/JiangWenPL/multiperson.git external/multiperson
4
Cloning into 'external/multiperson'
5
remote: Enumerating objects: 752, done.
6
remote: Counting objects: 100% (752/752), done.
7
remote: Compressing objects: 100% (566/566), done.
8
remote: Total 752 (delta 189), reused 723 (delta 173), pack-reused 0
9
Receiving objects: 100% (752/752), 48.29 MiB | 46.26 MiB/s, done.
10
Resolving deltas: 100% (189/189), done.
11
(base) mona@mona:~/research/phosa$ pip install external/multiperson/neural_renderer
12
Processing ./external/multiperson/neural_renderer
13
Building wheels for collected packages: neural-renderer-pytorch
14
Building wheel for neural-renderer-pytorch (setup.py) error
15
ERROR: Command errored out with exit status 1:
16
command: /home/mona/anaconda3/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-ma51z6r7/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-ma51z6r7/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-nl9m5bw0
17
cwd: /tmp/pip-req-build-ma51z6r7/
18
Complete output (210 lines):
19
running bdist_wheel
20
running build
21
running build_py
22
creating build
23
creating build/lib.linux-x86_64-3.7
24
creating build/lib.linux-x86_64-3.7/neural_renderer
25
copying neural_renderer/load_obj.py -> build/lib.linux-x86_64-3.7/neural_renderer
26
copying neural_renderer/perspective.py -> build/lib.linux-x86_64-3.7/neural_renderer
27
copying neural_renderer/vertices_to_faces.py -> build/lib.linux-x86_64-3.7/neural_renderer
28
copying neural_renderer/visibility.py -> build/lib.linux-x86_64-3.7/neural_renderer
29
copying neural_renderer/get_points_from_angles.py -> build/lib.linux-x86_64-3.7/neural_renderer
30
copying neural_renderer/look.py -> build/lib.linux-x86_64-3.7/neural_renderer
31
copying neural_renderer/projection.py -> build/lib.linux-x86_64-3.7/neural_renderer
32
copying neural_renderer/rasterize.py -> build/lib.linux-x86_64-3.7/neural_renderer
33
copying neural_renderer/save_obj.py -> build/lib.linux-x86_64-3.7/neural_renderer
34
copying neural_renderer/look_at.py -> build/lib.linux-x86_64-3.7/neural_renderer
35
copying neural_renderer/__init__.py -> build/lib.linux-x86_64-3.7/neural_renderer
36
copying neural_renderer/lighting.py -> build/lib.linux-x86_64-3.7/neural_renderer
37
copying neural_renderer/mesh.py -> build/lib.linux-x86_64-3.7/neural_renderer
38
copying neural_renderer/renderer.py -> build/lib.linux-x86_64-3.7/neural_renderer
39
creating build/lib.linux-x86_64-3.7/neural_renderer/cuda
40
copying neural_renderer/cuda/__init__.py -> build/lib.linux-x86_64-3.7/neural_renderer/cuda
41
running build_ext
42
building 'neural_renderer.cuda.load_textures' extension
43
creating /tmp/pip-req-build-ma51z6r7/build/temp.linux-x86_64-3.7
44
creating /tmp/pip-req-build-ma51z6r7/build/temp.linux-x86_64-3.7/neural_renderer
45
creating /tmp/pip-req-build-ma51z6r7/build/temp.linux-x86_64-3.7/neural_renderer/cuda
46
Emitting ninja build file /tmp/pip-req-build-ma51z6r7/build/temp.linux-x86_64-3.7/build.ninja
47
Compiling objects
48
Allowing ninja to set a default number of workers (overridable by setting the environment variable MAX_JOBS=N)
49
[1/2] /usr/bin/nvcc -I/home/mona/anaconda3/lib/python3.7/site-packages/torch/include -I/home/mona/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/mona/anaconda3/lib/python3.7/site-packages/torch/include/TH -I/home/mona/anaconda3/lib/python3.7/site-packages/torch/include/THC -I/home/mona/anaconda3/include/python3.7m -c -c /tmp/pip-req-build-ma51z6r7/neural_renderer/cuda/load_textures_cuda_kernel.cu -o /tmp/pip-req-
50
51
copying neural_renderer/look_at.py -> build/lib.linux-x86_64-3.7/neural_renderer
52
copying neural_renderer/__init__.py -> build/lib.linux-x86_64-3.7/neural_renderer
53
copying neural_renderer/lighting.py -> build/lib.linux-x86_64-3.7/neural_renderer
54
copying neural_renderer/mesh.py -> build/lib.linux-x86_64-3.7/neural_renderer
55
copying neural_renderer/renderer.py -> build/lib.linux-x86_64-3.7/neural_renderer
56
creating build/lib.linux-x86_64-3.7/neural_renderer/cuda
57
copying neural_renderer/cuda/__init__.py -> build/lib.linux-x86_64-3.7/neural_renderer/cuda
58
running build_ext
59
building 'neural_renderer.cuda.load_textures' extension
60
creating /tmp/pip-req-build-ma51z6r7/build/temp.linux-x86_64-3.7
61
creating /tmp/pip-req-build-ma51z6r7/build/temp.linux-x86_64-3.7/neural_renderer
62
creating /tmp/pip-req-build-ma51z6r7/build/temp.linux-x86_64-3.7/neural_renderer/cuda
63
Emitting ninja build file /tmp/pip-req-build-ma51z6r7/build/temp.linux-x86_64-3.7/build.ninja
64
Compiling objects
65
Allowing ninja to set a default number of workers (overridable by setting the environment variable MAX_JOBS=N)
66
[1/2] c++ -MMD -MF /tmp/pip-req-build-ma51z6r7/build/temp.linux-x86_64-3.7/neural_renderer/cuda/load_textures_cuda.o.d -pthread -B /home/mona/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/mona/anaconda3/lib/python3.7/site-packages/torch/include -I/home/mona/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/mona/anaconda3/lib/python3.7/site-packages/torch/include/TH -I/home/mona/anaconda3/lib/python3.7/site-packages/torch/include/THC -I/home/mona/anaconda3/include/python3.7m -c -c /tmp/pip-req-build-ma51z6r7/neural_renderer/cuda/load_textures_cuda.cpp -o /tmp/pip-req-build-ma51z6r7/build/temp.linux-x86_64-3.7/neural_renderer/cuda/load_textures_cuda.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=load_textures -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
67
FAILED: /tmp/pip-req-build-ma51z6r7/build/temp.linux-x86_64-3.7/neural_renderer/cuda/load_textures_cuda.o
68
c++ -MMD -MF /tmp/pip-req-build-ma51z6r7/build/temp.linux-x86_64-3.7/neural_renderer/cuda/load_textures_cuda.o.d -pthread -B /home/mona/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/mona/anaconda3/lib/python3.7/site-packages/torch/include -I/home/mona/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/mona/anaconda3/lib/python3.7/site-packages/torch/include/TH -I/home/mona/anaconda3/lib/python3.7/site-packages/torch/include/THC -I/home/mona/anaconda3/include/python3.7m -c -c /tmp/pip-req-build-ma51z6r7/neural_renderer/cuda/load_textures_cuda.cpp -o /tmp/pip-req-build-ma51z6r7/build/temp.linux-x86_64-3.7/neural_renderer/cuda/load_textures_cuda.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=load_textures -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
69
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
70
In file included from /home/mona/anaconda3/lib/python3.7/site-packages/torch/include/ATen/Parallel.h:149,
71
from /home/mona/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3,
72
from /home/mona/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5,
73
from /home/mona/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3,
74
from /home/mona/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:7,
75
from /home/mona/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
76
from /tmp/pip-req-build-ma51z6r7/neural_renderer/cuda/load_textures_cuda.cpp:1:
77
/home/mona/anaconda3/lib/python3.7/site-packages/torch/include/ATen/ParallelOpenMP.h:84: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]
78
84 | #pragma omp parallel for if ((end - begin) >= grain_size)
79
|
80
/tmp/pip-req-build-ma51z6r7/neural_renderer/cuda/load_textures_cuda.cpp: In function ‘at::Tensor load_textures(at::Tensor, at::Tensor, at::Tensor, at::Tensor, int, int)’:
81
/tmp/pip-req-build-ma51z6r7/neural_renderer/cuda/load_textures_cuda.cpp:15:39: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
82
15 | #define CHECK_CUDA(x) AT_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")
83
| ^
84
/tmp/pip-req-build-ma51z6r7/neural_renderer/cuda/load_textures_cuda.cpp:17:24: note: in expansion of macro ‘CHECK_CUDA’
85
17 | #define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)
86
| ^~~~~~~~~~
87
/tmp/pip-req-build-ma51z6r7/neural_renderer/cuda/load_textures_cuda.cpp:28:5: note: in expansion of macro ‘CHECK_INPUT’
88
28 | CHECK_INPUT(image);
89
| ^~~~~~~~~~~
90
In file included from /home/mona/anaconda3/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3,
91
from /home/mona/anaconda3/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
92
from /home/mona/anaconda3/lib/python3.7/site-packages/torch/include/ATen/ATen.h:5,
93
from /home/mona/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
94
from /home/mona/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
95
from /home/mona/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
96
from /home/mona/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
97
from /home/mona/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
98
from /home/mona/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
99
from /home/mona/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:4,
100
from /home/mona/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
101
from /tmp/pip-req-build-ma51z6r7/neural_renderer/cuda/load_textures_cuda.cpp:1:
102
/home/mona/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:268:30: note: declared here
103
268 | DeprecatedTypeProperties & type() const {
104
| ^~~~
105
/tmp/pip-req-build-ma51z6r7/neural_renderer/cuda/load_textures_cuda.cpp:15:23: error: ‘AT_CHECK’ was not declared in this scope; did you mean ‘DCHECK’?
106
15 | #define CHECK_CUDA(x) AT_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")
107
| ^~~~~~~~
108
/tmp/pip-req-build-ma51z6r7/neural_renderer/cuda/load_textures_cuda.cpp:17:24: note: in expansion of macro ‘CHECK_CUDA’
109
17 | #define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)
110
| ^~~~~~~~~~
111
/tmp/pip-req-build-ma51z6r7/neural_renderer/cuda/load_textures_cuda.cpp:28:5: note: in expansion of macro ‘CHECK_INPUT’
112
28 | CHECK_INPUT(image);
113
| ^~~~~~~~~~~
114
/tmp/pip-req-build-ma51z6r7/neural_renderer/cuda/load_textures_cuda.cpp:15:39: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
115
15 | #define CHECK_CUDA(x) AT_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")
116
| ^
117
/tmp/pip-req-build-ma51z6r7/neural_renderer/cuda/load_textures_cuda.cpp:17:24: note: in expansion of macro ‘CHECK_CUDA’
118
17 | #define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)
119
| ^~~~~~~~~~
120
/tmp/pip-req-build-ma51z6r7/neural_renderer/cuda/load_textures_cuda.cpp:29:5: note: in expansion of macro ‘CHECK_INPUT’
121
29 | CHECK_INPUT(faces);
122
| ^~~~~~~~~~~
123
In file included from /home/mona/anaconda3/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3,
124
from /home/mona/anaconda3/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
125
from /home/mona/anaconda3/lib/python3.7/site-packages/torch/include/ATen/ATen.h:5,
126
from /home/mona/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
127
from /home/mona/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
128
from /home/mona/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
129
from /home/mona/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
130
from /home/mona/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
131
from /home/mona/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
132
from /home/mona/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:4,
133
from /home/mona/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
134
from /tmp/pip-req-build-ma51z6r7/neural_renderer/cuda/load_textures_cuda.cpp:1:
135
/home/mona/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:268:30: note: declared here
136
268 | DeprecatedTypeProperties & type() const {
137
| ^~~~
138
/tmp/pip-req-build-ma51z6r7/neural_renderer/cuda/load_textures_cuda.cpp:15:39: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
139
15 | #define CHECK_CUDA(x) AT_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")
140
| ^
141
/tmp/pip-req-build-ma51z6r7/neural_renderer/cuda/load_textures_cuda.cpp:17:24: note: in expansion of macro ‘CHECK_CUDA’
142
17 | #define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)
143
| ^~~~~~~~~~
144
/tmp/pip-req-build-ma51z6r7/neural_renderer/cuda/load_textures_cuda.cpp:30:5: note: in expansion of macro ‘CHECK_INPUT’
145
30 | CHECK_INPUT(is_update);
146
| ^~~~~~~~~~~
147
In file included from /home/mona/anaconda3/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3,
148
from /home/mona/anaconda3/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
149
from /home/mona/anaconda3/lib/python3.7/site-packages/torch/include/ATen/ATen.h:5,
150
from /home/mona/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
151
from /home/mona/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
152
from /home/mona/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
153
from /home/mona/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
154
from /home/mona/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
155
from /home/mona/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
156
from /home/mona/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:4,
157
from /home/mona/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
158
from /tmp/pip-req-build-ma51z6r7/neural_renderer/cuda/load_textures_cuda.cpp:1:
159
/home/mona/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:268:30: note: declared here
160
268 | DeprecatedTypeProperties & type() const {
161
| ^~~~
162
/tmp/pip-req-build-ma51z6r7/neural_renderer/cuda/load_textures_cuda.cpp:15:39: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
163
15 | #define CHECK_CUDA(x) AT_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")
164
| ^
165
/tmp/pip-req-build-ma51z6r7/neural_renderer/cuda/load_textures_cuda.cpp:17:24: note: in expansion of macro ‘CHECK_CUDA’
166
17 | #define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)
167
| ^~~~~~~~~~
168
/tmp/pip-req-build-ma51z6r7/neural_renderer/cuda/load_textures_cuda.cpp:31:5: note: in expansion of macro ‘CHECK_INPUT’
169
31 | CHECK_INPUT(textures);
170
| ^~~~~~~~~~~
171
In file included from /home/mona/anaconda3/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3,
172
from /home/mona/anaconda3/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
173
from /home/mona/anaconda3/lib/python3.7/site-packages/torch/include/ATen/ATen.h:5,
174
from /home/mona/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
175
from /home/mona/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
176
from /home/mona/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
177
from /home/mona/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
178
from /home/mona/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
179
from /home/mona/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
180
from /home/mona/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:4,
181
from /home/mona/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
182
from /tmp/pip-req-build-ma51z6r7/neural_renderer/cuda/load_textures_cuda.cpp:1:
183
/home/mona/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:268:30: note: declared here
184
268 | DeprecatedTypeProperties & type() const {
185
| ^~~~
186
[2/2] /usr/bin/nvcc -I/home/mona/anaconda3/lib/python3.7/site-packages/torch/include -I/home/mona/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/mona/anaconda3/lib/python3.7/site-packages/torch/include/TH -I/home/mona/anaconda3/lib/python3.7/site-packages/torch/include/THC -I/home/mona/anaconda3/include/python3.7m -c -c /tmp/pip-req-build-ma51z6r7/neural_renderer/cuda/load_textures_cuda_kernel.cu -o /tmp/pip-req-build-ma51z6r7/build/temp.linux-x86_64-3.7/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_75,code=sm_75 -std=c++14
187
ninja: build stopped: subcommand failed.
188
Traceback (most recent call last):
189
File "/home/mona/anaconda3/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1515, in _run_ninja_build
190
env=env)
191
File "/home/mona/anaconda3/lib/python3.7/subprocess.py", line 512, in run
192
output=stdout, stderr=stderr)
193
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
194
195
During handling of the above exception, another exception occurred:
196
197
Traceback (most recent call last):
198
File "<string>", line 1, in <module>
199
File "/tmp/pip-req-build-ma51z6r7/setup.py", line 40, in <module>
200
cmdclass = {'build_ext': BuildExtension}
201
File "/home/mona/anaconda3/lib/python3.7/site-packages/setuptools/__init__.py", line 163, in setup
202
return distutils.core.setup(**attrs)
203
File "/home/mona/anaconda3/lib/python3.7/distutils/core.py", line 148, in setup
204
dist.run_commands()
205
File "/home/mona/anaconda3/lib/python3.7/distutils/dist.py", line 966, in run_commands
206
self.run_command(cmd)
207
File "/home/mona/anaconda3/lib/python3.7/distutils/dist.py", line 985, in run_command
208
cmd_obj.run()
209
File "/home/mona/anaconda3/lib/python3.7/site-packages/setuptools/command/install.py", line 61, in run
210
return orig.install.run(self)
211
File "/home/mona/anaconda3/lib/python3.7/distutils/command/install.py", line 545, in run
212
self.run_command('build')
213
File "/home/mona/anaconda3/lib/python3.7/distutils/cmd.py", line 313, in run_command
214
self.distribution.run_command(command)
215
File "/home/mona/anaconda3/lib/python3.7/distutils/dist.py", line 985, in run_command
216
cmd_obj.run()
217
File "/home/mona/anaconda3/lib/python3.7/distutils/command/build.py", line 135, in run
218
self.run_command(cmd_name)
219
File "/home/mona/anaconda3/lib/python3.7/distutils/cmd.py", line 313, in run_command
220
self.distribution.run_command(command)
221
File "/home/mona/anaconda3/lib/python3.7/distutils/dist.py", line 985, in run_command
222
cmd_obj.run()
223
File "/home/mona/anaconda3/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 87, in run
224
_build_ext.run(self)
225
File "/home/mona/anaconda3/lib/python3.7/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run
226
_build_ext.build_ext.run(self)
227
File "/home/mona/anaconda3/lib/python3.7/distutils/command/build_ext.py", line 340, in run
228
self.build_extensions()
229
File "/home/mona/anaconda3/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 649, in build_extensions
230
build_ext.build_extensions(self)
231
File "/home/mona/anaconda3/lib/python3.7/site-packages/Cython/Distutils/old_build_ext.py", line 195, in build_extensions
232
_build_ext.build_ext.build_extensions(self)
233
File "/home/mona/anaconda3/lib/python3.7/distutils/command/build_ext.py", line 449, in build_extensions
234
self._build_extensions_serial()
235
File "/home/mona/anaconda3/lib/python3.7/distutils/command/build_ext.py", line 474, in _build_extensions_serial
236
self.build_extension(ext)
237
File "/home/mona/anaconda3/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 208, in build_extension
238
_build_ext.build_extension(self, ext)
239
File "/home/mona/anaconda3/lib/python3.7/distutils/command/build_ext.py", line 534, in build_extension
240
depends=ext.depends)
241
File "/home/mona/anaconda3/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 478, in unix_wrap_ninja_compile
242
with_cuda=with_cuda)
243
File "/home/mona/anaconda3/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1233, in _write_ninja_file_and_compile_objects
244
error_prefix='Error compiling objects for extension')
245
File "/home/mona/anaconda3/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1529, in _run_ninja_build
246
raise RuntimeError(message)
247
RuntimeError: Error compiling objects for extension
248
----------------------------------------
249
Rolling back uninstall of neural-renderer-pytorch
250
Moving to /home/mona/anaconda3/lib/python3.7/site-packages/neural_renderer/
251
from /home/mona/anaconda3/lib/python3.7/site-packages/~eural_renderer
252
Moving to /home/mona/anaconda3/lib/python3.7/site-packages/neural_renderer_pytorch-1.1.3.dist-info/
253
from /home/mona/anaconda3/lib/python3.7/site-packages/~eural_renderer_pytorch-1.1.3.dist-info
254
ERROR: Command errored out with exit status 1: /home/mona/anaconda3/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-ma51z6r7/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-ma51z6r7/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-ul8nk1jn/install-record.txt --single-version-externally-managed --compile --install-headers /home/mona/anaconda3/include/python3.7m/neural-renderer-pytorch Check the logs for full command output.
255
256
I have:
JavaScript
1
34
34
1
$ python
2
Python 3.7.6 (default, Jan 8 2020, 19:59:22)
3
[GCC 7.3.0] :: Anaconda, Inc. on linux
4
Type "help", "copyright", "credits" or "license" for more information.
5
>>> import torch
6
>>> torch.__version__
7
'1.6.0'
8
$ lsb_release -a
9
LSB Version: core-11.1.0ubuntu2-noarch:security-11.1.0ubuntu2-noarch
10
Distributor ID: Ubuntu
11
Description: Ubuntu 20.04.1 LTS
12
Release: 20.04
13
Codename: focal
14
15
$ nvidia-smi
16
Sun Dec 6 16:36:36 2020
17
+-----------------------------------------------------------------------------+
18
| NVIDIA-SMI 450.80.02 Driver Version: 450.80.02 CUDA Version: 11.0 |
19
|-------------------------------+----------------------+----------------------+
20
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
21
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
22
| | | MIG M. |
23
|===============================+======================+======================|
24
| 0 GeForce RTX 2070 Off | 00000000:01:00.0 Off | N/A |
25
| N/A 49C P8 21W / N/A | 1546MiB / 7982MiB | 8% Default |
26
| | | N/A |
27
+-------------------------------+----------------------+----------------------+
28
$ nvcc --version
29
nvcc: NVIDIA (R) Cuda compiler driver
30
Copyright (c) 2005-2019 NVIDIA Corporation
31
Built on Sun_Jul_28_19:07:16_PDT_2019
32
Cuda compilation tools, release 10.1, V10.1.243
33
34
Advertisement
Answer
You would need to change all AT_CHECK
in neural mesh renderer to TORCH_CHECK
JavaScript
1
13
13
1
(base) mona@mona:~/research/phosa/external/multiperson/neural_renderer$ rg AT_CHECK
2
neural_renderer/cuda/load_textures_cuda.cpp
3
15:#define CHECK_CUDA(x) AT_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")
4
16:#define CHECK_CONTIGUOUS(x) AT_CHECK(x.is_contiguous(), #x " must be contiguous")
5
6
neural_renderer/cuda/create_texture_image_cuda.cpp
7
13:#define CHECK_CUDA(x) AT_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")
8
14:#define CHECK_CONTIGUOUS(x) AT_CHECK(x.is_contiguous(), #x " must be contiguous")
9
10
neural_renderer/cuda/rasterize_cuda.cpp
11
69:#define CHECK_CUDA(x) AT_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")
12
70:#define CHECK_CONTIGUOUS(x) AT_CHECK(x.is_contiguous(), #x " must be contiguous")
13
JavaScript
1
15
15
1
(base) mona@mona:~/research/phosa$ pip install external/multiperson/neural_renderer
2
Processing ./external/multiperson/neural_renderer
3
Building wheels for collected packages: neural-renderer-pytorch
4
Building wheel for neural-renderer-pytorch (setup.py) done
5
Created wheel for neural-renderer-pytorch: filename=neural_renderer_pytorch-1.1.3-cp37-cp37m-linux_x86_64.whl size=6321659 sha256=5e2f4afc2346a90c5cd804b226dd7c424ab95f477aad67f2ca3f15530484fbc6
6
Stored in directory: /tmp/pip-ephem-wheel-cache-_rf6c5ld/wheels/c7/1b/84/10bf7a286a267887d8c7d382677c292cf18e1bba4e2508ed33
7
Successfully built neural-renderer-pytorch
8
Installing collected packages: neural-renderer-pytorch
9
Attempting uninstall: neural-renderer-pytorch
10
Found existing installation: neural-renderer-pytorch 1.1.3
11
Uninstalling neural-renderer-pytorch-1.1.3:
12
Successfully uninstalled neural-renderer-pytorch-1.1.3
13
Successfully installed neural-renderer-pytorch-1.1.3
14
15