gaocong13 / Projective-Spatial-Transformers

Generalizing Spatial Transformers to Projective Geometry with Applications to 2D/3D Registration
110 stars 21 forks source link

I met a problem while running python setup.py install, what should I do. #27

Open AlickWu opened 1 year ago

AlickWu commented 1 year ago

My torch version is: 1.10.0+cu102; and Cuda version is 10.2 The details are as follows:

  /home/bosscome/anaconda3/envs/Projective-Spatial-Transformers/bin/python /home/bosscome/DataBase/Bsk_R&D/Bsk_BRD/CodeBase/CodeGit/Projective-Spatial-Transformers-master/main.py 
  1.10.0+cu102
  Process finished with exit code 0

    (Projective-Spatial-Transformers) bosscome@bosscome:~/DataBase/Bsk_R&D/Bsk_BRD/CodeBase/CodeGit/Projective-Spatial-Transformers-master/ProSTGrid$ nvcc -V
    nvcc: NVIDIA (R) Cuda compiler driver
    Copyright (c) 2005-2019 NVIDIA Corporation
    Built on Wed_Oct_23_19:24:38_PDT_2019
    Cuda compilation tools, release 10.2, V10.2.89

However, The following problems were encountered while running python setup.py install:

(Projective-Spatial-Transformers) bosscome@bosscome:~/DataBase/Bsk_R&D/Bsk_BRD/CodeBase/CodeGit/Projective-Spatial-Transformers-master/ProSTGrid$ python setup.py install running install running bdist_egg running egg_info writing ProSTGrid.egg-info/PKG-INFO writing dependency_links to ProSTGrid.egg-info/dependency_links.txt writing top-level names to ProSTGrid.egg-info/top_level.txt reading manifest file 'ProSTGrid.egg-info/SOURCES.txt' writing manifest file 'ProSTGrid.egg-info/SOURCES.txt' installing library code to build/bdist.linux-x86_64/egg running install_lib running build_ext building 'ProSTGrid' extension /home/bosscome/anaconda3/envs/Projective-Spatial-Transformers/lib/python3.6/site-packages/torch/cuda/init.py:143: UserWarning: NVIDIA GeForce RTX 3090 with CUDA capability sm_86 is not compatible with the current PyTorch installation. The current PyTorch install supports CUDA capabilities sm_37 sm_50 sm_60 sm_70. If you want to use the NVIDIA GeForce RTX 3090 GPU with PyTorch, please check the instructions at https://pytorch.org/get-started/locally/

