Closed AceSilent closed 2 years ago
Hi, I added requirements.txt. Please try to use pip install -r requirements.txt
to setup an environment consistent with mine before installing PointNet++.
thank you for your reply! I built PointNet as you configured it, and unfortunately it didn't work out. However, I cloned a code from GIt and used CUDA11.2 and pytorch1.8. After modifying some code, I could run it successfully. (but the previously used code still doesn't work) Very strange phenomenon,I don't use a virtual Python environment. thank you for your reply!:)
@AceSilent Could you share which changes to the code were required? That would help me out as well!
thank you for your reply! I built PointNet as you configured it, and unfortunately it didn't work out. However, I cloned a code from GIt and used CUDA11.2 and pytorch1.8. After modifying some code, I could run it successfully. (but the previously used code still doesn't work) Very strange phenomenon,I don't use a virtual Python environment. thank you for your reply!:)
Hey, Could you share the code you changed to make it work?
Thanks!
@AceSilent Could you share which changes to the code were required? That would help me out as well!
Change "AT_CHECK" to "TORCH_CHECK" in all CPP.h files.
Change "type().is_cuda()" to "is_cuda()" in all CPP.h files.
Change ".data<float/int>()" to ".data_ptr<float/int>()" in all CPP.h files.
thank you for your reply! I built PointNet as you configured it, and unfortunately it didn't work out. However, I cloned a code from GIt and used CUDA11.2 and pytorch1.8. After modifying some code, I could run it successfully. (but the previously used code still doesn't work) Very strange phenomenon,I don't use a virtual Python environment. thank you for your reply!:)
Hey, Could you share the code you changed to make it work?
Thanks!
Change "AT_CHECK" to "TORCH_CHECK" in all CPP.h files.
Change "type().is_cuda()" to "is_cuda()" in all CPP.h files.
Change ".data<float/int>()" to ".data_ptr<float/int>()" in all CPP.h files.
I answered this question on GitHub. I hope it helped
------------------ 原始邮件 ------------------ 发件人: "Tal @.>; 发送时间: 2022年9月7日(星期三) 凌晨0:26 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [clinplayer/Point2Skeleton] A new question about installing the Pointnet++ (Issue #14)
thank you for your reply! I built PointNet as you configured it, and unfortunately it didn't work out. However, I cloned a code from GIt and used CUDA11.2 and pytorch1.8. After modifying some code, I could run it successfully. (but the previously used code still doesn't work) Very strange phenomenon,I don't use a virtual Python environment. thank you for your reply!:)
Hey, Could you share the code you changed to make it work?
Thanks!
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>
When I run the command:sudo python setup.py build_ext --inplace
feedback is as follows:
running build_ext building '_ext-src' extension x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/home/zhang/.local/lib/python3.7/site-packages/torch/include -I/home/zhang/.local/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/zhang/.local/lib/python3.7/site-packages/torch/include/TH -I/home/zhang/.local/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/usr/include/python3.7m -c _ext-src/src/ball_query.cpp -o build/temp.linux-x86_64-3.7/_ext-src/src/ball_query.o -O2 -I_ext-src/include -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext-src -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11 In file included from _ext-src/src/ball_query.cpp:2:0: _ext-src/include/utils.h:21:56: warning: backslash-newline at end of file
define CHECK_IS_FLOAT(x) \
/usr/local/cuda/bin/nvcc -I/home/zhang/.local/lib/python3.7/site-packages/torch/include -I/home/zhang/.local/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/zhang/.local/lib/python3.7/site-packages/torch/include/TH -I/home/zhang/.local/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/usr/include/python3.7m -c _ext-src/src/ball_query_gpu.cu -o build/temp.linux-x86_64-3.7/_ext-src/src/ball_query_gpu.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -D__CUDA_NO_HALF2_OPERATORS__ --compiler-options '-fPIC' -O2 -I_ext-src/include -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext-src -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11 x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/home/zhang/.local/lib/python3.7/site-packages/torch/include -I/home/zhang/.local/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/zhang/.local/lib/python3.7/site-packages/torch/include/TH -I/home/zhang/.local/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/usr/include/python3.7m -c _ext-src/src/bindings.cpp -o build/temp.linux-x86_64-3.7/_ext-src/src/bindings.o -O2 -I_ext-src/include -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext-src -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11 In file included from /home/zhang/.local/lib/python3.7/site-packages/torch/include/pybind11/pytypes.h:12:0, from /home/zhang/.local/lib/python3.7/site-packages/torch/include/pybind11/cast.h:13, from /home/zhang/.local/lib/python3.7/site-packages/torch/include/pybind11/attr.h:13, from /home/zhang/.local/lib/python3.7/site-packages/torch/include/pybind11/pybind11.h:44, from /home/zhang/.local/lib/python3.7/site-packages/torch/include/torch/csrc/utils/pybind.h:6, from /home/zhang/.local/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/python.h:12, from /home/zhang/.local/lib/python3.7/site-packages/torch/include/torch/extension.h:6, from _ext-src/include/ball_query.h:2, from _ext-src/src/bindings.cpp:1: