mmhuman3d
mmhuman3d copied to clipboard
web demo script import error
Hi, I was trying to run webcam_demo.py. When I tried to reinstall mmcv as suggested, I got the following error: dont know what this is all about. Any suggestions how to fix this? Thanks in advance!
"
running build_ext
building 'mmhuman3d.core.renderer.mpr_renderer.cuda.rasterizer' extension
creating /home/zhewei.qiu/github/mmhuman3d/build
creating /home/zhewei.qiu/github/mmhuman3d/build/temp.linux-x86_64-3.8
creating /home/zhewei.qiu/github/mmhuman3d/build/temp.linux-x86_64-3.8/mmhuman3d
creating /home/zhewei.qiu/github/mmhuman3d/build/temp.linux-x86_64-3.8/mmhuman3d/core
creating /home/zhewei.qiu/github/mmhuman3d/build/temp.linux-x86_64-3.8/mmhuman3d/core/renderer
creating /home/zhewei.qiu/github/mmhuman3d/build/temp.linux-x86_64-3.8/mmhuman3d/core/renderer/mpr_renderer
creating /home/zhewei.qiu/github/mmhuman3d/build/temp.linux-x86_64-3.8/mmhuman3d/core/renderer/mpr_renderer/cuda
Emitting ninja build file /home/zhewei.qiu/github/mmhuman3d/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)
/home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/setuptools/command/easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
/home/zhewei.qiu/anaconda3/envs/open-mmlab/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(
[1/2] /home/zhewei.qiu/anaconda3/pkgs/cudatoolkit-11.1.1-ha002fc5_10/lib/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/zhewei.qiu/github/mmhuman3d/build/temp.linux-x86_64-3.8/mmhuman3d/core/renderer/mpr_renderer/cuda/rasterizer_kernel.o.d -I/home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include -I/home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/TH -I/home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/THC -I/home/zhewei.qiu/anaconda3/pkgs/cudatoolkit-11.1.1-ha002fc5_10/lib/include -I/home/zhewei.qiu/anaconda3/envs/open-mmlab/include/python3.8 -c -c /home/zhewei.qiu/github/mmhuman3d/mmhuman3d/core/renderer/mpr_renderer/cuda/rasterizer_kernel.cu -o /home/zhewei.qiu/github/mmhuman3d/build/temp.linux-x86_64-3.8/mmhuman3d/core/renderer/mpr_renderer/cuda/rasterizer_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=rasterizer -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_80,code=compute_80 -gencode=arch=compute_80,code=sm_80 -std=c++14
FAILED: /home/zhewei.qiu/github/mmhuman3d/build/temp.linux-x86_64-3.8/mmhuman3d/core/renderer/mpr_renderer/cuda/rasterizer_kernel.o
/home/zhewei.qiu/anaconda3/pkgs/cudatoolkit-11.1.1-ha002fc5_10/lib/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/zhewei.qiu/github/mmhuman3d/build/temp.linux-x86_64-3.8/mmhuman3d/core/renderer/mpr_renderer/cuda/rasterizer_kernel.o.d -I/home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include -I/home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/TH -I/home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/THC -I/home/zhewei.qiu/anaconda3/pkgs/cudatoolkit-11.1.1-ha002fc5_10/lib/include -I/home/zhewei.qiu/anaconda3/envs/open-mmlab/include/python3.8 -c -c /home/zhewei.qiu/github/mmhuman3d/mmhuman3d/core/renderer/mpr_renderer/cuda/rasterizer_kernel.cu -o /home/zhewei.qiu/github/mmhuman3d/build/temp.linux-x86_64-3.8/mmhuman3d/core/renderer/mpr_renderer/cuda/rasterizer_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=rasterizer -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_80,code=compute_80 -gencode=arch=compute_80,code=sm_80 -std=c++14
/bin/sh: 1: /home/zhewei.qiu/anaconda3/pkgs/cudatoolkit-11.1.1-ha002fc5_10/lib/bin/nvcc: not found
[2/2] c++ -MMD -MF /home/zhewei.qiu/github/mmhuman3d/build/temp.linux-x86_64-3.8/mmhuman3d/core/renderer/mpr_renderer/cuda/rasterizer.o.d -pthread -B /home/zhewei.qiu/anaconda3/envs/open-mmlab/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include -I/home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/TH -I/home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/THC -I/home/zhewei.qiu/anaconda3/pkgs/cudatoolkit-11.1.1-ha002fc5_10/lib/include -I/home/zhewei.qiu/anaconda3/envs/open-mmlab/include/python3.8 -c -c /home/zhewei.qiu/github/mmhuman3d/mmhuman3d/core/renderer/mpr_renderer/cuda/rasterizer.cpp -o /home/zhewei.qiu/github/mmhuman3d/build/temp.linux-x86_64-3.8/mmhuman3d/core/renderer/mpr_renderer/cuda/rasterizer.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=rasterizer -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/ATen/Parallel.h:140,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:13,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/extension.h:4,
from /home/zhewei.qiu/github/mmhuman3d/mmhuman3d/core/renderer/mpr_renderer/cuda/rasterizer.cpp:1:
/home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/ATen/ParallelOpenMP.h:83: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]
83 | #pragma omp parallel for if ((end - begin) >= grain_size)
|
In file included from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/c10/core/DeviceType.h:8,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/c10/core/Device.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/c10/core/Allocator.h:6,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/ATen/ATen.h:7,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/extension.h:4,
from /home/zhewei.qiu/github/mmhuman3d/mmhuman3d/core/renderer/mpr_renderer/cuda/rasterizer.cpp:1:
/home/zhewei.qiu/github/mmhuman3d/mmhuman3d/core/renderer/mpr_renderer/cuda/rasterizer.cpp: In function ‘std::vectorat::Tensor estimate_normals(const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, int, int)’:
/home/zhewei.qiu/github/mmhuman3d/mmhuman3d/core/renderer/mpr_renderer/cuda/rasterizer.cpp:25: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]
25 | #define CHECK_CUDA(x) TORCH_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")
| ^
/home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/c10/macros/Macros.h:173:65: note: in definition of macro ‘C10_UNLIKELY’
173 | #define C10_UNLIKELY(expr) (__builtin_expect(static_cast
| ^~~~~~~~~~~~~~~~~~~~~
/home/zhewei.qiu/github/mmhuman3d/mmhuman3d/core/renderer/mpr_renderer/cuda/rasterizer.cpp:25:23: note: in expansion of macro ‘TORCH_CHECK’
25 | #define CHECK_CUDA(x) TORCH_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")
| ^~~~~~~~~~~
/home/zhewei.qiu/github/mmhuman3d/mmhuman3d/core/renderer/mpr_renderer/cuda/rasterizer.cpp:27:24: note: in expansion of macro ‘CHECK_CUDA’
27 | #define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)
| ^~~~~~~~~~
/home/zhewei.qiu/github/mmhuman3d/mmhuman3d/core/renderer/mpr_renderer/cuda/rasterizer.cpp:52:5: note: in expansion of macro ‘CHECK_INPUT’
52 | CHECK_INPUT(vertices_ndc);
| ^~~~~~~~~~~
In file included from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/ATen/ATen.h:9,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/extension.h:4,
from /home/zhewei.qiu/github/mmhuman3d/mmhuman3d/core/renderer/mpr_renderer/cuda/rasterizer.cpp:1:
/home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:303:30: note: declared here
303 | DeprecatedTypeProperties & type() const {
| ^~~~
In file included from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/c10/core/DeviceType.h:8,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/c10/core/Device.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/c10/core/Allocator.h:6,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/ATen/ATen.h:7,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/extension.h:4,
from /home/zhewei.qiu/github/mmhuman3d/mmhuman3d/core/renderer/mpr_renderer/cuda/rasterizer.cpp:1:
/home/zhewei.qiu/github/mmhuman3d/mmhuman3d/core/renderer/mpr_renderer/cuda/rasterizer.cpp:25: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]
25 | #define CHECK_CUDA(x) TORCH_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")
| ^
/home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/c10/macros/Macros.h:173:65: note: in definition of macro ‘C10_UNLIKELY’
173 | #define C10_UNLIKELY(expr) (__builtin_expect(static_cast
| ^~~~~~~~~~~~~~~~~~~~~
/home/zhewei.qiu/github/mmhuman3d/mmhuman3d/core/renderer/mpr_renderer/cuda/rasterizer.cpp:25:23: note: in expansion of macro ‘TORCH_CHECK’
25 | #define CHECK_CUDA(x) TORCH_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")
| ^~~~~~~~~~~
/home/zhewei.qiu/github/mmhuman3d/mmhuman3d/core/renderer/mpr_renderer/cuda/rasterizer.cpp:27:24: note: in expansion of macro ‘CHECK_CUDA’
27 | #define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)
| ^~~~~~~~~~
/home/zhewei.qiu/github/mmhuman3d/mmhuman3d/core/renderer/mpr_renderer/cuda/rasterizer.cpp:53:5: note: in expansion of macro ‘CHECK_INPUT’
53 | CHECK_INPUT(faces);
| ^~~~~~~~~~~
In file included from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/ATen/ATen.h:9,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/extension.h:4,
from /home/zhewei.qiu/github/mmhuman3d/mmhuman3d/core/renderer/mpr_renderer/cuda/rasterizer.cpp:1:
/home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:303:30: note: declared here
303 | DeprecatedTypeProperties & type() const {
| ^~~~
In file included from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/c10/core/DeviceType.h:8,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/c10/core/Device.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/c10/core/Allocator.h:6,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/ATen/ATen.h:7,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/extension.h:4,
from /home/zhewei.qiu/github/mmhuman3d/mmhuman3d/core/renderer/mpr_renderer/cuda/rasterizer.cpp:1:
/home/zhewei.qiu/github/mmhuman3d/mmhuman3d/core/renderer/mpr_renderer/cuda/rasterizer.cpp:25: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]
25 | #define CHECK_CUDA(x) TORCH_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")
| ^
/home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/c10/macros/Macros.h:173:65: note: in definition of macro ‘C10_UNLIKELY’
173 | #define C10_UNLIKELY(expr) (__builtin_expect(static_cast
| ^~~~~~~~~~~~~~~~~~~~~
/home/zhewei.qiu/github/mmhuman3d/mmhuman3d/core/renderer/mpr_renderer/cuda/rasterizer.cpp:25:23: note: in expansion of macro ‘TORCH_CHECK’
25 | #define CHECK_CUDA(x) TORCH_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")
| ^~~~~~~~~~~
/home/zhewei.qiu/github/mmhuman3d/mmhuman3d/core/renderer/mpr_renderer/cuda/rasterizer.cpp:27:24: note: in expansion of macro ‘CHECK_CUDA’
27 | #define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)
| ^~~~~~~~~~
/home/zhewei.qiu/github/mmhuman3d/mmhuman3d/core/renderer/mpr_renderer/cuda/rasterizer.cpp:54:5: note: in expansion of macro ‘CHECK_INPUT’
54 | CHECK_INPUT(vertices_filter);
| ^~~~~~~~~~~
In file included from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/ATen/ATen.h:9,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/extension.h:4,
from /home/zhewei.qiu/github/mmhuman3d/mmhuman3d/core/renderer/mpr_renderer/cuda/rasterizer.cpp:1:
/home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:303:30: note: declared here
303 | DeprecatedTypeProperties & type() const {
| ^~~~
In file included from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/c10/core/DeviceType.h:8,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/c10/core/Device.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/c10/core/Allocator.h:6,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/ATen/ATen.h:7,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/extension.h:4,
from /home/zhewei.qiu/github/mmhuman3d/mmhuman3d/core/renderer/mpr_renderer/cuda/rasterizer.cpp:1:
/home/zhewei.qiu/github/mmhuman3d/mmhuman3d/core/renderer/mpr_renderer/cuda/rasterizer.cpp: In function ‘at::Tensor project_mesh(const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, int, int)’:
/home/zhewei.qiu/github/mmhuman3d/mmhuman3d/core/renderer/mpr_renderer/cuda/rasterizer.cpp:25: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]
25 | #define CHECK_CUDA(x) TORCH_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")
| ^
/home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/c10/macros/Macros.h:173:65: note: in definition of macro ‘C10_UNLIKELY’
173 | #define C10_UNLIKELY(expr) (__builtin_expect(static_cast
| ^~~~~~~~~~~~~~~~~~~~~
/home/zhewei.qiu/github/mmhuman3d/mmhuman3d/core/renderer/mpr_renderer/cuda/rasterizer.cpp:25:23: note: in expansion of macro ‘TORCH_CHECK’
25 | #define CHECK_CUDA(x) TORCH_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")
| ^~~~~~~~~~~
/home/zhewei.qiu/github/mmhuman3d/mmhuman3d/core/renderer/mpr_renderer/cuda/rasterizer.cpp:27:24: note: in expansion of macro ‘CHECK_CUDA’
27 | #define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)
| ^~~~~~~~~~
/home/zhewei.qiu/github/mmhuman3d/mmhuman3d/core/renderer/mpr_renderer/cuda/rasterizer.cpp:70:5: note: in expansion of macro ‘CHECK_INPUT’
70 | CHECK_INPUT(vertices_ndc);
| ^~~~~~~~~~~
In file included from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/ATen/ATen.h:9,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/extension.h:4,
from /home/zhewei.qiu/github/mmhuman3d/mmhuman3d/core/renderer/mpr_renderer/cuda/rasterizer.cpp:1:
/home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:303:30: note: declared here
303 | DeprecatedTypeProperties & type() const {
| ^~~~
In file included from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/c10/core/DeviceType.h:8,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/c10/core/Device.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/c10/core/Allocator.h:6,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/ATen/ATen.h:7,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/extension.h:4,
from /home/zhewei.qiu/github/mmhuman3d/mmhuman3d/core/renderer/mpr_renderer/cuda/rasterizer.cpp:1:
/home/zhewei.qiu/github/mmhuman3d/mmhuman3d/core/renderer/mpr_renderer/cuda/rasterizer.cpp:25: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]
25 | #define CHECK_CUDA(x) TORCH_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")
| ^
/home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/c10/macros/Macros.h:173:65: note: in definition of macro ‘C10_UNLIKELY’
173 | #define C10_UNLIKELY(expr) (__builtin_expect(static_cast
| ^~~~~~~~~~~~~~~~~~~~~
/home/zhewei.qiu/github/mmhuman3d/mmhuman3d/core/renderer/mpr_renderer/cuda/rasterizer.cpp:25:23: note: in expansion of macro ‘TORCH_CHECK’
25 | #define CHECK_CUDA(x) TORCH_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")
| ^~~~~~~~~~~
/home/zhewei.qiu/github/mmhuman3d/mmhuman3d/core/renderer/mpr_renderer/cuda/rasterizer.cpp:27:24: note: in expansion of macro ‘CHECK_CUDA’
27 | #define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)
| ^~~~~~~~~~
/home/zhewei.qiu/github/mmhuman3d/mmhuman3d/core/renderer/mpr_renderer/cuda/rasterizer.cpp:71:5: note: in expansion of macro ‘CHECK_INPUT’
71 | CHECK_INPUT(faces);
| ^~~~~~~~~~~
In file included from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/ATen/ATen.h:9,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/extension.h:4,
from /home/zhewei.qiu/github/mmhuman3d/mmhuman3d/core/renderer/mpr_renderer/cuda/rasterizer.cpp:1:
/home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:303:30: note: declared here
303 | DeprecatedTypeProperties & type() const {
| ^~~~
In file included from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/c10/core/DeviceType.h:8,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/c10/core/Device.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/c10/core/Allocator.h:6,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/ATen/ATen.h:7,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/extension.h:4,
from /home/zhewei.qiu/github/mmhuman3d/mmhuman3d/core/renderer/mpr_renderer/cuda/rasterizer.cpp:1:
/home/zhewei.qiu/github/mmhuman3d/mmhuman3d/core/renderer/mpr_renderer/cuda/rasterizer.cpp:25: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]
25 | #define CHECK_CUDA(x) TORCH_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")
| ^
/home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/c10/macros/Macros.h:173:65: note: in definition of macro ‘C10_UNLIKELY’
173 | #define C10_UNLIKELY(expr) (__builtin_expect(static_cast
| ^~~~~~~~~~~~~~~~~~~~~
/home/zhewei.qiu/github/mmhuman3d/mmhuman3d/core/renderer/mpr_renderer/cuda/rasterizer.cpp:25:23: note: in expansion of macro ‘TORCH_CHECK’
25 | #define CHECK_CUDA(x) TORCH_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")
| ^~~~~~~~~~~
/home/zhewei.qiu/github/mmhuman3d/mmhuman3d/core/renderer/mpr_renderer/cuda/rasterizer.cpp:27:24: note: in expansion of macro ‘CHECK_CUDA’
27 | #define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)
| ^~~~~~~~~~
/home/zhewei.qiu/github/mmhuman3d/mmhuman3d/core/renderer/mpr_renderer/cuda/rasterizer.cpp:72:5: note: in expansion of macro ‘CHECK_INPUT’
72 | CHECK_INPUT(vertice_values);
| ^~~~~~~~~~~
In file included from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/ATen/ATen.h:9,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/extension.h:4,
from /home/zhewei.qiu/github/mmhuman3d/mmhuman3d/core/renderer/mpr_renderer/cuda/rasterizer.cpp:1:
/home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:303:30: note: declared here
303 | DeprecatedTypeProperties & type() const {
| ^~~~
In file included from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/c10/core/DeviceType.h:8,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/c10/core/Device.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/c10/core/Allocator.h:6,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/ATen/ATen.h:7,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/extension.h:4,
from /home/zhewei.qiu/github/mmhuman3d/mmhuman3d/core/renderer/mpr_renderer/cuda/rasterizer.cpp:1:
/home/zhewei.qiu/github/mmhuman3d/mmhuman3d/core/renderer/mpr_renderer/cuda/rasterizer.cpp:25: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]
25 | #define CHECK_CUDA(x) TORCH_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")
| ^
/home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/c10/macros/Macros.h:173:65: note: in definition of macro ‘C10_UNLIKELY’
173 | #define C10_UNLIKELY(expr) (__builtin_expect(static_cast
| ^~~~~~~~~~~~~~~~~~~~~
/home/zhewei.qiu/github/mmhuman3d/mmhuman3d/core/renderer/mpr_renderer/cuda/rasterizer.cpp:25:23: note: in expansion of macro ‘TORCH_CHECK’
25 | #define CHECK_CUDA(x) TORCH_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")
| ^~~~~~~~~~~
/home/zhewei.qiu/github/mmhuman3d/mmhuman3d/core/renderer/mpr_renderer/cuda/rasterizer.cpp:27:24: note: in expansion of macro ‘CHECK_CUDA’
27 | #define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)
| ^~~~~~~~~~
/home/zhewei.qiu/github/mmhuman3d/mmhuman3d/core/renderer/mpr_renderer/cuda/rasterizer.cpp:73:5: note: in expansion of macro ‘CHECK_INPUT’
73 | CHECK_INPUT(vertices_filter);
| ^~~~~~~~~~~
In file included from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/ATen/ATen.h:9,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/torch/extension.h:4,
from /home/zhewei.qiu/github/mmhuman3d/mmhuman3d/core/renderer/mpr_renderer/cuda/rasterizer.cpp:1:
/home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:303:30: note: declared here
303 | DeprecatedTypeProperties & type() const {
| ^~~~
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "/home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1667, in _run_ninja_build
subprocess.run(
File "/home/zhewei.qiu/anaconda3/envs/open-mmlab/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 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/home/zhewei.qiu/github/mmhuman3d/setup.py", line 109, in <module>
setup(
File "/home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/setuptools/__init__.py", line 87, in setup
return distutils.core.setup(**attrs)
File "/home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 148, in setup
return run_commands(dist)
File "/home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 163, in run_commands
dist.run_commands()
File "/home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 967, in run_commands
self.run_command(cmd)
File "/home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/setuptools/dist.py", line 1214, in run_command
super().run_command(command)
File "/home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
cmd_obj.run()
File "/home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/setuptools/command/develop.py", line 34, in run
self.install_for_development()
File "/home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/setuptools/command/develop.py", line 114, in install_for_development
self.run_command('build_ext')
File "/home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/setuptools/dist.py", line 1214, in run_command
super().run_command(command)
File "/home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
cmd_obj.run()
File "/home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 79, in run
_build_ext.run(self)
File "/home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run
_build_ext.build_ext.run(self)
File "/home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 339, in run
self.build_extensions()
File "/home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 708, in build_extensions
build_ext.build_extensions(self)
File "/home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/Cython/Distutils/old_build_ext.py", line 195, in build_extensions
_build_ext.build_ext.build_extensions(self)
File "/home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 448, in build_extensions
self._build_extensions_serial()
File "/home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 473, in _build_extensions_serial
self.build_extension(ext)
File "/home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 202, in build_extension
_build_ext.build_extension(self, ext)
File "/home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 528, in build_extension
objects = self.compiler.compile(sources,
File "/home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 529, in unix_wrap_ninja_compile
_write_ninja_file_and_compile_objects(
File "/home/zhewei.qiu/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1354, in _write_ninja_file_and_compile_objects
_run_ninja_build(
File "/home/zhewei.qiu/anaconda3/envs/open-mmlab/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: subprocess-exited-with-error
× python setup.py develop did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
full command: /home/zhewei.qiu/anaconda3/envs/open-mmlab/bin/python -c '
exec(compile('"'"''"'"''"'"'
# This is <pip-setuptools-caller> -- a caller that pip uses to run setup.py
#
# - It imports setuptools before invoking setup.py, to enable projects that directly
# import from `distutils.core` to work with newer packaging standards.
# - It provides a clear error message when setuptools is not installed.
# - It sets `sys.argv[0]` to the underlying `setup.py`, when invoking `setup.py` so
# setuptools doesn'"'"'t think the script is `-c`. This avoids the following warning:
# manifest_maker: standard file '"'"'-c'"'"' not found".
# - It generates a shim setup.py, for handling setup.cfg-only projects.
import os, sys, tokenize
try:
import setuptools
except ImportError as error:
print(
"ERROR: Can not execute `setup.py` since setuptools is not available in "
"the build environment.",
file=sys.stderr,
)
sys.exit(1)
__file__ = %r
sys.argv[0] = __file__
if os.path.exists(__file__):
filename = __file__
with tokenize.open(__file__) as f:
setup_py_code = f.read()
else:
filename = "<auto-generated setuptools caller>"
setup_py_code = "from setuptools import setup; setup()"
exec(compile(setup_py_code, filename, "exec"))
'"'"''"'"''"'"' % ('"'"'/home/zhewei.qiu/github/mmhuman3d/setup.py'"'"',), "<pip-setuptools-caller>", "exec"))' develop --no-deps
cwd: /home/zhewei.qiu/github/mmhuman3d/
error: subprocess-exited-with-error
× python setup.py develop did not run successfully. │ exit code: 1 ╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip. "
Hi @zhewei-mt , I found this error /bin/sh: 1: /home/zhewei.qiu/anaconda3/pkgs/cudatoolkit-11.1.1-ha002fc5_10/lib/bin/nvcc: not found
from the log, so please check if cuda is installed on your device.
我也是遇到这个问题了,一样的报错。 (open-mmlab) root@gkd:/data/pytorch3d# python Python 3.8.16 (default, Jun 12 2023, 18:09:05) [GCC 11.2.0] :: Anaconda, Inc. on linux Type "help", "copyright", "credits" or "license" for more information.
import torch print(torch.version) 1.8.0 print(torch.cuda.is_available()) True
我的cuda是没有问题的。