warnings.warn(incompatible_device_warn.format(device_name, capability, " ".join(arch_list), device_name)) Emitting ninja build file /home/bosscome/DataBase/Bsk_R&D/Bsk_BRD/CodeBase/CodeGit/Projective-Spatial-Transformers-master/ProSTGrid/build/temp.linux-x86_64-3.6/build.ninja... Compiling objects... Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N) [1/2] c++ -MMD -MF '/home/bosscome/DataBase/Bsk_R&D/Bsk_BRD/CodeBase/CodeGit/Projective-Spatial-Transformers-master/ProSTGrid/build/temp.linux-x86_64-3.6/ProSTGrid.o'.d -pthread -B /home/bosscome/anaconda3/envs/Projective-Spatial-Transformers/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/bosscome/anaconda3/envs/Projective-Spatial-Transformers/lib/python3.6/site-packages/torch/include -I/home/bosscome/anaconda3/envs/Projective-Spatial-Transformers/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/bosscome/anaconda3/envs/Projective-Spatial-Transformers/lib/python3.6/site-packages/torch/include/TH -I/home/bosscome/anaconda3/envs/Projective-Spatial-Transformers/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda-10.2/include -I/home/bosscome/anaconda3/envs/Projective-Spatial-Transformers/include/python3.6m -c -c '/home/bosscome/DataBase/Bsk_R&D/Bsk_BRD/CodeBase/CodeGit/Projective-Spatial-Transformers-master/ProSTGrid/ProSTGrid.cpp' -o '/home/bosscome/DataBase/Bsk_R&D/Bsk_BRD/CodeBase/CodeGit/Projective-Spatial-Transformers-master/ProSTGrid/build/temp.linux-x86_64-3.6/ProSTGrid.o' -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=ProSTGrid -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++ /home/bosscome/DataBase/Bsk_R&D/Bsk_BRD/CodeBase/CodeGit/Projective-Spatial-Transformers-master/ProSTGrid/ProSTGrid.cpp: In function ‘at::Tensor ProST_grid_generator_forward(const at::Tensor&, c10::IntArrayRef, float, float, float, float, float, float, bool)’: /home/bosscome/DataBase/Bsk_R&D/Bsk_BRD/CodeBase/CodeGit/Projective-Spatial-Transformers-master/ProSTGrid/ProSTGrid.cpp:94:17: 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] if(theta.type().is_cuda()){ ^ In file included from /home/bosscome/anaconda3/envs/Projective-Spatial-Transformers/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3, from /home/bosscome/anaconda3/envs/Projective-Spatial-Transformers/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/bosscome/anaconda3/envs/Projective-Spatial-Transformers/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9, from /home/bosscome/DataBase/Bsk_R&D/Bsk_BRD/CodeBase/CodeGit/Projective-Spatial-Transformers-master/ProSTGrid/ProSTGrid.cpp:5: /home/bosscome/anaconda3/envs/Projective-Spatial-Transformers/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:194:30: note: declared here DeprecatedTypeProperties & type() const { ^~~~ [2/2] /usr/local/cuda-10.2/bin/nvcc -I/home/bosscome/anaconda3/envs/Projective-Spatial-Transformers/lib/python3.6/site-packages/torch/include -I/home/bosscome/anaconda3/envs/Projective-Spatial-Transformers/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/bosscome/anaconda3/envs/Projective-Spatial-Transformers/lib/python3.6/site-packages/torch/include/TH -I/home/bosscome/anaconda3/envs/Projective-Spatial-Transformers/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda-10.2/include -I/home/bosscome/anaconda3/envs/Projective-Spatial-Transformers/include/python3.6m -c -c '/home/bosscome/DataBase/Bsk_R&D/Bsk_BRD/CodeBase/CodeGit/Projective-Spatial-Transformers-master/ProSTGrid/ProSTGrid_kernel.cu' -o '/home/bosscome/DataBase/Bsk_R&D/Bsk_BRD/CodeBase/CodeGit/Projective-Spatial-Transformers-master/ProSTGrid/build/temp.linux-x86_64-3.6/ProSTGrid_kernel.o' -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_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=ProSTGrid -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_70,code=compute_70 -gencode=arch=compute_70,code=sm_70 -std=c++14 g++ -pthread -shared -B /home/bosscome/anaconda3/envs/Projective-Spatial-Transformers/compiler_compat -L/home/bosscome/anaconda3/envs/Projective-Spatial-Transformers/lib -Wl,-rpath=/home/bosscome/anaconda3/envs/Projective-Spatial-Transformers/lib -Wl,--no-as-needed -Wl,--sysroot=/ /home/bosscome/DataBase/Bsk_R&D/Bsk_BRD/CodeBase/CodeGit/Projective-Spatial-Transformers-master/ProSTGrid/build/temp.linux-x86_64-3.6/ProSTGrid.o /home/bosscome/DataBase/Bsk_R&D/Bsk_BRD/CodeBase/CodeGit/Projective-Spatial-Transformers-master/ProSTGrid/build/temp.linux-x86_64-3.6/ProSTGrid_kernel.o -L/home/bosscome/anaconda3/envs/Projective-Spatial-Transformers/lib/python3.6/site-packages/torch/lib -L/usr/local/cuda-10.2/lib64 -lc10 -ltorch -ltorch_cpu -ltorch_python -lcudart -lc10_cuda -ltorch_cuda -o build/lib.linux-x86_64-3.6/ProSTGrid.cpython-36m-x86_64-linux-gnu.so creating build/bdist.linux-x86_64/egg copying build/lib.linux-x86_64-3.6/ProSTGrid.cpython-36m-x86_64-linux-gnu.so -> build/bdist.linux-x86_64/egg creating stub loader for ProSTGrid.cpython-36m-x86_64-linux-gnu.so byte-compiling build/bdist.linux-x86_64/egg/ProSTGrid.py to ProSTGrid.cpython-36.pyc creating build/bdist.linux-x86_64/egg/EGG-INFO copying ProSTGrid.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO copying ProSTGrid.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying ProSTGrid.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying ProSTGrid.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO writing build/bdist.linux-x86_64/egg/EGG-INFO/native_libs.txt zip_safe flag not set; analyzing archive contents... pycache.ProSTGrid.cpython-36: module references file creating 'dist/ProSTGrid-0.0.0-py3.6-linux-x86_64.egg' and adding 'build/bdist.linux-x86_64/egg' to it removing 'build/bdist.linux-x86_64/egg' (and everything under it) Processing ProSTGrid-0.0.0-py3.6-linux-x86_64.egg removing '/home/bosscome/anaconda3/envs/Projective-Spatial-Transformers/lib/python3.6/site-packages/ProSTGrid-0.0.0-py3.6-linux-x86_64.egg' (and everything under it) creating /home/bosscome/anaconda3/envs/Projective-Spatial-Transformers/lib/python3.6/site-packages/ProSTGrid-0.0.0-py3.6-linux-x86_64.egg Extracting ProSTGrid-0.0.0-py3.6-linux-x86_64.egg to /home/bosscome/anaconda3/envs/Projective-Spatial-Transformers/lib/python3.6/site-packages ProSTGrid 0.0.0 is already the active version in easy-install.pth

Installed /home/bosscome/anaconda3/envs/Projective-Spatial-Transformers/lib/python3.6/site-packages/ProSTGrid-0.0.0-py3.6-linux-x86_64.egg Processing dependencies for ProSTGrid==0.0.0 Finished processing dependencies for ProSTGrid==0.0.0

gaocong13 commented 1 year ago

Hi, can you specify your issue? I do not see a particular error message.