GithubHelp home page GithubHelp logo

craigleili / 3dlocalmultiviewdesc Goto Github PK

View Code? Open in Web Editor NEW
59.0 59.0 8.0 2.87 MB

End-to-End Learning Local Multi-view Descriptors for 3D Point Clouds (CVPR2020)

License: MIT License

Python 83.84% Dockerfile 1.43% Shell 0.23% C++ 2.69% Cuda 11.81%

3dlocalmultiviewdesc's People

Contributors

craigleili avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

3dlocalmultiviewdesc's Issues

A question about how to render a depth image of a complete point cloud.

Thank you so much for sharing the well-organized code. I have a question about how to render a depth image of a complete point cloud. I notice that your code just renders a local depth image of a point in the point cloud. How do I change the code if I want to render the complete point cloud?
SoftRasterizeFunc.apply(mvp_mat, vertices, radii * self.radius_ratio, colors,
self.sigma, self.gamma, self.dist_ratio, self.znear,
self.zfar, self.tan_half_fov, self.image_size,
compute_weight, False, True)

My understanding is that the first three parameters are more important:

  1. 8 views.
  2. The entire point cloud.
  3. I can't understand this parameter, how should I modify it?

A question about "cloud_bin_*.keypts.npy"

Hi , thank you for your last reply. Now,I have a new question about "cloud_bin_.keypts.npy".
I run this code :
python main_mvdesc.py test configs/ours_3dmatch.yaml
The problem is :
FileNotFoundError: [Errno 2] No such file or directory: '../../3DMatch_test/7-scenes-redkitchen/seq-01/cloud_bin_0.keypts.npy'
How do I generate the file cloud_bin_
.keypts.npy? I seemed to can not find the file to generate it.
Oh, one more question, what is the 'desc_types' in eval_geomreg_3dmatch.py in evaluation folder? Is it a path?
Looking forward your reply.
Best wish.

Error on compile with Ninja

Hi Lei Li,

Really thanks for sharing your wonderful works.

I have an issue on compiling the soft_renderer.
When I tried to initialize MultiViewRenderer class, I got following errors.

ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/torch/utils/cpp_extension.py", line 1515, in _run_ninja_build
env=env)
File "/usr/lib/python3.6/subprocess.py", line 438, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "transform.py", line 18, in
from soft_renderer.cuda.jit import soft_rasterize_cuda as src
File "/host_temp/codes/cqcpu/point_backends/learnable_viewpoint/soft_renderer/cuda/jit.py", line 9, in
verbose=True)
File "/usr/local/lib/python3.6/dist-packages/torch/utils/cpp_extension.py", line 974, in load
keep_intermediates=keep_intermediates)
File "/usr/local/lib/python3.6/dist-packages/torch/utils/cpp_extension.py", line 1179, in _jit_compile
with_cuda=with_cuda)
File "/usr/local/lib/python3.6/dist-packages/torch/utils/cpp_extension.py", line 1279, in _write_ninja_file_and_build_library
error_prefix="Error building extension '{}'".format(name))
File "/usr/local/lib/python3.6/dist-packages/torch/utils/cpp_extension.py", line 1529, in _run_ninja_build
raise RuntimeError(message)
RuntimeError: Error building extension 'soft_rasterize_cuda'

I tried within both my local machine and a docker container that you provided but in both environment same errors occured.

Do you have any idea on this issue ?

Thanks.

Can you give the data from 0.00-0.20 results

Hi,I would like to make some experimental comparisons according to your work. Could you give me the Feat Macthing Ratio from 0.00 to 0.20? The results I run by myself may not meet the requirements of the results you run, so I hope you can give me, thank you.

Looking forward your reply.

A question about “soft_rasterize_cuda”

Hi,When I run this code, I have the following problem:

