General questions

For each dataset there is a pretrined Backbone
aka:
pose_resnet50_panoptic.pth.tar
pred_shelf_maskrcnn_hrnet_coco.pkl
pred_campus_maskrcnn_hrnet_coco.pkl
What are this for ?

Would it be possible to add to the README.md

How to perform evaluation
How to run the code

Would it be possible to add to the README.md

How to perform evaluation
How to run the code

For each dataset there is a pretrined Backbone aka: pose_resnet50_panoptic.pth.tar pred_shelf_maskrcnn_hrnet_coco.pkl pred_campus_maskrcnn_hrnet_coco.pkl
What are this for ?

Hey, I have the same problem with you.
Have you solved it? Thanks！


Install issues

Hi, thanks for your great work!
I am trying to run the PLA, but when I run python3 setup.py build_ext develop,I encountered the following problem:
running build_ext
building 'softgroup_ops' extension
/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/lib/python3.8/site-packages/torch/cuda/__init__.py:104: UserWarning:
NVIDIA RTX A6000 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_61 sm_70 sm_75 compute_37.
If you want to use the NVIDIA RTX A6000 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 /var/autofs/home/hale/usrs/wangjuan/code/PLA/pcseg/external_libs/softgroup_ops/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/3] /home/usrs/wangjuan/anaconda3/envs/softgroup3.8/bin/nvcc --generate-dependencies-with-compile --dependency-output /var/autofs/home/hale/usrs/wangjuan/code/PLA/pcseg/external_libs/softgroup_ops/build/temp.linux-x86_64-cpython-38/ops/src/cuda.o.d -I/data/anaconda3/envs/pt18/include/ -I/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/lib/python3.8/site-packages/torch/include -I/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/lib/python3.8/site-packages/torch/include/TH -I/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/lib/python3.8/site-packages/torch/include/THC -I/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/include -I/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/include/python3.8 -c -c /var/autofs/home/hale/usrs/wangjuan/code/PLA/pcseg/external_libs/softgroup_ops/ops/src/cuda.cu -o /var/autofs/home/hale/usrs/wangjuan/code/PLA/pcseg/external_libs/softgroup_ops/build/temp.linux-x86_64-cpython-38/ops/src/cuda.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 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=softgroup_ops -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=compute_75 -gencode=arch=compute_75,code=sm_75 -std=c++14
FAILED: /var/autofs/home/hale/usrs/wangjuan/code/PLA/pcseg/external_libs/softgroup_ops/build/temp.linux-x86_64-cpython-38/ops/src/cuda.o
/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/bin/nvcc --generate-dependencies-with-compile --dependency-output /var/autofs/home/hale/usrs/wangjuan/code/PLA/pcseg/external_libs/softgroup_ops/build/temp.linux-x86_64-cpython-38/ops/src/cuda.o.d -I/data/anaconda3/envs/pt18/include/ -I/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/lib/python3.8/site-packages/torch/include -I/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/lib/python3.8/site-packages/torch/include/TH -I/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/lib/python3.8/site-packages/torch/include/THC -I/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/include -I/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/include/python3.8 -c -c /var/autofs/home/hale/usrs/wangjuan/code/PLA/pcseg/external_libs/softgroup_ops/ops/src/cuda.cu -o /var/autofs/home/hale/usrs/wangjuan/code/PLA/pcseg/external_libs/softgroup_ops/build/temp.linux-x86_64-cpython-38/ops/src/cuda.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 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=softgroup_ops -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=compute_75 -gencode=arch=compute_75,code=sm_75 -std=c++14
In file included from /var/autofs/home/hale/usrs/wangjuan/code/PLA/pcseg/external_libs/softgroup_ops/ops/src/bfs_cluster/bfs_cluster.h:9,
                 from /var/autofs/home/hale/usrs/wangjuan/code/PLA/pcseg/external_libs/softgroup_ops/ops/src/bfs_cluster/bfs_cluster.cu:7,
                 from /var/autofs/home/hale/usrs/wangjuan/code/PLA/pcseg/external_libs/softgroup_ops/ops/src/cuda.cu:4:
/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/lib/python3.8/site-packages/torch/include/ATen/cuda/CUDAContext.h:10:10: fatal error: cusolverDn.h: No such file or directory
   10 | #include <cusolverDn.h>
      |          ^~~~~~~~~~~~~~
compilation terminated.
[2/3] c++ -MMD -MF /var/autofs/home/hale/usrs/wangjuan/code/PLA/pcseg/external_libs/softgroup_ops/build/temp.linux-x86_64-cpython-38/ops/src/softgroup_api.o.d -pthread -B /home/usrs/wangjuan/anaconda3/envs/softgroup3.8/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/data/anaconda3/envs/pt18/include/ -I/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/lib/python3.8/site-packages/torch/include -I/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/lib/python3.8/site-packages/torch/include/TH -I/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/lib/python3.8/site-packages/torch/include/THC -I/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/include -I/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/include/python3.8 -c -c /var/autofs/home/hale/usrs/wangjuan/code/PLA/pcseg/external_libs/softgroup_ops/ops/src/softgroup_api.cpp -o /var/autofs/home/hale/usrs/wangjuan/code/PLA/pcseg/external_libs/softgroup_ops/build/temp.linux-x86_64-cpython-38/ops/src/softgroup_api.o -g -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=softgroup_ops -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
FAILED: /var/autofs/home/hale/usrs/wangjuan/code/PLA/pcseg/external_libs/softgroup_ops/build/temp.linux-x86_64-cpython-38/ops/src/softgroup_api.o
c++ -MMD -MF /var/autofs/home/hale/usrs/wangjuan/code/PLA/pcseg/external_libs/softgroup_ops/build/temp.linux-x86_64-cpython-38/ops/src/softgroup_api.o.d -pthread -B /home/usrs/wangjuan/anaconda3/envs/softgroup3.8/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/data/anaconda3/envs/pt18/include/ -I/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/lib/python3.8/site-packages/torch/include -I/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/lib/python3.8/site-packages/torch/include/TH -I/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/lib/python3.8/site-packages/torch/include/THC -I/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/include -I/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/include/python3.8 -c -c /var/autofs/home/hale/usrs/wangjuan/code/PLA/pcseg/external_libs/softgroup_ops/ops/src/softgroup_api.cpp -o /var/autofs/home/hale/usrs/wangjuan/code/PLA/pcseg/external_libs/softgroup_ops/build/temp.linux-x86_64-cpython-38/ops/src/softgroup_api.o -g -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=softgroup_ops -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from /home/usrs/wangjuan/anaconda3/envs/softgroup3.8/lib/python3.8/site-packages/torch/include/ATen/Parallel.h:140,
                 from /home/usrs/wangjuan/anaconda3/envs/softgroup3.8/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3,
                 from /home/usrs/wangjuan/anaconda3/envs/softgroup3.8/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5,
                 from /home/usrs/wangjuan/anaconda3/envs/softgroup3.8/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3,
                 from /home/usrs/wangjuan/anaconda3/envs/softgroup3.8/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:13,
                 from /home/usrs/wangjuan/anaconda3/envs/softgroup3.8/lib/python3.8/site-packages/torch/include/torch/extension.h:4,
                 from /var/autofs/home/hale/usrs/wangjuan/code/PLA/pcseg/external_libs/softgroup_ops/ops/src/softgroup_api.cpp:1:
/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/lib/python3.8/site-packages/torch/include/ATen/ParallelOpenMP.h:83: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]
   83 | #pragma omp parallel for if ((end - begin) >= grain_size)
      |
In file included from /var/autofs/home/hale/usrs/wangjuan/code/PLA/pcseg/external_libs/softgroup_ops/ops/src/bfs_cluster/bfs_cluster.h:9,
                 from /var/autofs/home/hale/usrs/wangjuan/code/PLA/pcseg/external_libs/softgroup_ops/ops/src/softgroup_ops.h:3,
                 from /var/autofs/home/hale/usrs/wangjuan/code/PLA/pcseg/external_libs/softgroup_ops/ops/src/softgroup_api.cpp:4:
/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/lib/python3.8/site-packages/torch/include/ATen/cuda/CUDAContext.h:10:10: fatal error: cusolverDn.h: No such file or directory
   10 | #include <cusolverDn.h>
      |          ^~~~~~~~~~~~~~
