Dataloader Error:_pickle.UnpicklingError: invalid load key, '\x27'.
opened this issue · comments
Thanks a lot for your code!
But when i try to run train-msr.py with the dataset MSR-Action3D, i got this error. it seems that there is something wrong loading data,but i have no idea why.
PS:i use the data in the MSR-Action3D/Depth.rar
the output is like below:
Traceback (most recent call last):
File "/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/numpy/lib/npyio.py", line 447, in load
return pickle.load(fid, **pickle_kwargs)
_pickle.UnpicklingError: invalid load key, '\x27'.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "train-msr.py", line 257, in
main(args)
File "train-msr.py", line 127, in main
dataset = MSRAction3D(
File "/home/yuhao/P4Transformer-main/P4Transformer-main/datasets/msr.py", line 16, in init
video = np.load(os.path.join(root, video_name), allow_pickle=True)['point_clouds']
File "/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/numpy/lib/npyio.py", line 449, in load
raise IOError(
OSError: Failed to interpret file '/home/yuhao/P4Transformer-main/P4Transformer-main/Depth/a08_s04_e03_sdepth.bin' as a pickle
Looking forward to your help!
Hi, you may need to convert the bin file to the npy file. Please refer to MeteorNet for the way to process the dataset.
thx a lot for your help!
but i wanted to run the code on another server,and i had another problem when following the instructions:
running install
/home/yuhao/anaconda3/envs/python38/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(
/home/yuhao/anaconda3/envs/python38/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(
running bdist_egg
running egg_info
writing pointnet2.egg-info/PKG-INFO
writing dependency_links to pointnet2.egg-info/dependency_links.txt
writing top-level names to pointnet2.egg-info/top_level.txt
reading manifest file 'pointnet2.egg-info/SOURCES.txt'
writing manifest file 'pointnet2.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_ext
building 'pointnet2.ext' extension
creating /home/yuhao/P4Transformer_HOI/modules/build/temp.linux-x86_64-cpython-38
creating /home/yuhao/P4Transformer_HOI/modules/build/temp.linux-x86_64-cpython-38/ext_src
creating /home/yuhao/P4Transformer_HOI/modules/build/temp.linux-x86_64-cpython-38/ext_src/src
Emitting ninja build file /home/yuhao/P4Transformer_HOI/modules/build/temp.linux-x86_64-cpython-38/build.ninja...
Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
[1/9] /usr/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/yuhao/P4Transformer_HOI/modules/build/temp.linux-x86_64-cpython-38/ext_src/src/ball_query_gpu.o.d -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include/TH -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include/THC -I/home/yuhao/anaconda3/envs/python38/include/python3.8 -c -c /home/yuhao/P4Transformer_HOI/modules/ext_src/src/ball_query_gpu.cu -o /home/yuhao/P4Transformer_HOI/modules/build/temp.linux-x86_64-cpython-38/ext_src/src/ball_query_gpu.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'"'"'' -O2 -I_ext_src/include -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="gcc"' '-DPYBIND11_STDLIB="libstdcpp"' '-DPYBIND11_BUILD_ABI="cxxabi1011"' -DTORCH_EXTENSION_NAME=ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
FAILED: /home/yuhao/P4Transformer_HOI/modules/build/temp.linux-x86_64-cpython-38/ext_src/src/ball_query_gpu.o
/usr/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/yuhao/P4Transformer_HOI/modules/build/temp.linux-x86_64-cpython-38/ext_src/src/ball_query_gpu.o.d -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include/TH -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include/THC -I/home/yuhao/anaconda3/envs/python38/include/python3.8 -c -c /home/yuhao/P4Transformer_HOI/modules/ext_src/src/ball_query_gpu.cu -o /home/yuhao/P4Transformer_HOI/modules/build/temp.linux-x86_64-cpython-38/ext_src/src/ball_query_gpu.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'"'"'' -O2 -I_ext_src/include -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="gcc"' '-DPYBIND11_STDLIB="libstdcpp"' '-DPYBIND11_BUILD_ABI="cxxabi1011"' -DTORCH_EXTENSION_NAME=ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
nvcc fatal : Unknown option '-generate-dependencies-with-compile'
[2/9] /usr/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/yuhao/P4Transformer_HOI/modules/build/temp.linux-x86_64-cpython-38/ext_src/src/sampling_gpu.o.d -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include/TH -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include/THC -I/home/yuhao/anaconda3/envs/python38/include/python3.8 -c -c /home/yuhao/P4Transformer_HOI/modules/ext_src/src/sampling_gpu.cu -o /home/yuhao/P4Transformer_HOI/modules/build/temp.linux-x86_64-cpython-38/ext_src/src/sampling_gpu.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'"'"'' -O2 -I_ext_src/include -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="gcc"' '-DPYBIND11_STDLIB="libstdcpp"' '-DPYBIND11_BUILD_ABI="cxxabi1011"' -DTORCH_EXTENSION_NAME=ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
FAILED: /home/yuhao/P4Transformer_HOI/modules/build/temp.linux-x86_64-cpython-38/ext_src/src/sampling_gpu.o
/usr/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/yuhao/P4Transformer_HOI/modules/build/temp.linux-x86_64-cpython-38/ext_src/src/sampling_gpu.o.d -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include/TH -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include/THC -I/home/yuhao/anaconda3/envs/python38/include/python3.8 -c -c /home/yuhao/P4Transformer_HOI/modules/ext_src/src/sampling_gpu.cu -o /home/yuhao/P4Transformer_HOI/modules/build/temp.linux-x86_64-cpython-38/ext_src/src/sampling_gpu.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'"'"'' -O2 -I_ext_src/include -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="gcc"' '-DPYBIND11_STDLIB="libstdcpp"' '-DPYBIND11_BUILD_ABI="cxxabi1011"' -DTORCH_EXTENSION_NAME=ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
nvcc fatal : Unknown option '-generate-dependencies-with-compile'
[3/9] /usr/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/yuhao/P4Transformer_HOI/modules/build/temp.linux-x86_64-cpython-38/ext_src/src/group_points_gpu.o.d -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include/TH -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include/THC -I/home/yuhao/anaconda3/envs/python38/include/python3.8 -c -c /home/yuhao/P4Transformer_HOI/modules/ext_src/src/group_points_gpu.cu -o /home/yuhao/P4Transformer_HOI/modules/build/temp.linux-x86_64-cpython-38/ext_src/src/group_points_gpu.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'"'"'' -O2 -I_ext_src/include -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="gcc"' '-DPYBIND11_STDLIB="libstdcpp"' '-DPYBIND11_BUILD_ABI="cxxabi1011"' -DTORCH_EXTENSION_NAME=ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
FAILED: /home/yuhao/P4Transformer_HOI/modules/build/temp.linux-x86_64-cpython-38/ext_src/src/group_points_gpu.o
/usr/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/yuhao/P4Transformer_HOI/modules/build/temp.linux-x86_64-cpython-38/ext_src/src/group_points_gpu.o.d -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include/TH -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include/THC -I/home/yuhao/anaconda3/envs/python38/include/python3.8 -c -c /home/yuhao/P4Transformer_HOI/modules/ext_src/src/group_points_gpu.cu -o /home/yuhao/P4Transformer_HOI/modules/build/temp.linux-x86_64-cpython-38/ext_src/src/group_points_gpu.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'"'"'' -O2 -I_ext_src/include -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="gcc"' '-DPYBIND11_STDLIB="libstdcpp"' '-DPYBIND11_BUILD_ABI="cxxabi1011"' -DTORCH_EXTENSION_NAME=ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
nvcc fatal : Unknown option '-generate-dependencies-with-compile'
[4/9] /usr/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/yuhao/P4Transformer_HOI/modules/build/temp.linux-x86_64-cpython-38/ext_src/src/interpolate_gpu.o.d -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include/TH -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include/THC -I/home/yuhao/anaconda3/envs/python38/include/python3.8 -c -c /home/yuhao/P4Transformer_HOI/modules/ext_src/src/interpolate_gpu.cu -o /home/yuhao/P4Transformer_HOI/modules/build/temp.linux-x86_64-cpython-38/ext_src/src/interpolate_gpu.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'"'"'' -O2 -I_ext_src/include -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="gcc"' '-DPYBIND11_STDLIB="libstdcpp"' '-DPYBIND11_BUILD_ABI="cxxabi1011"' -DTORCH_EXTENSION_NAME=ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
FAILED: /home/yuhao/P4Transformer_HOI/modules/build/temp.linux-x86_64-cpython-38/ext_src/src/interpolate_gpu.o
/usr/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/yuhao/P4Transformer_HOI/modules/build/temp.linux-x86_64-cpython-38/ext_src/src/interpolate_gpu.o.d -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include/TH -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include/THC -I/home/yuhao/anaconda3/envs/python38/include/python3.8 -c -c /home/yuhao/P4Transformer_HOI/modules/ext_src/src/interpolate_gpu.cu -o /home/yuhao/P4Transformer_HOI/modules/build/temp.linux-x86_64-cpython-38/ext_src/src/interpolate_gpu.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'"'"'' -O2 -I_ext_src/include -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
nvcc fatal : Unknown option '-generate-dependencies-with-compile'
[5/9] c++ -MMD -MF /home/yuhao/P4Transformer_HOI/modules/build/temp.linux-x86_64-cpython-38/_ext_src/src/bindings.o.d -pthread -B /home/yuhao/anaconda3/envs/python38/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/yuhao/anaconda3/envs/python38/include -fPIC -O2 -isystem /home/yuhao/anaconda3/envs/python38/include -fPIC -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include/TH -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include/THC -I/home/yuhao/anaconda3/envs/python38/include/python3.8 -c -c /home/yuhao/P4Transformer_HOI/modules/_ext_src/src/bindings.cpp -o /home/yuhao/P4Transformer_HOI/modules/build/temp.linux-x86_64-cpython-38/_ext_src/src/bindings.o -O2 -I_ext_src/include -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
FAILED: /home/yuhao/P4Transformer_HOI/modules/build/temp.linux-x86_64-cpython-38/_ext_src/src/bindings.o
c++ -MMD -MF /home/yuhao/P4Transformer_HOI/modules/build/temp.linux-x86_64-cpython-38/_ext_src/src/bindings.o.d -pthread -B /home/yuhao/anaconda3/envs/python38/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/yuhao/anaconda3/envs/python38/include -fPIC -O2 -isystem /home/yuhao/anaconda3/envs/python38/include -fPIC -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include/TH -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include/THC -I/home/yuhao/anaconda3/envs/python38/include/python3.8 -c -c /home/yuhao/P4Transformer_HOI/modules/_ext_src/src/bindings.cpp -o /home/yuhao/P4Transformer_HOI/modules/build/temp.linux-x86_64-cpython-38/_ext_src/src/bindings.o -O2 -I_ext_src/include -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
/home/yuhao/P4Transformer_HOI/modules/_ext_src/src/bindings.cpp:6:10: fatal error: ball_query.h: 没有那个文件或目录
6 | #include "ball_query.h"
| ^~~~~~~~~~~~~~
compilation terminated.
[6/9] c++ -MMD -MF /home/yuhao/P4Transformer_HOI/modules/build/temp.linux-x86_64-cpython-38/_ext_src/src/interpolate.o.d -pthread -B /home/yuhao/anaconda3/envs/python38/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/yuhao/anaconda3/envs/python38/include -fPIC -O2 -isystem /home/yuhao/anaconda3/envs/python38/include -fPIC -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include/TH -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include/THC -I/home/yuhao/anaconda3/envs/python38/include/python3.8 -c -c /home/yuhao/P4Transformer_HOI/modules/_ext_src/src/interpolate.cpp -o /home/yuhao/P4Transformer_HOI/modules/build/temp.linux-x86_64-cpython-38/_ext_src/src/interpolate.o -O2 -I_ext_src/include -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
FAILED: /home/yuhao/P4Transformer_HOI/modules/build/temp.linux-x86_64-cpython-38/_ext_src/src/interpolate.o
c++ -MMD -MF /home/yuhao/P4Transformer_HOI/modules/build/temp.linux-x86_64-cpython-38/_ext_src/src/interpolate.o.d -pthread -B /home/yuhao/anaconda3/envs/python38/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/yuhao/anaconda3/envs/python38/include -fPIC -O2 -isystem /home/yuhao/anaconda3/envs/python38/include -fPIC -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include/TH -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include/THC -I/home/yuhao/anaconda3/envs/python38/include/python3.8 -c -c /home/yuhao/P4Transformer_HOI/modules/_ext_src/src/interpolate.cpp -o /home/yuhao/P4Transformer_HOI/modules/build/temp.linux-x86_64-cpython-38/_ext_src/src/interpolate.o -O2 -I_ext_src/include -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
/home/yuhao/P4Transformer_HOI/modules/_ext_src/src/interpolate.cpp:6:10: fatal error: interpolate.h: 没有那个文件或目录
6 | #include "interpolate.h"
| ^~~~~~~~~~~~~~~
compilation terminated.
[7/9] c++ -MMD -MF /home/yuhao/P4Transformer_HOI/modules/build/temp.linux-x86_64-cpython-38/_ext_src/src/sampling.o.d -pthread -B /home/yuhao/anaconda3/envs/python38/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/yuhao/anaconda3/envs/python38/include -fPIC -O2 -isystem /home/yuhao/anaconda3/envs/python38/include -fPIC -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include/TH -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include/THC -I/home/yuhao/anaconda3/envs/python38/include/python3.8 -c -c /home/yuhao/P4Transformer_HOI/modules/_ext_src/src/sampling.cpp -o /home/yuhao/P4Transformer_HOI/modules/build/temp.linux-x86_64-cpython-38/_ext_src/src/sampling.o -O2 -I_ext_src/include -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
FAILED: /home/yuhao/P4Transformer_HOI/modules/build/temp.linux-x86_64-cpython-38/_ext_src/src/sampling.o
c++ -MMD -MF /home/yuhao/P4Transformer_HOI/modules/build/temp.linux-x86_64-cpython-38/_ext_src/src/sampling.o.d -pthread -B /home/yuhao/anaconda3/envs/python38/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/yuhao/anaconda3/envs/python38/include -fPIC -O2 -isystem /home/yuhao/anaconda3/envs/python38/include -fPIC -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include/TH -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include/THC -I/home/yuhao/anaconda3/envs/python38/include/python3.8 -c -c /home/yuhao/P4Transformer_HOI/modules/_ext_src/src/sampling.cpp -o /home/yuhao/P4Transformer_HOI/modules/build/temp.linux-x86_64-cpython-38/_ext_src/src/sampling.o -O2 -I_ext_src/include -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
/home/yuhao/P4Transformer_HOI/modules/_ext_src/src/sampling.cpp:6:10: fatal error: sampling.h: 没有那个文件或目录
6 | #include "sampling.h"
| ^~~~~~~~~~~~
compilation terminated.
[8/9] c++ -MMD -MF /home/yuhao/P4Transformer_HOI/modules/build/temp.linux-x86_64-cpython-38/_ext_src/src/group_points.o.d -pthread -B /home/yuhao/anaconda3/envs/python38/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/yuhao/anaconda3/envs/python38/include -fPIC -O2 -isystem /home/yuhao/anaconda3/envs/python38/include -fPIC -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include/TH -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include/THC -I/home/yuhao/anaconda3/envs/python38/include/python3.8 -c -c /home/yuhao/P4Transformer_HOI/modules/_ext_src/src/group_points.cpp -o /home/yuhao/P4Transformer_HOI/modules/build/temp.linux-x86_64-cpython-38/_ext_src/src/group_points.o -O2 -I_ext_src/include -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
FAILED: /home/yuhao/P4Transformer_HOI/modules/build/temp.linux-x86_64-cpython-38/_ext_src/src/group_points.o
c++ -MMD -MF /home/yuhao/P4Transformer_HOI/modules/build/temp.linux-x86_64-cpython-38/_ext_src/src/group_points.o.d -pthread -B /home/yuhao/anaconda3/envs/python38/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/yuhao/anaconda3/envs/python38/include -fPIC -O2 -isystem /home/yuhao/anaconda3/envs/python38/include -fPIC -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include/TH -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include/THC -I/home/yuhao/anaconda3/envs/python38/include/python3.8 -c -c /home/yuhao/P4Transformer_HOI/modules/_ext_src/src/group_points.cpp -o /home/yuhao/P4Transformer_HOI/modules/build/temp.linux-x86_64-cpython-38/_ext_src/src/group_points.o -O2 -I_ext_src/include -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
/home/yuhao/P4Transformer_HOI/modules/_ext_src/src/group_points.cpp:6:10: fatal error: group_points.h: 没有那个文件或目录
6 | #include "group_points.h"
| ^~~~~~~~~~~~~~~~
compilation terminated.
[9/9] c++ -MMD -MF /home/yuhao/P4Transformer_HOI/modules/build/temp.linux-x86_64-cpython-38/_ext_src/src/ball_query.o.d -pthread -B /home/yuhao/anaconda3/envs/python38/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/yuhao/anaconda3/envs/python38/include -fPIC -O2 -isystem /home/yuhao/anaconda3/envs/python38/include -fPIC -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include/TH -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include/THC -I/home/yuhao/anaconda3/envs/python38/include/python3.8 -c -c /home/yuhao/P4Transformer_HOI/modules/_ext_src/src/ball_query.cpp -o /home/yuhao/P4Transformer_HOI/modules/build/temp.linux-x86_64-cpython-38/_ext_src/src/ball_query.o -O2 -I_ext_src/include -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
FAILED: /home/yuhao/P4Transformer_HOI/modules/build/temp.linux-x86_64-cpython-38/_ext_src/src/ball_query.o
c++ -MMD -MF /home/yuhao/P4Transformer_HOI/modules/build/temp.linux-x86_64-cpython-38/_ext_src/src/ball_query.o.d -pthread -B /home/yuhao/anaconda3/envs/python38/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/yuhao/anaconda3/envs/python38/include -fPIC -O2 -isystem /home/yuhao/anaconda3/envs/python38/include -fPIC -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include/TH -I/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/include/THC -I/home/yuhao/anaconda3/envs/python38/include/python3.8 -c -c /home/yuhao/P4Transformer_HOI/modules/_ext_src/src/ball_query.cpp -o /home/yuhao/P4Transformer_HOI/modules/build/temp.linux-x86_64-cpython-38/_ext_src/src/ball_query.o -O2 -I_ext_src/include -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
/home/yuhao/P4Transformer_HOI/modules/_ext_src/src/ball_query.cpp:6:10: fatal error: ball_query.h: 没有那个文件或目录
6 | #include "ball_query.h"
| ^~~~~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1667, in _run_ninja_build
subprocess.run(
File "/home/yuhao/anaconda3/envs/python38/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 "setup.py", line 16, in
setup(
File "/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/setuptools/init.py", line 87, in setup
return distutils.core.setup(**attrs)
File "/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 148, in setup
return run_commands(dist)
File "/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 163, in run_commands
dist.run_commands()
File "/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 967, in run_commands
self.run_command(cmd)
File "/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/setuptools/dist.py", line 1224, in run_command
super().run_command(command)
File "/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
cmd_obj.run()
File "/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/setuptools/command/install.py", line 74, in run
self.do_egg_install()
File "/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/setuptools/command/install.py", line 123, in do_egg_install
self.run_command('bdist_egg')
File "/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/setuptools/dist.py", line 1224, in run_command
super().run_command(command)
File "/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
cmd_obj.run()
File "/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/setuptools/command/bdist_egg.py", line 165, in run
cmd = self.call_command('install_lib', warn_dir=0)
File "/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/setuptools/command/bdist_egg.py", line 151, in call_command
self.run_command(cmdname)
File "/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/setuptools/dist.py", line 1224, in run_command
super().run_command(command)
File "/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
cmd_obj.run()
File "/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/setuptools/command/install_lib.py", line 11, in run
self.build()
File "/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/setuptools/_distutils/command/install_lib.py", line 107, in build
self.run_command('build_ext')
File "/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/setuptools/dist.py", line 1224, in run_command
super().run_command(command)
File "/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
cmd_obj.run()
File "/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 79, in run
_build_ext.run(self)
File "/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 339, in run
self.build_extensions()
File "/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 708, in build_extensions
build_ext.build_extensions(self)
File "/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 448, in build_extensions
self._build_extensions_serial()
File "/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 473, in _build_extensions_serial
self.build_extension(ext)
File "/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 202, in build_extension
_build_ext.build_extension(self, ext)
File "/home/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 528, in build_extension
objects = self.compiler.compile(sources,
File "/home/yuhao/anaconda3/envs/python38/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/yuhao/anaconda3/envs/python38/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1354, in _write_ninja_file_and_compile_objects
_run_ninja_build(
File "/home/yuhao/anaconda3/envs/python38/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
i didn't change the code and did everything exactly the same as i did the first time.This is confusing me and i don't know what to do.
Looking forward to your help!
Hi, you may need to check the nvidia driver on the server.