/home/ls/anaconda3/envs/qwt_py38/bin/python /home/qwt/code/3DLocalMultiViewDesc-master/scripts/main_mvdesc.py
Using /home/qwt/.cache/torch_extensions as PyTorch extensions root...
Detected CUDA files, patching ldflags
Emitting ninja build file /home/qwt/.cache/torch_extensions/soft_rasterize_cuda/build.ninja...
Building extension module soft_rasterize_cuda...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
[1/3] /usr/local/cuda/bin/nvcc --generate-dependencies-with-compile --dependency-output soft_rasterize_cuda_kernel.cuda.o.d -DTORCH_EXTENSION_NAME=soft_rasterize_cuda -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="gcc" -DPYBIND11_STDLIB="libstdcpp" -DPYBIND11_BUILD_ABI="cxxabi1011" -isystem /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include -isystem /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -isystem /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/TH -isystem /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/THC -isystem /usr/local/cuda/include -isystem /home/ls/anaconda3/envs/qwt_py38/include/python3.6m -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS -D__CUDA_NO_HALF_CONVERSIONS_ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 --compiler-options '-fPIC' -std=c++14 -c /home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda_kernel.cu -o soft_rasterize_cuda_kernel.cuda.o
FAILED: soft_rasterize_cuda_kernel.cuda.o
/usr/local/cuda/bin/nvcc --generate-dependencies-with-compile --dependency-output soft_rasterize_cuda_kernel.cuda.o.d -DTORCH_EXTENSION_NAME=soft_rasterize_cuda -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="gcc" -DPYBIND11_STDLIB="libstdcpp" -DPYBIND11_BUILD_ABI="cxxabi1011" -isystem /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include -isystem /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -isystem /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/TH -isystem /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/THC -isystem /usr/local/cuda/include -isystem /home/ls/anaconda3/envs/qwt_py38/include/python3.6m -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS -D__CUDA_NO_HALF_CONVERSIONS_ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 --compiler-options '-fPIC' -std=c++14 -c /home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda_kernel.cu -o soft_rasterize_cuda_kernel.cuda.o
nvcc fatal : Unsupported gpu architecture 'compute_86'
[2/3] c++ -MMD -MF soft_rasterize_cuda.o.d -DTORCH_EXTENSION_NAME=soft_rasterize_cuda -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="_gcc" -DPYBIND11_STDLIB="_libstdcpp" -DPYBIND11_BUILD_ABI="_cxxabi1011" -isystem /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include -isystem /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -isystem /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/TH -isystem /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/THC -isystem /usr/local/cuda/include -isystem /home/ls/anaconda3/envs/qwt_py38/include/python3.6m -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++14 -c /home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp -o soft_rasterize_cuda.o
FAILED: soft_rasterize_cuda.o
c++ -MMD -MF soft_rasterize_cuda.o.d -DTORCH_EXTENSION_NAME=soft_rasterize_cuda -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="_gcc" -DPYBIND11_STDLIB="_libstdcpp" -DPYBIND11_BUILD_ABI="_cxxabi1011" -isystem /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include -isystem /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -isystem /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/TH -isystem /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/THC -isystem /usr/local/cuda/include -isystem /home/ls/anaconda3/envs/qwt_py38/include/python3.6m -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++14 -c /home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp -o soft_rasterize_cuda.o
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp: In function ‘void soft_rasterize_forward(at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, float, float, float, float, float, float, int, bool, bool, bool, at::Tensor, at::Tensor, at::Tensor, at::Tensor)’:
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:51:39: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
#define CHECK_CUDA(x) AT_CHECK(x.type().is_cuda(), #x, " must be a CUDA tensor")
^
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:53:24: note: in expansion of macro ‘CHECK_CUDA’
#define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)
^~~~~~~~~~
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:79:5: note: in expansion of macro ‘CHECK_INPUT’
CHECK_INPUT(mvps);
^~~~~~~~~~~
In file included from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/extension.h:4,
from /home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:1:
/home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:303:30: note: declared here
DeprecatedTypeProperties & type() const {
^~~~
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:51:23: error: ‘AT_CHECK’ was not declared in this scope
#define CHECK_CUDA(x) AT_CHECK(x.type().is_cuda(), #x, " must be a CUDA tensor")
^
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:53:24: note: in expansion of macro ‘CHECK_CUDA’
#define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)
^~~~~~~~~~
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:79:5: note: in expansion of macro ‘CHECK_INPUT’
CHECK_INPUT(mvps);
^~~~~~~~~~~
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:51:23: note: suggested alternative: ‘DCHECK’
#define CHECK_CUDA(x) AT_CHECK(x.type().is_cuda(), #x, " must be a CUDA tensor")
^
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:53:24: note: in expansion of macro ‘CHECK_CUDA’
#define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)
^~~~~~~~~~
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:79:5: note: in expansion of macro ‘CHECK_INPUT’
CHECK_INPUT(mvps);
^~~~~~~~~~~
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:51:39: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
#define CHECK_CUDA(x) AT_CHECK(x.type().is_cuda(), #x, " must be a CUDA tensor")
^
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:53:24: note: in expansion of macro ‘CHECK_CUDA’
#define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)
^~~~~~~~~~
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:80:5: note: in expansion of macro ‘CHECK_INPUT’
CHECK_INPUT(vertices);
^~~~~~~~~~~
In file included from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/extension.h:4,
from /home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:1:
/home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:303:30: note: declared here
DeprecatedTypeProperties & type() const {
^~~~
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:51:39: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
#define CHECK_CUDA(x) AT_CHECK(x.type().is_cuda(), #x, " must be a CUDA tensor")
^
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:53:24: note: in expansion of macro ‘CHECK_CUDA’
#define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)
^~~~~~~~~~
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:81:5: note: in expansion of macro ‘CHECK_INPUT’
CHECK_INPUT(radii);
^~~~~~~~~~~
In file included from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/extension.h:4,
from /home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:1:
/home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:303:30: note: declared here
DeprecatedTypeProperties & type() const {
^~~~
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:51:39: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
#define CHECK_CUDA(x) AT_CHECK(x.type().is_cuda(), #x, " must be a CUDA tensor")
^
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:53:24: note: in expansion of macro ‘CHECK_CUDA’
#define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)
^~~~~~~~~~
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:82:5: note: in expansion of macro ‘CHECK_INPUT’
CHECK_INPUT(colors);
^~~~~~~~~~~
In file included from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/extension.h:4,
from /home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:1:
/home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:303:30: note: declared here
DeprecatedTypeProperties & type() const {
^~~~
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:51:39: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
#define CHECK_CUDA(x) AT_CHECK(x.type().is_cuda(), #x, " must be a CUDA tensor")
^
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:53:24: note: in expansion of macro ‘CHECK_CUDA’
#define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)
^~~~~~~~~~
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:83:5: note: in expansion of macro ‘CHECK_INPUT’
CHECK_INPUT(locks);
^~~~~~~~~~~
In file included from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/extension.h:4,
from /home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:1:
/home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:303:30: note: declared here
DeprecatedTypeProperties & type() const {
^~~~
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:51:39: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
#define CHECK_CUDA(x) AT_CHECK(x.type().is_cuda(), #x, " must be a CUDA tensor")
^
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:53:24: note: in expansion of macro ‘CHECK_CUDA’
#define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)
^~~~~~~~~~
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:84:5: note: in expansion of macro ‘CHECK_INPUT’
CHECK_INPUT(weights);
^~~~~~~~~~~
In file included from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/extension.h:4,
from /home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:1:
/home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:303:30: note: declared here
DeprecatedTypeProperties & type() const {
^~~~
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:51:39: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
#define CHECK_CUDA(x) AT_CHECK(x.type().is_cuda(), #x, " must be a CUDA tensor")
^
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:53:24: note: in expansion of macro ‘CHECK_CUDA’
#define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)
^~~~~~~~~~
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:85:5: note: in expansion of macro ‘CHECK_INPUT’
CHECK_INPUT(color_map);
^~~~~~~~~~~
In file included from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/extension.h:4,
from /home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:1:
/home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:303:30: note: declared here
DeprecatedTypeProperties & type() const {
^~~~
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:51:39: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
#define CHECK_CUDA(x) AT_CHECK(x.type().is_cuda(), #x, " must be a CUDA tensor")
^
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:53:24: note: in expansion of macro ‘CHECK_CUDA’
#define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)
^~~~~~~~~~
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:86:5: note: in expansion of macro ‘CHECK_INPUT’
CHECK_INPUT(depth_map);
^~~~~~~~~~~
In file included from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/extension.h:4,
from /home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:1:
/home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:303:30: note: declared here
DeprecatedTypeProperties & type() const {
^~~~
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:51:39: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
#define CHECK_CUDA(x) AT_CHECK(x.type().is_cuda(), #x, " must be a CUDA tensor")
^
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:53:24: note: in expansion of macro ‘CHECK_CUDA’
#define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)
^~~~~~~~~~
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:87:5: note: in expansion of macro ‘CHECK_INPUT’
CHECK_INPUT(pseudo_depth_map);
^~~~~~~~~~~
In file included from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/extension.h:4,
from /home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:1:
/home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:303:30: note: declared here
DeprecatedTypeProperties & type() const {
^~~~
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp: In function ‘void soft_rasterize_backward(at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, float, float, float, float, float, float, int, bool, bool, at::Tensor)’:
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:51:39: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
#define CHECK_CUDA(x) AT_CHECK(x.type().is_cuda(), #x, " must be a CUDA tensor")
^
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:53:24: note: in expansion of macro ‘CHECK_CUDA’
#define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)
^~~~~~~~~~
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:132:5: note: in expansion of macro ‘CHECK_INPUT’
CHECK_INPUT(mvps);
^~~~~~~~~~~
In file included from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/extension.h:4,
from /home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:1:
/home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:303:30: note: declared here
DeprecatedTypeProperties & type() const {
^~~~
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:51:23: error: ‘AT_CHECK’ was not declared in this scope
#define CHECK_CUDA(x) AT_CHECK(x.type().is_cuda(), #x, " must be a CUDA tensor")
^
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:53:24: note: in expansion of macro ‘CHECK_CUDA’
#define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)
^~~~~~~~~~
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:132:5: note: in expansion of macro ‘CHECK_INPUT’
CHECK_INPUT(mvps);
^~~~~~~~~~~
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:51:23: note: suggested alternative: ‘DCHECK’
#define CHECK_CUDA(x) AT_CHECK(x.type().is_cuda(), #x, " must be a CUDA tensor")
^
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:53:24: note: in expansion of macro ‘CHECK_CUDA’
#define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)
^~~~~~~~~~
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:132:5: note: in expansion of macro ‘CHECK_INPUT’
CHECK_INPUT(mvps);
^~~~~~~~~~~
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:51:39: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
#define CHECK_CUDA(x) AT_CHECK(x.type().is_cuda(), #x, " must be a CUDA tensor")
^
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:53:24: note: in expansion of macro ‘CHECK_CUDA’
#define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)
^~~~~~~~~~
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:133:5: note: in expansion of macro ‘CHECK_INPUT’
CHECK_INPUT(vertices);
^~~~~~~~~~~
In file included from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/extension.h:4,
from /home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:1:
/home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:303:30: note: declared here
DeprecatedTypeProperties & type() const {
^~~~
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:51:39: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
#define CHECK_CUDA(x) AT_CHECK(x.type().is_cuda(), #x, " must be a CUDA tensor")
^
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:53:24: note: in expansion of macro ‘CHECK_CUDA’
#define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)
^~~~~~~~~~
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:134:5: note: in expansion of macro ‘CHECK_INPUT’
CHECK_INPUT(colors);
^~~~~~~~~~~
In file included from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/extension.h:4,
from /home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:1:
/home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:303:30: note: declared here
DeprecatedTypeProperties & type() const {
^~~~
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:51:39: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
#define CHECK_CUDA(x) AT_CHECK(x.type().is_cuda(), #x, " must be a CUDA tensor")
^
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:53:24: note: in expansion of macro ‘CHECK_CUDA’
#define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)
^~~~~~~~~~
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:135:5: note: in expansion of macro ‘CHECK_INPUT’
CHECK_INPUT(weights);
^~~~~~~~~~~
In file included from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/extension.h:4,
from /home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:1:
/home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:303:30: note: declared here
DeprecatedTypeProperties & type() const {
^~~~
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:51:39: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
#define CHECK_CUDA(x) AT_CHECK(x.type().is_cuda(), #x, " must be a CUDA tensor")
^
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:53:24: note: in expansion of macro ‘CHECK_CUDA’
#define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)
^~~~~~~~~~
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:136:5: note: in expansion of macro ‘CHECK_INPUT’
CHECK_INPUT(grad_color_map);
^~~~~~~~~~~
In file included from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/extension.h:4,
from /home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:1:
/home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:303:30: note: declared here
DeprecatedTypeProperties & type() const {
^~~~
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:51:39: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
#define CHECK_CUDA(x) AT_CHECK(x.type().is_cuda(), #x, " must be a CUDA tensor")
^
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:53:24: note: in expansion of macro ‘CHECK_CUDA’
#define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)
^~~~~~~~~~
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:137:5: note: in expansion of macro ‘CHECK_INPUT’
CHECK_INPUT(grad_depth_map);
^~~~~~~~~~~
In file included from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/extension.h:4,
from /home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:1:
/home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:303:30: note: declared here
DeprecatedTypeProperties & type() const {
^~~~
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:51:39: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
#define CHECK_CUDA(x) AT_CHECK(x.type().is_cuda(), #x, " must be a CUDA tensor")
^
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:53:24: note: in expansion of macro ‘CHECK_CUDA’
#define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)
^~~~~~~~~~
/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:138:5: note: in expansion of macro ‘CHECK_INPUT’
CHECK_INPUT(grad_mvps);
^~~~~~~~~~~
In file included from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/include/torch/extension.h:4,
from /home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/soft_rasterize_cuda.cpp:1:
/home/ls/anaconda3/envs/qwt_py38/lib/python3.6/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 "/home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1673, in _run_ninja_build
env=env)
File "/home/ls/anaconda3/envs/qwt_py38/lib/python3.6/subprocess.py", line 438, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.

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

Traceback (most recent call last):
File "/home/qwt/code/3DLocalMultiViewDesc-master/scripts/main_mvdesc.py", line 21, in
from models.mvdesc import RenderModel, MV_MODELS
File "/home/qwt/code/3DLocalMultiViewDesc-master/models/mvdesc.py", line 18, in
from soft_renderer.transform import MultiViewRenderer
File "/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/transform.py", line 17, in
from soft_renderer.cuda.jit import soft_rasterize_cuda as src
File "/home/qwt/code/3DLocalMultiViewDesc-master/soft_renderer/cuda/jit.py", line 8, in
verbose=True)
File "/home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1091, in load
keep_intermediates=keep_intermediates)
File "/home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1302, in _jit_compile
is_standalone=is_standalone)
File "/home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1407, in _write_ninja_file_and_build_library
error_prefix=f"Error building extension '{name}'")
File "/home/ls/anaconda3/envs/qwt_py38/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1683, in _run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error building extension 'soft_rasterize_cuda'

What should I do about it?Thank you.

error in rinning code

the error is " UserWarning: Detected call of lr_scheduler.step() before optimizer.step(). In PyTorch 1.1.0 and later, you should call them in the opposite order: optimizer.step() before lr_scheduler.step(). Failure to do this will result in PyTorch skipping the first value of the learning rate schedule. "
my torch version is the same as the "requirements" . when i reduce torch version, another error is appeared, "no module named torch.utils.tensorbard" ,

question about the "soft-view pooling"?

Hello author, I don't understand the soft-view pooling in the paper. Can you provide some reference materials?
For example, the encoder-decoder is used in the paper to get the weight. I have no relevant knowledge, so I don't know how to get it.

ImportError: No module named 'soft_rasterize_cuda'

Hi, I'm having trouble running python main_mvdesc.py train configs/ours_3dmatch.yaml
Using /home/ghj108/.cache/torch_extensions as PyTorch extensions root...
Detected CUDA files, patching ldflags
Emitting ninja build file /home/ghj108/.cache/torch_extensions/soft_rasterize_cuda/build.ninja...
Building extension module soft_rasterize_cuda...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
1.10.1
Loading extension module soft_rasterize_cuda...
Traceback (most recent call last):
File "jit.py", line 8, in
verbose=True)
File "/mnt/data0/miniconda3/envs/tf_torch/3DLocal/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1091, in load
keep_intermediates=keep_intermediates)
File "/mnt/data0/miniconda3/envs/tf_torch/3DLocal/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1317, in _jit_compile
return _import_module_from_library(name, build_directory, is_python_module)
File "/mnt/data0/miniconda3/envs/tf_torch/3DLocal/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1699, in _import_module_from_library
file, path, description = imp.find_module(module_name, [path])
File "/mnt/data0/miniconda3/envs/tf_torch/3DLocal/lib/python3.6/imp.py", line 297, in find_module
raise ImportError(_ERR_MSG.format(name), name=name)
ImportError: No module named 'soft_rasterize_cuda'
Can you give me an answer, thank you.
My compilation environment:
python 3.6.12
torch 1.8.1+cu111
torchvision 0.9.1+cu111

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.