compilation terminated.
[3/3] c++ -MMD -MF /var/autofs/home/hale/usrs/wangjuan/code/PLA/pcseg/external_libs/softgroup_ops/build/temp.linux-x86_64-cpython-38/ops/src/softgroup_ops.o.d -pthread -B /home/usrs/wangjuan/anaconda3/envs/softgroup3.8/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/data/anaconda3/envs/pt18/include/ -I/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/lib/python3.8/site-packages/torch/include -I/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/lib/python3.8/site-packages/torch/include/TH -I/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/lib/python3.8/site-packages/torch/include/THC -I/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/include -I/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/include/python3.8 -c -c /var/autofs/home/hale/usrs/wangjuan/code/PLA/pcseg/external_libs/softgroup_ops/ops/src/softgroup_ops.cpp -o /var/autofs/home/hale/usrs/wangjuan/code/PLA/pcseg/external_libs/softgroup_ops/build/temp.linux-x86_64-cpython-38/ops/src/softgroup_ops.o -g -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=softgroup_ops -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
FAILED: /var/autofs/home/hale/usrs/wangjuan/code/PLA/pcseg/external_libs/softgroup_ops/build/temp.linux-x86_64-cpython-38/ops/src/softgroup_ops.o
c++ -MMD -MF /var/autofs/home/hale/usrs/wangjuan/code/PLA/pcseg/external_libs/softgroup_ops/build/temp.linux-x86_64-cpython-38/ops/src/softgroup_ops.o.d -pthread -B /home/usrs/wangjuan/anaconda3/envs/softgroup3.8/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/data/anaconda3/envs/pt18/include/ -I/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/lib/python3.8/site-packages/torch/include -I/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/lib/python3.8/site-packages/torch/include/TH -I/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/lib/python3.8/site-packages/torch/include/THC -I/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/include -I/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/include/python3.8 -c -c /var/autofs/home/hale/usrs/wangjuan/code/PLA/pcseg/external_libs/softgroup_ops/ops/src/softgroup_ops.cpp -o /var/autofs/home/hale/usrs/wangjuan/code/PLA/pcseg/external_libs/softgroup_ops/build/temp.linux-x86_64-cpython-38/ops/src/softgroup_ops.o -g -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=softgroup_ops -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from /home/usrs/wangjuan/anaconda3/envs/softgroup3.8/lib/python3.8/site-packages/torch/include/ATen/Parallel.h:140,
                 from /home/usrs/wangjuan/anaconda3/envs/softgroup3.8/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3,
                 from /home/usrs/wangjuan/anaconda3/envs/softgroup3.8/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5,
                 from /home/usrs/wangjuan/anaconda3/envs/softgroup3.8/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3,
                 from /home/usrs/wangjuan/anaconda3/envs/softgroup3.8/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:13,
                 from /home/usrs/wangjuan/anaconda3/envs/softgroup3.8/lib/python3.8/site-packages/torch/include/torch/extension.h:4,
                 from /var/autofs/home/hale/usrs/wangjuan/code/PLA/pcseg/external_libs/softgroup_ops/ops/src/softgroup_ops.cpp:3:
/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/lib/python3.8/site-packages/torch/include/ATen/ParallelOpenMP.h:83: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]
   83 | #pragma omp parallel for if ((end - begin) >= grain_size)
      |
In file included from /var/autofs/home/hale/usrs/wangjuan/code/PLA/pcseg/external_libs/softgroup_ops/ops/src/bfs_cluster/bfs_cluster.h:9,
                 from /var/autofs/home/hale/usrs/wangjuan/code/PLA/pcseg/external_libs/softgroup_ops/ops/src/bfs_cluster/bfs_cluster.cpp:9,
                 from /var/autofs/home/hale/usrs/wangjuan/code/PLA/pcseg/external_libs/softgroup_ops/ops/src/softgroup_ops.cpp:5:
/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/lib/python3.8/site-packages/torch/include/ATen/cuda/CUDAContext.h:10:10: fatal error: cusolverDn.h: No such file or directory
   10 | #include <cusolverDn.h>
      |          ^~~~~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
  File "/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1667, in _run_ninja_build
    subprocess.run(
  File "/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/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 6, in <module>
    setup(
  File "/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/lib/python3.8/site-packages/setuptools/__init__.py", line 107, in setup
    return distutils.core.setup(**attrs)
  File "/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 185, in setup
    return run_commands(dist)
  File "/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
    dist.run_commands()
  File "/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
    self.run_command(cmd)
  File "/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/lib/python3.8/site-packages/setuptools/dist.py", line 1234, in run_command
    super().run_command(command)
  File "/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
    cmd_obj.run()
  File "/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 84, in run
    _build_ext.run(self)
  File "/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 345, in run
    self.build_extensions()
  File "/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 708, in build_extensions
    build_ext.build_extensions(self)
  File "/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 467, in build_extensions
    self._build_extensions_serial()
  File "/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 493, in _build_extensions_serial
    self.build_extension(ext)
  File "/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 246, in build_extension
    _build_ext.build_extension(self, ext)
  File "/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 548, in build_extension
    objects = self.compiler.compile(
  File "/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/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/usrs/wangjuan/anaconda3/envs/softgroup3.8/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1354, in _write_ninja_file_and_compile_objects
    _run_ninja_build(
  File "/home/usrs/wangjuan/anaconda3/envs/softgroup3.8/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 noticed that it says here that it's caused by a mismatch between pytorch's version and cuda's, so I tried the version inside the answer, but it didn't work. Then I noticed that the version in your install.md is not the same as the version in the install.md in softgroup.
In PLA:
CUDA 11.1
torch==1.8.1+cu111
torchvision==0.9.1+cu111

But in SoftGroup:
cuda=10.2
So I tried these following 2 command：
conda install pytorch==1.12.1 torchvision==0.13.1 torchaudio==0.12.1 cudatoolkit=10.2 -c pytorch
conda install pytorch torchvision torchaudio cudatoolkit=11.1 -c pytorch-lts -c nvidia

Also, since my cuda is 11.6, I also tried：
conda install pytorch==1.12.1 torchvision==0.13.1 torchaudio==0.12.1 cudatoolkit=11.6 -c pytorch -c conda-forge
But unfortunately, all these versions didn't work, so may I ask your your environment?
mine:
Ubuntu 18.04
GCC 7.5
CUDA 11.6
Looking forward to your reply, any assistant will be appreiciate.

conda install pytorch torchvision torchaudio cudatoolkit=11.1 -c pytorch-lts -c nvidia
it works! But when I run
bash scripts/dist_train.sh 4 --cfg_file cfgs/scannet_models/spconv_clip_base15_caption_adamw.yaml --extra_tag exp_tag
I got
+ NGPUS=4
+ PY_ARGS='--cfg_file cfgs/scannet_models/spconv_clip_base15_caption_adamw.yaml --extra_tag exp_tag'
+ true
+ PORT=47116
++ nc -z <IP_ADDRESS> 47116
++ echo 1
+ status=1
+ '[' 1 '!=' 0 ']'
+ break
+ echo 47116
47116
+ ulimit -n 64000
+ python3 -m torch.distributed.launch --nproc_per_node=4 train.py --launcher pytorch --tcp_port 47116 --cfg_file cfgs/scannet_models/spconv_clip_base15_caption_adamw.yaml --extra_tag exp_tag
*****************************************
Setting OMP_NUM_THREADS environment variable for each process to be 1 in default, to avoid your system being overloaded, please further tune the variable for optimal performance in your application as needed.
*****************************************
Killing subprocess 26624
Killing subprocess 26625
Killing subprocess 26626
Killing subprocess 26627
Traceback (most recent call last):
  File "/home/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/site-packages/torch/distributed/launch.py", line 340, in <module>
    main()
  File "/home/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/site-packages/torch/distributed/launch.py", line 326, in main
    sigkill_handler(signal.SIGTERM, None)  # not coming back
  File "/home/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/site-packages/torch/distributed/launch.py", line 301, in sigkill_handler
    raise subprocess.CalledProcessError(returncode=last_return_code, cmd=cmd)
subprocess.CalledProcessError: Command '['/home/usrs/wangjuan/anaconda3/envs/PLA/bin/python3', '-u', 'train.py', '--local_rank=3', '--launcher', 'pytorch', '--tcp_port', '47116', '--cfg_file', 'cfgs/scannet_models/spconv_clip_base15_caption_adamw.yaml', '--extra_tag', 'exp_tag']' died with <Signals.SIGSEGV: 11>.

Thank you for your reply!
I edit the train.py like:
parser.add_argument('--batch_size', type=int, default=1, required=False, help='batch size for training')
parser.add_argument('--workers', type=int, default=1, help='number of workers for dataloader')

But I got the same error.

Could you please try using one GPU to see if it works?

That's kind of strange, would you like to set some breakpoints in train.py, and locate which line causes such error?

Hi
The breakpoints stop at
from pcseg.datasets import build_dataloader
in train.py.
It looks like install pcseg failed.
But I run python3 setup.py develop,and I got

running develop
/home/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/site-packages/setuptools/command/easy_install.py:147: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
  EasyInstallDeprecationWarning,
/home/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  setuptools.SetuptoolsDeprecationWarning,
running egg_info
writing pcseg.egg-info/PKG-INFO
writing dependency_links to pcseg.egg-info/dependency_links.txt
writing requirements to pcseg.egg-info/requires.txt
writing top-level names to pcseg.egg-info/top_level.txt
reading manifest file 'pcseg.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'pcseg.egg-info/SOURCES.txt'
running build_ext
Creating /var/autofs/home/hale/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/site-packages/pcseg.egg-link (link to .)
pcseg 0.1.0+e674b1a is already the active version in easy-install.pth

Installed /var/autofs/home/hale/usrs/wangjuan/code/PLA
Processing dependencies for pcseg==0.1.0+e674b1a
Searching for SharedArray==3.2.2
Best match: SharedArray 3.2.2
Processing SharedArray-3.2.2-py3.7-linux-x86_64.egg
SharedArray 3.2.2 is already the active version in easy-install.pth

Using /var/autofs/home/hale/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/site-packages/SharedArray-3.2.2-py3.7-linux-x86_64.egg
Searching for tqdm==4.65.0
Best match: tqdm 4.65.0
Adding tqdm 4.65.0 to easy-install.pth file
Installing tqdm script to /home/usrs/wangjuan/anaconda3/envs/PLA/bin

Using /var/autofs/home/hale/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/site-packages
Searching for PyYAML==6.0.1
Best match: PyYAML 6.0.1
Adding PyYAML 6.0.1 to easy-install.pth file

Using /var/autofs/home/hale/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/site-packages
Searching for easydict==1.10
Best match: easydict 1.10
Processing easydict-1.10-py3.7.egg
easydict 1.10 is already the active version in easy-install.pth

Using /var/autofs/home/hale/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/site-packages/easydict-1.10-py3.7.egg
Searching for tensorboardX==2.6.2
Best match: tensorboardX 2.6.2
Adding tensorboardX 2.6.2 to easy-install.pth file

Using /var/autofs/home/hale/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/site-packages
Searching for numpy==1.21.6
Best match: numpy 1.21.6
Adding numpy 1.21.6 to easy-install.pth file
Installing f2py script to /home/usrs/wangjuan/anaconda3/envs/PLA/bin
Installing f2py3 script to /home/usrs/wangjuan/anaconda3/envs/PLA/bin
Installing f2py3.7 script to /home/usrs/wangjuan/anaconda3/envs/PLA/bin

Using /var/autofs/home/hale/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/site-packages
Searching for protobuf==3.20.3
Best match: protobuf 3.20.3
Adding protobuf 3.20.3 to easy-install.pth file

Using /var/autofs/home/hale/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/site-packages
Searching for packaging==23.1
Best match: packaging 23.1
Adding packaging 23.1 to easy-install.pth file

Using /var/autofs/home/hale/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/site-packages
Finished processing dependencies for pcseg==0.1.0+e674b1a

Is there any problem in it?

This is a very strange problem, we have never meet it. It seems that you run the train.py with python but install pcseg with python3, will that cause problem?

I don't think so. I construct another conda environment with python setup.py develop to replace python3, but it didin't work.I got Segmentation fault (core dumped) again.
Run python -X faulthandler train.py --cfg_file cfgs/scannet_models/spconv_clip_base15_caption_adamw.yaml, then I got
Current thread 0x00007f5aac0c9180 (most recent call first):
  File "/home/usrs/wangjuan/anaconda3/envs/softgroup3.7/lib/python3.7/ctypes/__init__.py", line 364 in __init__
  File "/home/usrs/wangjuan/anaconda3/envs/softgroup3.7/lib/python3.7/site-packages/torch/_ops.py", line 104 in load_library
  File "/home/usrs/wangjuan/anaconda3/envs/softgroup3.7/lib/python3.7/site-packages/torch_scatter/__init__.py", line 16 in <module>
  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 728 in exec_module
  File "<frozen importlib._bootstrap>", line 677 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 967 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "../pcseg/datasets/processor/data_processor.py", line 6 in <module>
  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 728 in exec_module
  File "<frozen importlib._bootstrap>", line 677 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 967 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "../pcseg/datasets/indoor_dataset.py", line 8 in <module>
  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 728 in exec_module
  File "<frozen importlib._bootstrap>", line 677 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 967 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "../pcseg/datasets/scannet/scannet_dataset.py", line 13 in <module>
  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 728 in exec_module
  File "<frozen importlib._bootstrap>", line 677 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 967 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "../pcseg/datasets/__init__.py", line 9 in <module>
  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 728 in exec_module
  File "<frozen importlib._bootstrap>", line 677 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 967 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "train.py", line 13 in <module>
Segmentation fault (core dumped)

I cannot find any problem from it.
By the way, when I run pip install -r requirements.txt , I got
ERROR: Could not find a version that satisfies the requirement torch==1.8.1+cu111 (from versions: 1.4.0, 1.5.0, 1.5.1, 1.6.0, 1.7.0, 1.7.1, 1.8.0, 1.8.1, 1.9.0, 1.9.1, 1.10.0, 1.10.1, 1.10.2, 1.11.0, 1.12.0, 1.12.1, 1.13.0, 1.13.1, 2.0.0, 2.0.1)
ERROR: No matching distribution found for torch==1.8.1+cu111

So I use pip install torch==1.8.1+cu111 torchvision==0.9.1+cu111 torchaudio==0.8.1 -f https://download.pytorch.org/whl/torch_stable.html to replace
torch==1.8.1+cu111
torchvision==0.9.1+cu111

But I think it's ok. Other than that, I followed all the steps to install.md and the dataset was downloaded directly.
Here is my version of the environment, can I ask yours?
pip list|grep torch
torch                   1.8.1+cu111
torch-scatter           2.1.1
torchaudio              0.8.1
torchvision             0.9.1+cu111

conda list|grep torch
ffmpeg                    4.3                  hf484d3e_0    pytorch
pytorch                   1.8.2           py3.7_cuda11.1_cudnn8.0.5_0    pytorch-lts
pytorch-mutex             1.0                        cuda    pytorch
torch                     1.8.1+cu111               <pip>
torch-scatter             2.1.1                     <pip>
torchaudio                0.8.2                      py37    pytorch-lts
torchaudio                0.8.1                     <pip>
torchvision               0.9.2                py37_cu111    pytorch-lts
torchvision               0.9.1+cu111               <pip>

nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2022 NVIDIA Corporation
Built on Tue_Mar__8_18:18:20_PST_2022
Cuda compilation tools, release 11.6, V11.6.124
Build cuda_11.6.r11.6/compiler.31057947_0

According to your error, it seems that it's caused by softgroup
 File "/home/usrs/wangjuan/anaconda3/envs/softgroup3.7/lib/python3.7/ctypes/__init__.py", line 364 in __init__
  File "/home/usrs/wangjuan/anaconda3/envs/softgroup3.7/lib/python3.7/site-packages/torch/_ops.py", line 104 in load_library
  File "/home/usrs/wangjuan/anaconda3/envs/softgroup3.7/lib/python3.7/site-packages/torch_scatter/__init__.py", line 16 in <module>

Can you try to import softgroup as what we do?
https://github.com/CVMI-Lab/PLA/blob/e674b1a15ca812565edbbe12e201f91ee4195154/pcseg/models/vision_backbones_3d/vfe/indoor_vfe.py#L4
Try:
from pcseg.external_libs.softgroup_ops.ops import functions as sg_ops

and
from pcseg.utils import common_utils

Hi,I try
from pcseg.config import cfg, cfg_from_list, cfg_from_yaml_file, log_config_to_file
from pcseg.external_libs.softgroup_ops.ops import functions as sg_ops
from pcseg.utils import common_utils
from pcseg.datasets import build_dataloader

in train.py. But the breakpoint still stop at from pcseg.datasets import build_dataloader.
Run python -X faulthandler train.py --cfg_file cfgs/scannet_models/spconv_clip_base15_caption_adamw.yaml, then I got
Fatal Python error: Segmentation fault

Current thread 0x00007f3443a52180 (most recent call first):
  File "/home/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/ctypes/__init__.py", line 364 in __init__
  File "/home/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/site-packages/torch/_ops.py", line 104 in load_library
  File "/home/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/site-packages/torch_scatter/__init__.py", line 16 in <module>
  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 728 in exec_module
  File "<frozen importlib._bootstrap>", line 677 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 967 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "../pcseg/datasets/processor/data_processor.py", line 6 in <module>
  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 728 in exec_module
  File "<frozen importlib._bootstrap>", line 677 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 967 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "../pcseg/datasets/indoor_dataset.py", line 8 in <module>
  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 728 in exec_module
  File "<frozen importlib._bootstrap>", line 677 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 967 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "../pcseg/datasets/scannet/scannet_dataset.py", line 13 in <module>
  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 728 in exec_module
  File "<frozen importlib._bootstrap>", line 677 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 967 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "../pcseg/datasets/__init__.py", line 9 in <module>
  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 728 in exec_module
  File "<frozen importlib._bootstrap>", line 677 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 967 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "train.py", line 15 in <module>
Segmentation fault (core dumped)

Hi, from pip.
For all packages, I followed your install.md. Except for
torch==1.8.1+cu111
torchvision==0.9.1+cu111

I used pip install torch==1.8.1+cu111 torchvision==0.9.1+cu111 torchaudio==0.8.1 -f https://download.pytorch.org/whl/torch_stable.html .

Could you please try to install torch_scatter from the source?  I saw the error comes from torch_scatter/init.py.
git clone https://github.com/rusty1s/pytorch_scatter.git
cd pytorch_scatter
python setup.py install

Yes, the breakpoint stop at "from torch_scatter import scatter_mean " in PLA/pcseg/datasets/processor/data_processor.py.
And when I install torch_scatter from the source, I got
running install
/home/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  setuptools.SetuptoolsDeprecationWarning,
/home/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/site-packages/setuptools/command/easy_install.py:147: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
  EasyInstallDeprecationWarning,
running bdist_egg
running egg_info
creating torch_scatter.egg-info
writing torch_scatter.egg-info/PKG-INFO
writing dependency_links to torch_scatter.egg-info/dependency_links.txt
writing requirements to torch_scatter.egg-info/requires.txt
writing top-level names to torch_scatter.egg-info/top_level.txt
writing manifest file 'torch_scatter.egg-info/SOURCES.txt'
reading manifest file 'torch_scatter.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'torch_scatter.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib.linux-x86_64-cpython-37
creating build/lib.linux-x86_64-cpython-37/torch_scatter
copying torch_scatter/__init__.py -> build/lib.linux-x86_64-cpython-37/torch_scatter
copying torch_scatter/placeholder.py -> build/lib.linux-x86_64-cpython-37/torch_scatter
copying torch_scatter/scatter.py -> build/lib.linux-x86_64-cpython-37/torch_scatter
copying torch_scatter/segment_coo.py -> build/lib.linux-x86_64-cpython-37/torch_scatter
copying torch_scatter/segment_csr.py -> build/lib.linux-x86_64-cpython-37/torch_scatter
copying torch_scatter/testing.py -> build/lib.linux-x86_64-cpython-37/torch_scatter
copying torch_scatter/utils.py -> build/lib.linux-x86_64-cpython-37/torch_scatter
creating build/lib.linux-x86_64-cpython-37/torch_scatter/composite
copying torch_scatter/composite/__init__.py -> build/lib.linux-x86_64-cpython-37/torch_scatter/composite
copying torch_scatter/composite/logsumexp.py -> build/lib.linux-x86_64-cpython-37/torch_scatter/composite
copying torch_scatter/composite/softmax.py -> build/lib.linux-x86_64-cpython-37/torch_scatter/composite
copying torch_scatter/composite/std.py -> build/lib.linux-x86_64-cpython-37/torch_scatter/composite
running build_ext
building 'torch_scatter._scatter_cpu' extension
creating build/temp.linux-x86_64-cpython-37
creating build/temp.linux-x86_64-cpython-37/csrc
creating build/temp.linux-x86_64-cpython-37/csrc/cpu
gcc -pthread -B /home/usrs/wangjuan/anaconda3/envs/PLA/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_PYTHON -Icsrc -I/home/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/site-packages/torch/include -I/home/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/site-packages/torch/include/TH -I/home/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/site-packages/torch/include/THC -I/home/usrs/wangjuan/anaconda3/envs/PLA/include/python3.7m -c csrc/cpu/scatter_cpu.cpp -o build/temp.linux-x86_64-cpython-37/csrc/cpu/scatter_cpu.o -O3 -Wno-sign-compare -DAT_PARALLEL_OPENMP -fopenmp -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -DTORCH_EXTENSION_NAME=_scatter_cpu -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++
gcc -pthread -B /home/usrs/wangjuan/anaconda3/envs/PLA/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_PYTHON -Icsrc -I/home/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/site-packages/torch/include -I/home/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/site-packages/torch/include/TH -I/home/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/site-packages/torch/include/THC -I/home/usrs/wangjuan/anaconda3/envs/PLA/include/python3.7m -c csrc/scatter.cpp -o build/temp.linux-x86_64-cpython-37/csrc/scatter.o -O3 -Wno-sign-compare -DAT_PARALLEL_OPENMP -fopenmp -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -DTORCH_EXTENSION_NAME=_scatter_cpu -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++
g++ -pthread -B /home/usrs/wangjuan/anaconda3/envs/PLA/compiler_compat -Wl,--sysroot=/ -pthread -shared -B /home/usrs/wangjuan/anaconda3/envs/PLA/compiler_compat -L/home/usrs/wangjuan/anaconda3/envs/PLA/lib -Wl,-rpath=/home/usrs/wangjuan/anaconda3/envs/PLA/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-cpython-37/csrc/cpu/scatter_cpu.o build/temp.linux-x86_64-cpython-37/csrc/scatter.o -L/home/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/site-packages/torch/lib -lc10 -ltorch -ltorch_cpu -ltorch_python -o build/lib.linux-x86_64-cpython-37/torch_scatter/_scatter_cpu.so -s
building 'torch_scatter._scatter_cuda' extension
creating build/temp.linux-x86_64-cpython-37/csrc/cuda
gcc -pthread -B /home/usrs/wangjuan/anaconda3/envs/PLA/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_PYTHON -DWITH_CUDA -Icsrc -I/home/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/site-packages/torch/include -I/home/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/site-packages/torch/include/TH -I/home/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/usrs/wangjuan/anaconda3/envs/PLA/include/python3.7m -c csrc/cpu/scatter_cpu.cpp -o build/temp.linux-x86_64-cpython-37/csrc/cpu/scatter_cpu.o -O3 -Wno-sign-compare -DAT_PARALLEL_OPENMP -fopenmp -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -DTORCH_EXTENSION_NAME=_scatter_cuda -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++
/usr/local/cuda/bin/nvcc -DWITH_PYTHON -DWITH_CUDA -Icsrc -I/home/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/site-packages/torch/include -I/home/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/site-packages/torch/include/TH -I/home/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/usrs/wangjuan/anaconda3/envs/PLA/include/python3.7m -c csrc/cuda/scatter_cuda.cu -o build/temp.linux-x86_64-cpython-37/csrc/cuda/scatter_cuda.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' -O3 --expt-relaxed-constexpr -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -DTORCH_EXTENSION_NAME=_scatter_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
/home/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/site-packages/torch/include/ATen/core/builtin_function.h(110): warning #20236-D: pragma "diag_suppress" is deprecated, use "nv_diag_suppress" instead

/home/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/site-packages/torch/include/ATen/core/builtin_function.h(117): warning #20236-D: pragma "diag_default" is deprecated, use "nv_diag_default" instead

/home/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/site-packages/torch/include/ATen/core/builtin_function.h(110): warning #20236-D: pragma "diag_suppress" is deprecated, use "nv_diag_suppress" instead

/home/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/site-packages/torch/include/ATen/core/builtin_function.h(117): warning #20236-D: pragma "diag_default" is deprecated, use "nv_diag_default" instead

/home/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/site-packages/torch/include/ATen/core/builtin_function.h(110): warning #20236-D: pragma "diag_suppress" is deprecated, use "nv_diag_suppress" instead

/home/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/site-packages/torch/include/ATen/core/builtin_function.h(117): warning #20236-D: pragma "diag_default" is deprecated, use "nv_diag_default" instead

/home/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/site-packages/torch/include/ATen/core/builtin_function.h(110): warning #20236-D: pragma "diag_suppress" is deprecated, use "nv_diag_suppress" instead

/home/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/site-packages/torch/include/ATen/core/builtin_function.h(117): warning #20236-D: pragma "diag_default" is deprecated, use "nv_diag_default" instead

gcc -pthread -B /home/usrs/wangjuan/anaconda3/envs/PLA/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_PYTHON -DWITH_CUDA -Icsrc -I/home/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/site-packages/torch/include -I/home/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/site-packages/torch/include/TH -I/home/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/usrs/wangjuan/anaconda3/envs/PLA/include/python3.7m -c csrc/scatter.cpp -o build/temp.linux-x86_64-cpython-37/csrc/scatter.o -O3 -Wno-sign-compare -DAT_PARALLEL_OPENMP -fopenmp -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -DTORCH_EXTENSION_NAME=_scatter_cuda -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++
g++ -pthread -B /home/usrs/wangjuan/anaconda3/envs/PLA/compiler_compat -Wl,--sysroot=/ -pthread -shared -B /home/usrs/wangjuan/anaconda3/envs/PLA/compiler_compat -L/home/usrs/wangjuan/anaconda3/envs/PLA/lib -Wl,-rpath=/home/usrs/wangjuan/anaconda3/envs/PLA/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-cpython-37/csrc/cpu/scatter_cpu.o build/temp.linux-x86_64-cpython-37/csrc/cuda/scatter_cuda.o build/temp.linux-x86_64-cpython-37/csrc/scatter.o -L/home/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/site-packages/torch/lib -L/usr/local/cuda/lib64 -lc10 -ltorch -ltorch_cpu -ltorch_python -lcudart -lc10_cuda -ltorch_cuda_cu -ltorch_cuda_cpp -o build/lib.linux-x86_64-cpython-37/torch_scatter/_scatter_cuda.so -s
building 'torch_scatter._segment_coo_cpu' extension
gcc -pthread -B /home/usrs/wangjuan/anaconda3/envs/PLA/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_PYTHON -Icsrc -I/home/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/site-packages/torch/include -I/home/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/site-packages/torch/include/TH -I/home/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/site-packages/torch/include/THC -I/home/usrs/wangjuan/anaconda3/envs/PLA/include/python3.7m -c csrc/cpu/segment_coo_cpu.cpp -o build/temp.linux-x86_64-cpython-37/csrc/cpu/segment_coo_cpu.o -O3 -Wno-sign-compare -DAT_PARALLEL_OPENMP -fopenmp -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -DTORCH_EXTENSION_NAME=_segment_coo_cpu -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++
csrc/cpu/segment_coo_cpu.cpp:6:10: fatal error: ATen/OpMathType.h: No such file or directory
    6 | #include <ATen/OpMathType.h>
      |          ^~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command '/usr/bin/gcc' failed with exit code 1

You can check https://github.com/rusty1s/pytorch_scatter issues for installing problems. Besides, if you do not want to run instance segmentation and do not use scene caption (which is disabled in default configs), you can just comment all torch_scatter imports since it will not be used.

Thank you for your help！After many attempts, I finally managed to install it, and I'm putting my failures here. Hope it will help someone who needs it.

When an error like Segmentation fault (core dumped) is encountered, use python -X faulthandler train.py --cfg_file cfgs/scannet_models/spconv_clip_base15_caption_adamw.yaml to locate the error.

When you failed to install pytorch_scatter from source, try download from here and then run pip install torch_scatter-2.0.6-cp37-cp37m-linux_x86_64.whl directly.

When spconv import error is encountered,
like AttributeError: module 'spconv' has no attribute 'SparseConv3d',

>>> import spconv.pytorch as spconv
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'spconv.pytorch'

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/site-packages/spconv/pytorch/__init__.py", line 6, in <module>
    from spconv.pytorch.core import SparseConvTensor
  File "/home/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/site-packages/spconv/pytorch/core.py", line 21, in <module>
    from spconv.tools import CUDAKernelTimer
  File "/home/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/site-packages/spconv/tools.py", line 16, in <module>
    from spconv.cppconstants import CPU_ONLY_BUILD
  File "/home/usrs/wangjuan/anaconda3/envs/PLA/lib/python3.7/site-packages/spconv/cppconstants.py", line 15, in <module>
    import spconv.core_cc as _ext
ImportError: generic_type: cannot initialize type "GemmAlgoDesp": an object with that name is already defined

First, check the current version information pip list|grep -E "ccimport|pccm|spconv|torch|cumm".
Then, pip uninstall spconv or ccimport or cumm or pccm, and run pip install spconv-cu111, if you got
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
cumm 0.4.11 requires pccm>=0.4.2, but you have pccm 0.3.4 which is incompatible.

Just run pip install spconv-cu111 again.
Finally, run pip list|grep -E "ccimport|pccm|spconv|torch|cumm" , check version.
ccimport                0.3.7
cumm-cu111              0.2.9
pccm                    0.3.4
spconv-cu111            2.1.25
torch                   1.8.2
torch-scatter           2.0.6
torch-sparse            0.6.10
torchaudio              0.8.2
torchvision             0.9.2

Hello, as 3D repos always need to build some custom CUDA operator (torch-scatter, spconv, softgroups, etc), the match between torch and cuda version is important. I think the easiest solution for you is to re-install the CUDA to cuda-11.1 if your GPU support this version. I recommend you to re-install cuda to 11.1, and create a new conda environment to build this. I believe this should be more easy.

Thanks so much for your effort and experience! It means a lot to us.

My configurations are all the same as published by the author. I also meet this problem when runing python3 setup.py build_ext develop.
running build_ext
building 'softgroup_ops' extension
Emitting ninja build file /data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/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/3] /data/cw/software/cuda-11.3/bin/nvcc --generate-dependencies-with-compile --dependency-output /data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/build/temp.linux-x86_64-cpython-38/ops/src/cuda.o.d -I/data/anaconda3/envs/pt18/include/ -I/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include -I/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include/TH -I/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include/THC -I/data/cw/software/cuda-11.3/include -I/home/cw/anaconda3/envs/3D/include/python3.8 -c -c /data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/ops/src/cuda.cu -o /data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/build/temp.linux-x86_64-cpython-38/ops/src/cuda.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 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="gcc"' '-DPYBIND11_STDLIB="libstdcpp"' '-DPYBIND11_BUILD_ABI="cxxabi1011"' -DTORCH_EXTENSION_NAME=softgroup_ops -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
FAILED: /data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/build/temp.linux-x86_64-cpython-38/ops/src/cuda.o
/data/cw/software/cuda-11.3/bin/nvcc --generate-dependencies-with-compile --dependency-output /data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/build/temp.linux-x86_64-cpython-38/ops/src/cuda.o.d -I/data/anaconda3/envs/pt18/include/ -I/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include -I/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include/TH -I/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include/THC -I/data/cw/software/cuda-11.3/include -I/home/cw/anaconda3/envs/3D/include/python3.8 -c -c /data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/ops/src/cuda.cu -o /data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/build/temp.linux-x86_64-cpython-38/ops/src/cuda.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 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=softgroup_ops -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
In file included from /data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/ops/src/cuda.cu:1:
/data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/ops/src/datatype/datatype.h:5:10: fatal error: google/dense_hash_map: No such file or directory
5 | #include <google/dense_hash_map>
|          ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
[2/3] c++ -MMD -MF /data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/build/temp.linux-x86_64-cpython-38/ops/src/softgroup_api.o.d -pthread -B /home/cw/anaconda3/envs/3D/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/data/anaconda3/envs/pt18/include/ -I/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include -I/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include/TH -I/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include/THC -I/data/cw/software/cuda-11.3/include -I/home/cw/anaconda3/envs/3D/include/python3.8 -c -c /data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/ops/src/softgroup_api.cpp -o /data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/build/temp.linux-x86_64-cpython-38/ops/src/softgroup_api.o -g -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=softgroup_ops -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
FAILED: /data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/build/temp.linux-x86_64-cpython-38/ops/src/softgroup_api.o
c++ -MMD -MF /data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/build/temp.linux-x86_64-cpython-38/ops/src/softgroup_api.o.d -pthread -B /home/cw/anaconda3/envs/3D/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/data/anaconda3/envs/pt18/include/ -I/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include -I/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include/TH -I/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include/THC -I/data/cw/software/cuda-11.3/include -I/home/cw/anaconda3/envs/3D/include/python3.8 -c -c /data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/ops/src/softgroup_api.cpp -o /data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/build/temp.linux-x86_64-cpython-38/ops/src/softgroup_api.o -g -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=softgroup_ops -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from /home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include/ATen/Parallel.h:140,
from /home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3,
from /home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5,
from /home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3,
from /home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:13,
from /home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include/torch/extension.h:4,
from /data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/ops/src/softgroup_api.cpp:1:
/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include/ATen/ParallelOpenMP.h:83: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]
83 | #pragma omp parallel for if ((end - begin) >= grain_size)
|
In file included from /data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/ops/src/bfs_cluster/bfs_cluster.h:12,
from /data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/ops/src/softgroup_ops.h:3,
from /data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/ops/src/softgroup_api.cpp:4:
/data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/ops/src/bfs_cluster/../datatype/datatype.h:5:10: fatal error: google/dense_hash_map: No such file or directory
5 | #include <google/dense_hash_map>
|          ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
[3/3] c++ -MMD -MF /data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/build/temp.linux-x86_64-cpython-38/ops/src/softgroup_ops.o.d -pthread -B /home/cw/anaconda3/envs/3D/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/data/anaconda3/envs/pt18/include/ -I/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include -I/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include/TH -I/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include/THC -I/data/cw/software/cuda-11.3/include -I/home/cw/anaconda3/envs/3D/include/python3.8 -c -c /data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/ops/src/softgroup_ops.cpp -o /data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/build/temp.linux-x86_64-cpython-38/ops/src/softgroup_ops.o -g -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=softgroup_ops -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
FAILED: /data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/build/temp.linux-x86_64-cpython-38/ops/src/softgroup_ops.o
c++ -MMD -MF /data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/build/temp.linux-x86_64-cpython-38/ops/src/softgroup_ops.o.d -pthread -B /home/cw/anaconda3/envs/3D/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/data/anaconda3/envs/pt18/include/ -I/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include -I/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include/TH -I/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include/THC -I/data/cw/software/cuda-11.3/include -I/home/cw/anaconda3/envs/3D/include/python3.8 -c -c /data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/ops/src/softgroup_ops.cpp -o /data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/build/temp.linux-x86_64-cpython-38/ops/src/softgroup_ops.o -g -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=softgroup_ops -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from /home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include/ATen/Parallel.h:140,
from /home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3,
from /home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5,
from /home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3,
from /home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:13,
from /home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include/torch/extension.h:4,
from /data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/ops/src/softgroup_ops.cpp:3:
/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include/ATen/ParallelOpenMP.h:83: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]
83 | #pragma omp parallel for if ((end - begin) >= grain_size)
|
In file included from /data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/ops/src/bfs_cluster/bfs_cluster.h:12,
from /data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/ops/src/bfs_cluster/bfs_cluster.cpp:9,
from /data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/ops/src/softgroup_ops.cpp:5:
/data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/ops/src/bfs_cluster/../datatype/datatype.h:5:10: fatal error: google/dense_hash_map: No such file or directory
5 | #include <google/dense_hash_map>
|          ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1667, in _run_ninja_build
subprocess.run(
File "/home/cw/anaconda3/envs/3D/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 6, in
setup(
File "/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/setuptools/init.py", line 107, in setup
return distutils.core.setup(**attrs)
File "/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/setuptools/dist.py", line 1234, in run_command
super().run_command(command)
File "/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 84, in run
_build_ext.run(self)
File "/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 345, in run
self.build_extensions()
File "/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 708, in build_extensions
build_ext.build_extensions(self)
File "/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 467, in build_extensions
self._build_extensions_serial()
File "/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 493, in _build_extensions_serial
self.build_extension(ext)
File "/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 246, in build_extension
_build_ext.build_extension(self, ext)
File "/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 548, in build_extension
objects = self.compiler.compile(
File "/home/cw/anaconda3/envs/3D/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/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1354, in _write_ninja_file_and_compile_objects
_run_ninja_build(
File "/home/cw/anaconda3/envs/3D/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
Do you know how to solve it? Thank you very much.

Hi, do you install the dependent library before installing softgroup_ops? sudo apt-get install libsparsehash-dev (https://github.com/thangvubk/SoftGroup/blob/main/docs/installation.md.)

When I install libsparsehash-dev, it appears the following error:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libreoffice-core : Breaks: libreoffice-writer (< 1:6.4.7-0ubuntu<IP_ADDRESS>) but 1:6.4.7-0ubuntu<IP_ADDRESS> is to be installed
libreoffice-math : Depends: libreoffice-core (= 1:6.4.7-0ubuntu<IP_ADDRESS>) but 1:6.4.7-0ubuntu<IP_ADDRESS> is to be installed
libreoffice-writer : Depends: libreoffice-base-core (= 1:6.4.7-0ubuntu<IP_ADDRESS>) but 1:6.4.7-0ubuntu<IP_ADDRESS> is to be installed
Depends: libreoffice-core (= 1:6.4.7-0ubuntu<IP_ADDRESS>) but 1:6.4.7-0ubuntu<IP_ADDRESS> is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

Have you tried to run 'apt --fix-broken install'?

Besides, you can try install google-sparsehash from conda:
conda install -c bioconda google-sparsehash
export CPLUS_INCLUDE_PATH={conda_env_path}/softgroup/include:$CPLUS_INCLUDE_PATH
python setup.py build_ext develop

(https://github.com/thangvubk/SoftGroup/issues/179)

I have tried to run 'apt --fix-broken install', and it appears the following error:
(Reading database ... 122985 files and directories currently installed.)
Preparing to unpack .../libreoffice-math_1%3a6.4.7-0ubuntu<IP_ADDRESS>_amd64.deb ...
Unpacking libreoffice-math (1:6.4.7-0ubuntu<IP_ADDRESS>) over (1:6.4.7-0ubuntu<IP_ADDRESS>) ...
dpkg: error processing archive /var/cache/apt/archives/libreoffice-math_1%3a6.4.7-0ubuntu<IP_ADDRESS>_amd64.deb (--unpack):
trying to overwrite '/usr/lib/libreoffice/share/config/soffice.cfg/modules/smath/menubar/menubar.xml', which is also in package libreoffice-common 1:6.4.7-0ubuntu<IP_ADDRESS>
Preparing to unpack .../libreoffice-writer_1%3a6.4.7-0ubuntu<IP_ADDRESS>_amd64.deb ...
Unpacking libreoffice-writer (1:6.4.7-0ubuntu<IP_ADDRESS>) over (1:6.4.7-0ubuntu<IP_ADDRESS>) ...
dpkg: error processing archive /var/cache/apt/archives/libreoffice-writer_1%3a6.4.7-0ubuntu<IP_ADDRESS>_amd64.deb (--unpack):
trying to overwrite '/usr/lib/libreoffice/share/config/soffice.cfg/modules/sweb/menubar/menubar.xml', which is also in package libreoffice-common 1:6.4.7-0ubuntu<IP_ADDRESS>
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/libreoffice-math_1%3a6.4.7-0ubuntu<IP_ADDRESS>_amd64.deb
/var/cache/apt/archives/libreoffice-writer_1%3a6.4.7-0ubuntu<IP_ADDRESS>_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Besides, I have tried to install google-sparsehash from conda, which also appears error:
running build_ext
building 'softgroup_ops' extension
Emitting ninja build file /data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/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/3] /data/cw/software/cuda-11.3/bin/nvcc  -I/data/anaconda3/envs/pt18/include/ -I/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include -I/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include/TH -I/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include/THC -I/data/cw/software/cuda-11.3/include -I/home/cw/anaconda3/envs/3D/include/python3.8 -c -c /data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/ops/src/cuda.cu -o /data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/build/temp.linux-x86_64-cpython-38/ops/src/cuda.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 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="gcc"' '-DPYBIND11_STDLIB="libstdcpp"' '-DPYBIND11_BUILD_ABI="cxxabi1011"' -DTORCH_EXTENSION_NAME=softgroup_ops -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
FAILED: /data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/build/temp.linux-x86_64-cpython-38/ops/src/cuda.o
/data/cw/software/cuda-11.3/bin/nvcc  -I/data/anaconda3/envs/pt18/include/ -I/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include -I/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include/TH -I/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include/THC -I/data/cw/software/cuda-11.3/include -I/home/cw/anaconda3/envs/3D/include/python3.8 -c -c /data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/ops/src/cuda.cu -o /data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/build/temp.linux-x86_64-cpython-38/ops/src/cuda.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 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=softgroup_ops -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
In file included from /data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/ops/src/cuda.cu:1:
/data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/ops/src/datatype/datatype.h:5:10: fatal error: google/dense_hash_map: No such file or directory
5 | #include <google/dense_hash_map>
|          ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
[2/3] c++ -MMD -MF /data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/build/temp.linux-x86_64-cpython-38/ops/src/softgroup_api.o.d -pthread -B /home/cw/anaconda3/envs/3D/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/data/anaconda3/envs/pt18/include/ -I/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include -I/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include/TH -I/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include/THC -I/data/cw/software/cuda-11.3/include -I/home/cw/anaconda3/envs/3D/include/python3.8 -c -c /data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/ops/src/softgroup_api.cpp -o /data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/build/temp.linux-x86_64-cpython-38/ops/src/softgroup_api.o -g -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=softgroup_ops -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
FAILED: /data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/build/temp.linux-x86_64-cpython-38/ops/src/softgroup_api.o
c++ -MMD -MF /data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/build/temp.linux-x86_64-cpython-38/ops/src/softgroup_api.o.d -pthread -B /home/cw/anaconda3/envs/3D/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/data/anaconda3/envs/pt18/include/ -I/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include -I/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include/TH -I/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include/THC -I/data/cw/software/cuda-11.3/include -I/home/cw/anaconda3/envs/3D/include/python3.8 -c -c /data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/ops/src/softgroup_api.cpp -o /data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/build/temp.linux-x86_64-cpython-38/ops/src/softgroup_api.o -g -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=softgroup_ops -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from /data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/ops/src/bfs_cluster/bfs_cluster.h:12,
from /data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/ops/src/softgroup_ops.h:3,
from /data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/ops/src/softgroup_api.cpp:4:
/data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/ops/src/bfs_cluster/../datatype/datatype.h:5:10: fatal error: google/dense_hash_map: No such file or directory
5 | #include <google/dense_hash_map>
|          ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
[3/3] c++ -MMD -MF /data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/build/temp.linux-x86_64-cpython-38/ops/src/softgroup_ops.o.d -pthread -B /home/cw/anaconda3/envs/3D/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/data/anaconda3/envs/pt18/include/ -I/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include -I/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include/TH -I/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include/THC -I/data/cw/software/cuda-11.3/include -I/home/cw/anaconda3/envs/3D/include/python3.8 -c -c /data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/ops/src/softgroup_ops.cpp -o /data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/build/temp.linux-x86_64-cpython-38/ops/src/softgroup_ops.o -g -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=softgroup_ops -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
FAILED: /data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/build/temp.linux-x86_64-cpython-38/ops/src/softgroup_ops.o
c++ -MMD -MF /data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/build/temp.linux-x86_64-cpython-38/ops/src/softgroup_ops.o.d -pthread -B /home/cw/anaconda3/envs/3D/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/data/anaconda3/envs/pt18/include/ -I/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include -I/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include/TH -I/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/include/THC -I/data/cw/software/cuda-11.3/include -I/home/cw/anaconda3/envs/3D/include/python3.8 -c -c /data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/ops/src/softgroup_ops.cpp -o /data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/build/temp.linux-x86_64-cpython-38/ops/src/softgroup_ops.o -g -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=softgroup_ops -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from /data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/ops/src/bfs_cluster/bfs_cluster.h:12,
from /data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/ops/src/bfs_cluster/bfs_cluster.cpp:9,
from /data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/ops/src/softgroup_ops.cpp:5:
/data/cw/experiment/PLA/pcseg/external_libs/softgroup_ops/ops/src/bfs_cluster/../datatype/datatype.h:5:10: fatal error: google/dense_hash_map: No such file or directory
5 | #include <google/dense_hash_map>
|          ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1740, in _run_ninja_build
subprocess.run(
File "/home/cw/anaconda3/envs/3D/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 6, in
setup(
File "/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/setuptools/init.py", line 107, in setup
return distutils.core.setup(**attrs)
File "/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/setuptools/dist.py", line 1234, in run_command
super().run_command(command)
File "/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 84, in run
_build_ext.run(self)
File "/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 345, in run
self.build_extensions()
File "/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 741, in build_extensions
build_ext.build_extensions(self)
File "/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 467, in build_extensions
self._build_extensions_serial()
File "/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 493, in _build_extensions_serial
self.build_extension(ext)
File "/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 246, in build_extension
_build_ext.build_extension(self, ext)
File "/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 548, in build_extension
objects = self.compiler.compile(
File "/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 562, in unix_wrap_ninja_compile
_write_ninja_file_and_compile_objects(
File "/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1419, in _write_ninja_file_and_compile_objects
_run_ninja_build(
File "/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1756, in _run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error compiling objects for extension

It appears that the installation path cannot be located. You can try this:
export INCLUDE_PATH=/path/to/your/conda/env/include  # e.g. /home/ry/anaconda3/envs/pla/include
python setup.py build_ext --include-dirs=$INCLUDE_PATH

If the above steps do not resolve the issue, you can try manually adding the include-dirs=xxx line to your setup.py file.

When I run bash scripts/dist_train.sh 4 --cfg_file cfgs/scannet_models/spconv_clip_base15_caption_adamw.yaml --extra_tag exp_tag, the terminal displays the following content and freezes.

NGPUS=4

PY_ARGS='--cfg_file cfgs/scannet_models/spconv_clip_base15_caption_adamw.yaml --extra_tag exp_tag'

true

PORT=14425
++ nc -z <IP_ADDRESS> 14425
++ echo 1

status=1

'[' 1 '!=' 0 ']'

break

echo 14425
14425

ulimit -n 64000

python3 -m torch.distributed.launch --nproc_per_node=4 train.py --launcher pytorch --tcp_port 14425 --cfg_file cfgs/scannet_models/spconv_clip_base15_caption_adamw.yaml --extra_tag exp_tag
/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/distributed/launch.py:178: FutureWarning: The module torch.distributed.launch is deprecated
and will be removed in future. Use torchrun.
Note that --use_env is set by default in torchrun.
If your script expects --local_rank argument to be set, please
change it to read from os.environ['LOCAL_RANK'] instead. See
https://pytorch.org/docs/stable/distributed.html#launch-utility for
further instructions
warnings.warn(

The detailed error information is as the following:

NGPUS=4

PY_ARGS='--cfg_file cfgs/scannet_models/spconv_clip_base15_caption_adamw.yaml --extra_tag exp_tag'

true

PORT=12574
++ nc -z <IP_ADDRESS> 12574
++ echo 1

status=1

'[' 1 '!=' 0 ']'

break

echo 12574
12574

ulimit -n 64000

python3 -m torch.distributed.launch --nproc_per_node=4 train.py --launcher pytorch --tcp_port 12574 --cfg_file cfgs/scannet_models/spconv_clip_base15_caption_adamw.yaml --extra_tag exp_tag
/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/distributed/launch.py:178: FutureWarning: The module torch.distributed.launch is deprecated
and will be removed in future. Use torchrun.
Note that --use_env is set by default in torchrun.
If your script expects --local_rank argument to be set, please
change it to read from os.environ['LOCAL_RANK'] instead. See
https://pytorch.org/docs/stable/distributed.html#launch-utility for
further instructions
warnings.warn(
WARNING:torch.distributed.run:

Setting OMP_NUM_THREADS environment variable for each process to be 1 in default, to avoid your system being overloaded, please further tune the variable for optimal performance in your application as needed.

[E socket.cpp:793] [c10d] The client socket has timed out after 1800s while trying to connect to (<IP_ADDRESS>, 12574).
Traceback (most recent call last):
File "train.py", line 261, in
main()
File "train.py", line 87, in main
total_gpus, cfg.LOCAL_RANK = getattr(common_utils, 'init_dist_%s' % args.launcher)(
File "/data/cw/experiment/PLA/tools/../pcseg/utils/common_utils.py", line 182, in init_dist_pytorch
dist.init_process_group(
File "/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/distributed/distributed_c10d.py", line 595, in init_process_group
store, rank, world_size = next(rendezvous_iterator)
File "/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/distributed/rendezvous.py", line 186, in _tcp_rendezvous_handler
store = _create_c10d_store(result.hostname, result.port, rank, world_size, timeout)
File "/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/distributed/rendezvous.py", line 156, in create_c10d_store
tcp_store = TCPStore(hostname, port, world_size, False, timeout)
TimeoutError: The client socket has timed out after 1800s while trying to connect to (<IP_ADDRESS>, 12574).
[E socket.cpp:793] [c10d] The client socket has timed out after 1800s while trying to connect to (<IP_ADDRESS>, 12574).
Traceback (most recent call last):
File "train.py", line 261, in
main()
File "train.py", line 87, in main
total_gpus, cfg.LOCAL_RANK = getattr(common_utils, 'init_dist%s' % args.launcher)(
File "/data/cw/experiment/PLA/tools/../pcseg/utils/common_utils.py", line 182, in init_dist_pytorch
dist.init_process_group(
File "/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/distributed/distributed_c10d.py", line 595, in init_process_group
store, rank, world_size = next(rendezvous_iterator)
File "/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/distributed/rendezvous.py", line 186, in _tcp_rendezvous_handler
store = _create_c10d_store(result.hostname, result.port, rank, world_size, timeout)
File "/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/distributed/rendezvous.py", line 156, in create_c10d_store
tcp_store = TCPStore(hostname, port, world_size, False, timeout)
TimeoutError: The client socket has timed out after 1800s while trying to connect to (<IP_ADDRESS>, 12574).
[E socket.cpp:793] [c10d] The client socket has timed out after 1800s while trying to connect to (<IP_ADDRESS>, 12574).
Traceback (most recent call last):
File "train.py", line 261, in
main()
File "train.py", line 87, in main
total_gpus, cfg.LOCAL_RANK = getattr(common_utils, 'init_dist%s' % args.launcher)(
File "/data/cw/experiment/PLA/tools/../pcseg/utils/common_utils.py", line 182, in init_dist_pytorch
dist.init_process_group(
File "/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/distributed/distributed_c10d.py", line 595, in init_process_group
store, rank, world_size = next(rendezvous_iterator)
File "/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/distributed/rendezvous.py", line 186, in _tcp_rendezvous_handler
store = _create_c10d_store(result.hostname, result.port, rank, world_size, timeout)
File "/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/distributed/rendezvous.py", line 156, in create_c10d_store
tcp_store = TCPStore(hostname, port, world_size, False, timeout)
TimeoutError: The client socket has timed out after 1800s while trying to connect to (<IP_ADDRESS>, 12574).
[E socket.cpp:793] [c10d] The client socket has timed out after 1800s while trying to connect to (<IP_ADDRESS>, 12574).
Traceback (most recent call last):
File "train.py", line 261, in
main()
File "train.py", line 87, in main
total_gpus, cfg.LOCAL_RANK = getattr(common_utils, 'init_dist%s' % args.launcher)(
File "/data/cw/experiment/PLA/tools/../pcseg/utils/common_utils.py", line 182, in init_dist_pytorch
dist.init_process_group(
File "/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/distributed/distributed_c10d.py", line 595, in init_process_group
store, rank, world_size = next(rendezvous_iterator)
File "/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/distributed/rendezvous.py", line 186, in _tcp_rendezvous_handler
store = _create_c10d_store(result.hostname, result.port, rank, world_size, timeout)
File "/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/distributed/rendezvous.py", line 156, in _create_c10d_store
tcp_store = TCPStore(hostname, port, world_size, False, timeout)
TimeoutError: The client socket has timed out after 1800s while trying to connect to (<IP_ADDRESS>, 12574).
ERROR:torch.distributed.elastic.multiprocessing.api:failed (exitcode: 1) local_rank: 0 (pid: 3669030) of binary: /home/cw/anaconda3/envs/3D/bin/python3
Traceback (most recent call last):
File "/home/cw/anaconda3/envs/3D/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/home/cw/anaconda3/envs/3D/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/distributed/launch.py", line 193, in
main()
File "/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/distributed/launch.py", line 189, in main
launch(args)
File "/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/distributed/launch.py", line 174, in launch
run(args)
File "/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/distributed/run.py", line 715, in run
elastic_launch(
File "/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/distributed/launcher/api.py", line 131, in call
return launch_agent(self._config, self._entrypoint, list(args))
File "/home/cw/anaconda3/envs/3D/lib/python3.8/site-packages/torch/distributed/launcher/api.py", line 245, in launch_agent
raise ChildFailedError(
torch.distributed.elastic.multiprocessing.errors.ChildFailedError:
train.py FAILED
Failures:
[1]:
time      : 2023-09-04_10:10:23
host      : ubuntu
rank      : 1 (local_rank: 1)
exitcode  : 1 (pid: 3669031)
error_file: <N/A>
traceback : To enable traceback see: https://pytorch.org/docs/stable/elastic/errors.html
[2]:
time      : 2023-09-04_10:10:23
host      : ubuntu
rank      : 2 (local_rank: 2)
exitcode  : 1 (pid: 3669032)
error_file: <N/A>
traceback : To enable traceback see: https://pytorch.org/docs/stable/elastic/errors.html
[3]:
time      : 2023-09-04_10:10:23
host      : ubuntu
rank      : 3 (local_rank: 3)
exitcode  : 1 (pid: 3669033)
error_file: <N/A>
traceback : To enable traceback see: https://pytorch.org/docs/stable/elastic/errors.html
Root Cause (first observed failure):
[0]:
time      : 2023-09-04_10:10:23
host      : ubuntu
rank      : 0 (local_rank: 0)
exitcode  : 1 (pid: 3669030)
error_file: <N/A>
traceback : To enable traceback see: https://pytorch.org/docs/stable/elastic/errors.html


Upgrade merge to version 1.2.1 or later.

It appears you have a downstream dependency on a vulnerable package merge. Please refer to my detailed issue on a a more upstream project. The issue was flagged automatically on my GitHub repository as a "high severity" alert.
https://github.com/fuse-box/fuse-box/issues/1427

Closing this as it is likely only a versioning issue with the fuse-box version I am referencing.

Re-opening, as I believe this could be fixed by upgrading your dependency exec-sh from  0.2.0 to 0.3.2. That latest version seems not to depend on merge at all now.

@forgo try deleting your package-lock.json and node_modules folder, then run npm install again.

I can confirm that deleting package.json and node_modules and then running npm install works to upgrade merge to 1.2.1.


Terrain Layer picking

Target Use case

Simple point elevation retrieval by picking mesh position.
Use picked point with controller to rotate around picked point instead of z=0.

Proposed feature
I was looking through simple-mesh-layer.js and noticed that it supports returning position through picking:
https://github.com/uber/deck.gl/blob/4e1c12cfd1e0b6f9bb8e2091dddd95e2313d05aa/modules/mesh-layers/src/simple-mesh-layer/simple-mesh-layer.js#L130-L147
I experimented setting pickable: true on the mesh website example, and it appears to expose an object like:
{
    "object": {
        "position": [60, 180],
        "color": [141.66666666666669, 128, 170],
        "orientation": [3.3333333333333357, 0, -90]
    }
}

Here, position is returned as a 2D coordinate. Is that specific to that mesh example? I.e. if position could be returned as a 3D coordinate corresponding to a point on the face of the terrain mesh, that would be a simple way to get point elevation data.
To Do List

[ ] Add label and assign to milestone
[ ] Coding
[ ] Doc update
[ ] What’s new update
[ ] Test

You'll need to call deck.pickObject yourself with unproject3D: true.

Works well, thanks!


[Question]: Where to enter captcha? (and also 2FA)

Ask your question
I need some help how to enter the captcha. Also 2FA would be required, although I just disabled 2FA for now.
I have confirmed I can log into the mobile app with my account. I get these log entries:
2024-09-27 16:41:26.634	INFO	eufy-security-ws:eufy-security-client	[main] [EufySecurity._initializeInternals] Authentication properties changed, invalidate saved cloud token.
2024-09-27 16:41:28.120	INFO	eufy-security-ws	Eufy Security server listening on host <IP_ADDRESS>, port 3000
2024-09-27 16:41:28.270	INFO	eufy-security-ws:eufy-security-client	[http] [HTTPApi.login] Please send requested captcha to proceed with authentication
but I do not get any captcha question in HomeAssistant. Neither in the browser, nor in the mobile app. Nothing in HomeAssistant->Settings.
a comment in #320 suggested to change the
password in the mobile app to trigger such a question. I did this, but also no success.
I have installed eufy-security-ws v1.9.0 in HomeAssistant core 2024.9.3.
thanks for hints, suggestions, ....

Wrong Repo.
Ask here.

thanks for the hint!


Update User.php to cleanup identity cookie

If "login" is called in "User.php" with a new identity and $duration = 0 while a user is already logged in with $duration > 0, then the current user's identity cookie is not cleaned up.
I would like to implement an "impersonate user" function what allows an admin to be logged in as any user without having to enter a password.  If the admin is logged in with "remember me" checked, when login is called without "remember me", the admin's identity cookie is not removed.

Is it possible to unit-test it?

should be possible: https://github.com/yiisoft/yii2/blob/master/tests/framework/web/UserTest.php

@maine-mike would you take care of unit tests?

Yes.

I wrote a unit test that fails without this fix and passes with this fix.  I added it to the existing UserTest.php unit test as part of this pull request.  Was that the right thing to do?
I couldn't find a clear example of how to mock cookies for the unit test so I made my own.
Thank you.

Great. Thank you.

Merged. Thanks!

Dears,
Kindly look at this scenario:

enableAutoLogin ==> true
autoRenewCookie ==> false
session ==> Database
logged in to the system.
new session row added.
after some idle time (no action on the webpage) the database session row is garbage OR if i delete the session row directly from table
refresh webpage.
still logged in. because the cookie is exist.
after refresh, the identityCookie is not exist
try refresh again. ==> logout (no cookie to login)

this happen because you are add this change
Thanks,

Please report as separate issue. Thanks.

@ajoudeh please open a new issue for that.


Console Commands not working on 1.18

As the title states, console commands are not working on 1.18, no idea why. I've tried many things. I've also found inconsistencies with the playsound flag, seemingly working at random.

This is my region's flag config. Notice the string from the playsound flag, and how it should be doing a broadcast/say command from console upon entry and exit. None of those are currently working.

Same here did you find a fix?

Whats the fix?


Make line::StateMachine covariant wrt R

This is a breaking change for readers with Offset != usize. Not keen on doing this, but I don't know a better way to get variance...

Coverage remained the same at 84.804% when pulling 2ef0fb1fe92e74d187e49ba977a28e5d48c14270 on philipc:statemachine-variance into 45f4f34c7aaa9cc73eb7202941f62e6215d37cff on gimli-rs:master.

The motivation is to allow StateMachine<MyReader<'a>> be passed to something that takes StateMachine<MyReader<'b>> where 'a: 'b, correct?
Can we add a simple test case that will fail to compile if that is not the case?
Otherwise LGTM, unless I am misunderstanding something.

Correct. I've added a test case.

Correct. I've added a test case.

Thanks!


libsqlite3-sys: Doesn't find libsqlite3.so in /usr/local/bin

I'm on openbsd and noticed libsqlite3-sys is not able to detect the library from the sqlite3 package, the build just fails with ld: cannot find -lsqlite3
I'm able to build regardless with SQLITE3_LIB_DIR=/usr/local/lib cargo build
pkg-config is able to pick it up:
$ pkg-config --libs sqlite3
-L/usr/local/lib -lsqlite3

Could you please try to tweak this line:
https://github.com/jgallagher/rusqlite/blob/master/libsqlite3-sys/build.rs#L133
            .print_system_libs(false)

Or try to trace the error:
https://github.com/jgallagher/rusqlite/blob/master/libsqlite3-sys/build.rs#L144
            Err(e) => {
                eprintln!("{:?}", e);
                // ...
            }

?

This seems to be my fault. I was trying to figure out all dependencies needed by trail and error so /usr/local/lib/libsqlite3* didn't exist while libsqlite3-sys was building.
It seems the pkg-config results are cached until libsqlite3-sys is rebuilt.
Sorry for the noise.


I have used kappa metric provided here and getting a near zero values for complete disagreement instead of -1. Am i missing something?

x = np.array([0,3,2,4,0,2,0,4,3,0,2])
y = np.array([2,1,3,2,3,4,2,1,4,3,1])
print (kappa(x,y,min_rating = 0, max_rating = 4))

[complete disagreement]
-0.18627450980392224

That is not what complete disagreement means for cohen's kappa.
kappa doesn't look at disagreement in the individual ratings, but it looks at the disagreement in various levels/classes.
In your example, a rating disagreement for a rated item (class 0 vs class 2 for the first rated item, class 3 vs class 1 in the second rated item, etc) is not used in calculating kappa. Instead, it'll look at how many ratings are there in class 0, class 1, class 2, etc for each of the raters (x and y), and then it'll calculate kappa from that.
Note: ml-metrics's deduction of min_rating and max_rating is wrong (in kappa()). So you should supply that yourself if you are using the function. scikit-learn's implementation is better written - https://github.com/scikit-learn/scikit-learn/blob/14031f6/sklearn/metrics/classification.py#L278 .
import numpy as np
from ml_metrics import kappa
from sklearn.metrics import cohen_kappa_score

x = np.array([0,3,2,4,0,2,0,4,3,0,2])
y = np.array([2,1,3,2,3,4,2,1,4,3,1])

a = kappa(x, y, min_rating = 0, max_rating = 4)
b = kappa(x, y)
c = cohen_kappa_score(x,y)

print(a)
print(b)
print(c)

Thanks. I am closing the issue


Don't throw on 404 for policy set definition get

This checklist is used to make sure that common issues in a pull request are addressed. This will expedite the process of getting your pull request merged and avoid extra work on your part to fix issues discovered during the review process.
PR information

[x] The title of the PR is clear and informative.
[x] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For information on cleaning up the commits in your pull request, see this page.
[x] Except for special cases involving multiple contributors, the PR is started from a fork of the main repository, not a branch.
[ ] If applicable, the PR references the bug/issue that it fixes.
[x] Swagger files are correctly named (e.g. the api-version in the path should match the api-version in the spec).

Quality of Swagger

[x] I have read the contribution guidelines.
[x] My spec meets the review criteria:

[x] The spec conforms to the Swagger 2.0 specification.
[x] The spec follows the guidelines described in the Swagger checklist document.
[x] Validation tools were run on swagger spec(s) and have all been fixed in this PR.

No modification for AutorestCI/azure-sdk-for-node

 https://github.com/Azure/azure-sdk-for-ruby/pull/991

 https://github.com/Azure/azure-sdk-for-python/pull/1458