z-x-yang / Segment-and-Track-Anything

An open-source project dedicated to tracking and segmenting any objects in videos, either automatically or interactively. The primary algorithms utilized include the Segment Anything Model (SAM) for key-frame segmentation and Associating Objects with Transformers (AOT) for efficient tracking and propagation purposes.
GNU Affero General Public License v3.0
2.83k stars 340 forks source link

环境太难配了!!!!! #71

Closed mayuelala closed 1 year ago

mayuelala commented 1 year ago

大哥,你这个环境也太难配了吧,pytorch 版本、torchvision版本都没提,一句相似就带过去了,真的踩坑无数啊!!!!

z-x-yang commented 1 year ago

We have supplied a script to install all the requirements directly. Did you try bash script/install.sh to use the script?

mayuelala commented 1 year ago

Yes ,I have tried it . However , I don't know the CUDA version,

Obtaining GroundingDINO from git+https://github.com/IDEA-Research/GroundingDINO.git@main#egg=GroundingDINO Updating ./src/groundingdino clone (to revision main) Running command git fetch -q --tags Running command git reset --hard -q 6c27bc76b9c7252c201e0b8c680d7349a7a0aaf8 Preparing metadata (setup.py) ... done Requirement already satisfied: torch in /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages (from GroundingDINO) (1.7.1+cu110) Requirement already satisfied: torchvision in /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages (from GroundingDINO) (0.8.2+cu110) Requirement already satisfied: transformers in /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages (from GroundingDINO) (4.30.2) Requirement already satisfied: addict in /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages (from GroundingDINO) (2.4.0) Requirement already satisfied: yapf in /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages (from GroundingDINO) (0.40.1) Requirement already satisfied: timm in /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages (from GroundingDINO) (0.9.2) Requirement already satisfied: numpy in /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages (from GroundingDINO) (1.25.0) Requirement already satisfied: opencv-python in /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages (from GroundingDINO) (4.8.0.74) Requirement already satisfied: supervision==0.6.0 in /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages (from GroundingDINO) (0.6.0) Requirement already satisfied: pycocotools in /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages (from GroundingDINO) (2.0.6) Requirement already satisfied: matplotlib in /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages (from supervision==0.6.0->GroundingDINO) (3.7.1) Requirement already satisfied: pyyaml in /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages (from timm->GroundingDINO) (6.0) Requirement already satisfied: huggingface-hub in /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages (from timm->GroundingDINO) (0.15.1) Requirement already satisfied: safetensors in /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages (from timm->GroundingDINO) (0.3.1) Requirement already satisfied: typing-extensions in /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages (from torch->GroundingDINO) (4.6.3) Requirement already satisfied: pillow>=4.1.1 in /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages (from torchvision->GroundingDINO) (9.4.0) Requirement already satisfied: filelock in /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages (from transformers->GroundingDINO) (3.12.2) Requirement already satisfied: packaging>=20.0 in /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages (from transformers->GroundingDINO) (23.1) Requirement already satisfied: regex!=2019.12.17 in /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages (from transformers->GroundingDINO) (2023.6.3) Requirement already satisfied: requests in /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages (from transformers->GroundingDINO) (2.29.0) Requirement already satisfied: tokenizers!=0.11.3,<0.14,>=0.11.1 in /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages (from transformers->GroundingDINO) (0.13.3) Requirement already satisfied: tqdm>=4.27 in /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages (from transformers->GroundingDINO) (4.65.0) Requirement already satisfied: importlib-metadata>=6.6.0 in /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages (from yapf->GroundingDINO) (6.7.0) Requirement already satisfied: platformdirs>=3.5.1 in /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages (from yapf->GroundingDINO) (3.8.0) Requirement already satisfied: tomli>=2.0.1 in /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages (from yapf->GroundingDINO) (2.0.1) Requirement already satisfied: fsspec in /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages (from huggingface-hub->timm->GroundingDINO) (2023.6.0) Requirement already satisfied: zipp>=0.5 in /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages (from importlib-metadata>=6.6.0->yapf->GroundingDINO) (3.15.0) Requirement already satisfied: contourpy>=1.0.1 in /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages (from matplotlib->supervision==0.6.0->GroundingDINO) (1.1.0) Requirement already satisfied: cycler>=0.10 in /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages (from matplotlib->supervision==0.6.0->GroundingDINO) (0.11.0) Requirement already satisfied: fonttools>=4.22.0 in /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages (from matplotlib->supervision==0.6.0->GroundingDINO) (4.40.0) Requirement already satisfied: kiwisolver>=1.0.1 in /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages (from matplotlib->supervision==0.6.0->GroundingDINO) (1.4.4) Requirement already satisfied: pyparsing>=2.3.1 in /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages (from matplotlib->supervision==0.6.0->GroundingDINO) (3.1.0) Requirement already satisfied: python-dateutil>=2.7 in /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages (from matplotlib->supervision==0.6.0->GroundingDINO) (2.8.2) Requirement already satisfied: importlib-resources>=3.2.0 in /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages (from matplotlib->supervision==0.6.0->GroundingDINO) (5.12.0) Requirement already satisfied: charset-normalizer<4,>=2 in /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages (from requests->transformers->GroundingDINO) (2.0.4) Requirement already satisfied: idna<4,>=2.5 in /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages (from requests->transformers->GroundingDINO) (3.4) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages (from requests->transformers->GroundingDINO) (1.26.16) Requirement already satisfied: certifi>=2017.4.17 in /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages (from requests->transformers->GroundingDINO) (2023.5.7) Requirement already satisfied: six>=1.5 in /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages (from python-dateutil>=2.7->matplotlib->supervision==0.6.0->GroundingDINO) (1.16.0) Installing collected packages: GroundingDINO Running setup.py develop for GroundingDINO error: subprocess-exited-with-error

× python setup.py develop did not run successfully.
│ exit code: 1
╰─> [166 lines of output]
    Building wheel groundingdino-0.1.0
    Compiling with CUDA
    running develop
    /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/setuptools/command/develop.py:40: EasyInstallDeprecationWarning: easy_install command is deprecated.
    !!

            ********************************************************************************
            Please avoid running ``setup.py`` and ``easy_install``.
            Instead, use pypa/build, pypa/installer, pypa/build or
            other standards-based tools.

            See https://github.com/pypa/setuptools/issues/917 for details.
            ********************************************************************************

    !!
      easy_install.initialize_options(self)
    /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
    !!

            ********************************************************************************
            Please avoid running ``setup.py`` directly.
            Instead, use pypa/build, pypa/installer, pypa/build or
            other standards-based tools.

            See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
            ********************************************************************************

    !!
      self.initialize_options()
    running egg_info
    writing groundingdino.egg-info/PKG-INFO
    writing dependency_links to groundingdino.egg-info/dependency_links.txt
    writing requirements to groundingdino.egg-info/requires.txt
    writing top-level names to groundingdino.egg-info/top_level.txt
    reading manifest file 'groundingdino.egg-info/SOURCES.txt'
    adding license file 'LICENSE'
    writing manifest file 'groundingdino.egg-info/SOURCES.txt'
    running build_ext
    building 'groundingdino._C' extension
    Emitting ninja build file /home/mayue/Segment-and-Track-Anything/src/groundingdino/build/temp.linux-x86_64-cpython-39/build.ninja...
    Compiling objects...
    Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
    [1/4] /home/mayue/cuda-11.0/bin/nvcc -DWITH_CUDA -I/home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc -I/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include -I/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/TH -I/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/THC -I/home/mayue/cuda-11.0/include -I/home/mayue/miniconda3/envs/samt/include/python3.9 -c -c /home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.cu -o /home/mayue/Segment-and-Track-Anything/src/groundingdino/build/temp.linux-x86_64-cpython-39/home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -DCUDA_HAS_FP16=1 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=sm_86 -std=c++14
    FAILED: /home/mayue/Segment-and-Track-Anything/src/groundingdino/build/temp.linux-x86_64-cpython-39/home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.o
    /home/mayue/cuda-11.0/bin/nvcc -DWITH_CUDA -I/home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc -I/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include -I/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/TH -I/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/THC -I/home/mayue/cuda-11.0/include -I/home/mayue/miniconda3/envs/samt/include/python3.9 -c -c /home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.cu -o /home/mayue/Segment-and-Track-Anything/src/groundingdino/build/temp.linux-x86_64-cpython-39/home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -DCUDA_HAS_FP16=1 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=sm_86 -std=c++14
    nvcc fatal   : Unsupported gpu architecture 'compute_86'
    [2/4] /home/mayue/cuda-11.0/bin/nvcc -DWITH_CUDA -I/home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc -I/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include -I/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/TH -I/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/THC -I/home/mayue/cuda-11.0/include -I/home/mayue/miniconda3/envs/samt/include/python3.9 -c -c /home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/cuda_version.cu -o /home/mayue/Segment-and-Track-Anything/src/groundingdino/build/temp.linux-x86_64-cpython-39/home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/cuda_version.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -DCUDA_HAS_FP16=1 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=sm_86 -std=c++14
    FAILED: /home/mayue/Segment-and-Track-Anything/src/groundingdino/build/temp.linux-x86_64-cpython-39/home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/cuda_version.o
    /home/mayue/cuda-11.0/bin/nvcc -DWITH_CUDA -I/home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc -I/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include -I/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/TH -I/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/THC -I/home/mayue/cuda-11.0/include -I/home/mayue/miniconda3/envs/samt/include/python3.9 -c -c /home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/cuda_version.cu -o /home/mayue/Segment-and-Track-Anything/src/groundingdino/build/temp.linux-x86_64-cpython-39/home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/cuda_version.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -DCUDA_HAS_FP16=1 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=sm_86 -std=c++14
    nvcc fatal   : Unsupported gpu architecture 'compute_86'
    [3/4] c++ -MMD -MF /home/mayue/Segment-and-Track-Anything/src/groundingdino/build/temp.linux-x86_64-cpython-39/home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cpu.o.d -pthread -B /home/mayue/miniconda3/envs/samt/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/mayue/miniconda3/envs/samt/include -I/home/mayue/miniconda3/envs/samt/include -fPIC -O2 -isystem /home/mayue/miniconda3/envs/samt/include -fPIC -DWITH_CUDA -I/home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc -I/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include -I/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/TH -I/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/THC -I/home/mayue/cuda-11.0/include -I/home/mayue/miniconda3/envs/samt/include/python3.9 -c -c /home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cpu.cpp -o /home/mayue/Segment-and-Track-Anything/src/groundingdino/build/temp.linux-x86_64-cpython-39/home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
    [4/4] c++ -MMD -MF /home/mayue/Segment-and-Track-Anything/src/groundingdino/build/temp.linux-x86_64-cpython-39/home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/vision.o.d -pthread -B /home/mayue/miniconda3/envs/samt/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/mayue/miniconda3/envs/samt/include -I/home/mayue/miniconda3/envs/samt/include -fPIC -O2 -isystem /home/mayue/miniconda3/envs/samt/include -fPIC -DWITH_CUDA -I/home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc -I/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include -I/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/TH -I/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/THC -I/home/mayue/cuda-11.0/include -I/home/mayue/miniconda3/envs/samt/include/python3.9 -c -c /home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/vision.cpp -o /home/mayue/Segment-and-Track-Anything/src/groundingdino/build/temp.linux-x86_64-cpython-39/home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/vision.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
    In file included from /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/ATen/Parallel.h:149,
                     from /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3,
                     from /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5,
                     from /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3,
                     from /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/torch/csrc/api/include/torch/all.h:12,
                     from /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/torch/extension.h:4,
                     from /home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cpu.h:12,
                     from /home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn.h:13,
                     from /home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/vision.cpp:3:
    /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/ATen/ParallelOpenMP.h:84: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]
     #pragma omp parallel for if ((end - begin) >= grain_size)

    In file included from /home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/vision.cpp:3:
    /home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn.h: In function ‘at::Tensor groundingdino::ms_deform_attn_forward(const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, int)’:
    /home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn.h:30:20: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
         if (value.type().is_cuda())
                        ^
    In file included from /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/ATen/Tensor.h:3,
                     from /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/ATen/Context.h:4,
                     from /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/ATen/ATen.h:9,
                     from /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                     from /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                     from /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                     from /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                     from /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                     from /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                     from /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
                     from /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/torch/extension.h:4,
                     from /home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cpu.h:12,
                     from /home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn.h:13,
                     from /home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/vision.cpp:3:
    /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/ATen/core/TensorBody.h:277:30: note: declared here
       DeprecatedTypeProperties & type() const {
                                  ^~~~
    In file included from /home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/vision.cpp:3:
    /home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn.h: In function ‘std::vector<at::Tensor> groundingdino::ms_deform_attn_backward(const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, int)’:
    /home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn.h:52:20: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
         if (value.type().is_cuda())
                        ^
    In file included from /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/ATen/Tensor.h:3,
                     from /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/ATen/Context.h:4,
                     from /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/ATen/ATen.h:9,
                     from /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                     from /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                     from /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                     from /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                     from /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                     from /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                     from /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
                     from /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/torch/extension.h:4,
                     from /home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cpu.h:12,
                     from /home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn.h:13,
                     from /home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/vision.cpp:3:
    /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/ATen/core/TensorBody.h:277:30: note: declared here
       DeprecatedTypeProperties & type() const {
                                  ^~~~
    ninja: build stopped: subcommand failed.
    Traceback (most recent call last):
      File "/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 1533, in _run_ninja_build
        subprocess.run(
      File "/home/mayue/miniconda3/envs/samt/lib/python3.9/subprocess.py", line 528, 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 "<string>", line 2, in <module>
      File "<pip-setuptools-caller>", line 34, in <module>
      File "/home/mayue/Segment-and-Track-Anything/src/groundingdino/setup.py", line 192, in <module>
        setup(
      File "/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/setuptools/__init__.py", line 107, in setup
        return distutils.core.setup(**attrs)
      File "/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 185, in setup
        return run_commands(dist)
      File "/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
        dist.run_commands()
      File "/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
        self.run_command(cmd)
      File "/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/setuptools/dist.py", line 1244, in run_command
        super().run_command(command)
      File "/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
        cmd_obj.run()
      File "/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/setuptools/command/develop.py", line 34, in run
        self.install_for_development()
      File "/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/setuptools/command/develop.py", line 115, in install_for_development
        self.run_command('build_ext')
      File "/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
        self.distribution.run_command(command)
      File "/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/setuptools/dist.py", line 1244, in run_command
        super().run_command(command)
      File "/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
        cmd_obj.run()
      File "/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/setuptools/command/build_ext.py", line 84, in run
        _build_ext.run(self)
      File "/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 345, in run
        self.build_extensions()
      File "/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 670, in build_extensions
        build_ext.build_extensions(self)
      File "/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 467, in build_extensions
        self._build_extensions_serial()
      File "/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 493, in _build_extensions_serial
        self.build_extension(ext)
      File "/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/setuptools/command/build_ext.py", line 246, in build_extension
        _build_ext.build_extension(self, ext)
      File "/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 548, in build_extension
        objects = self.compiler.compile(
      File "/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 491, in unix_wrap_ninja_compile
        _write_ninja_file_and_compile_objects(
      File "/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 1250, in _write_ninja_file_and_compile_objects
        _run_ninja_build(
      File "/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 1555, in _run_ninja_build
        raise RuntimeError(message) from e
    RuntimeError: Error compiling objects for extension
    [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.

error: subprocess-exited-with-error

× python setup.py develop did not run successfully. │ exit code: 1 ╰─> [166 lines of output] Building wheel groundingdino-0.1.0 Compiling with CUDA running develop /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/setuptools/command/develop.py:40: EasyInstallDeprecationWarning: easy_install command is deprecated. !!

        ********************************************************************************
        Please avoid running ``setup.py`` and ``easy_install``.
        Instead, use pypa/build, pypa/installer, pypa/build or
        other standards-based tools.

        See https://github.com/pypa/setuptools/issues/917 for details.
        ********************************************************************************

!!
  easy_install.initialize_options(self)
/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` directly.
        Instead, use pypa/build, pypa/installer, pypa/build or
        other standards-based tools.

        See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
        ********************************************************************************

!!
  self.initialize_options()
running egg_info
writing groundingdino.egg-info/PKG-INFO
writing dependency_links to groundingdino.egg-info/dependency_links.txt
writing requirements to groundingdino.egg-info/requires.txt
writing top-level names to groundingdino.egg-info/top_level.txt
reading manifest file 'groundingdino.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'groundingdino.egg-info/SOURCES.txt'
running build_ext
building 'groundingdino._C' extension
Emitting ninja build file /home/mayue/Segment-and-Track-Anything/src/groundingdino/build/temp.linux-x86_64-cpython-39/build.ninja...
Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
[1/4] /home/mayue/cuda-11.0/bin/nvcc -DWITH_CUDA -I/home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc -I/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include -I/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/TH -I/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/THC -I/home/mayue/cuda-11.0/include -I/home/mayue/miniconda3/envs/samt/include/python3.9 -c -c /home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.cu -o /home/mayue/Segment-and-Track-Anything/src/groundingdino/build/temp.linux-x86_64-cpython-39/home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -DCUDA_HAS_FP16=1 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=sm_86 -std=c++14
FAILED: /home/mayue/Segment-and-Track-Anything/src/groundingdino/build/temp.linux-x86_64-cpython-39/home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.o
/home/mayue/cuda-11.0/bin/nvcc -DWITH_CUDA -I/home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc -I/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include -I/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/TH -I/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/THC -I/home/mayue/cuda-11.0/include -I/home/mayue/miniconda3/envs/samt/include/python3.9 -c -c /home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.cu -o /home/mayue/Segment-and-Track-Anything/src/groundingdino/build/temp.linux-x86_64-cpython-39/home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -DCUDA_HAS_FP16=1 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=sm_86 -std=c++14
nvcc fatal   : Unsupported gpu architecture 'compute_86'
[2/4] /home/mayue/cuda-11.0/bin/nvcc -DWITH_CUDA -I/home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc -I/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include -I/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/TH -I/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/THC -I/home/mayue/cuda-11.0/include -I/home/mayue/miniconda3/envs/samt/include/python3.9 -c -c /home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/cuda_version.cu -o /home/mayue/Segment-and-Track-Anything/src/groundingdino/build/temp.linux-x86_64-cpython-39/home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/cuda_version.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -DCUDA_HAS_FP16=1 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=sm_86 -std=c++14
FAILED: /home/mayue/Segment-and-Track-Anything/src/groundingdino/build/temp.linux-x86_64-cpython-39/home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/cuda_version.o
/home/mayue/cuda-11.0/bin/nvcc -DWITH_CUDA -I/home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc -I/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include -I/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/TH -I/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/THC -I/home/mayue/cuda-11.0/include -I/home/mayue/miniconda3/envs/samt/include/python3.9 -c -c /home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/cuda_version.cu -o /home/mayue/Segment-and-Track-Anything/src/groundingdino/build/temp.linux-x86_64-cpython-39/home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/cuda_version.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -DCUDA_HAS_FP16=1 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=sm_86 -std=c++14
nvcc fatal   : Unsupported gpu architecture 'compute_86'
[3/4] c++ -MMD -MF /home/mayue/Segment-and-Track-Anything/src/groundingdino/build/temp.linux-x86_64-cpython-39/home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cpu.o.d -pthread -B /home/mayue/miniconda3/envs/samt/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/mayue/miniconda3/envs/samt/include -I/home/mayue/miniconda3/envs/samt/include -fPIC -O2 -isystem /home/mayue/miniconda3/envs/samt/include -fPIC -DWITH_CUDA -I/home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc -I/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include -I/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/TH -I/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/THC -I/home/mayue/cuda-11.0/include -I/home/mayue/miniconda3/envs/samt/include/python3.9 -c -c /home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cpu.cpp -o /home/mayue/Segment-and-Track-Anything/src/groundingdino/build/temp.linux-x86_64-cpython-39/home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
[4/4] c++ -MMD -MF /home/mayue/Segment-and-Track-Anything/src/groundingdino/build/temp.linux-x86_64-cpython-39/home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/vision.o.d -pthread -B /home/mayue/miniconda3/envs/samt/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/mayue/miniconda3/envs/samt/include -I/home/mayue/miniconda3/envs/samt/include -fPIC -O2 -isystem /home/mayue/miniconda3/envs/samt/include -fPIC -DWITH_CUDA -I/home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc -I/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include -I/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/TH -I/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/THC -I/home/mayue/cuda-11.0/include -I/home/mayue/miniconda3/envs/samt/include/python3.9 -c -c /home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/vision.cpp -o /home/mayue/Segment-and-Track-Anything/src/groundingdino/build/temp.linux-x86_64-cpython-39/home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/vision.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
In file included from /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/ATen/Parallel.h:149,
                 from /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3,
                 from /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5,
                 from /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3,
                 from /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/torch/csrc/api/include/torch/all.h:12,
                 from /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/torch/extension.h:4,
                 from /home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cpu.h:12,
                 from /home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn.h:13,
                 from /home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/vision.cpp:3:
/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/ATen/ParallelOpenMP.h:84: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]
 #pragma omp parallel for if ((end - begin) >= grain_size)

In file included from /home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/vision.cpp:3:
/home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn.h: In function ‘at::Tensor groundingdino::ms_deform_attn_forward(const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, int)’:
/home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn.h:30:20: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
     if (value.type().is_cuda())
                    ^
In file included from /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/ATen/Tensor.h:3,
                 from /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/ATen/Context.h:4,
                 from /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/ATen/ATen.h:9,
                 from /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                 from /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                 from /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                 from /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                 from /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                 from /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                 from /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
                 from /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/torch/extension.h:4,
                 from /home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cpu.h:12,
                 from /home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn.h:13,
                 from /home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/vision.cpp:3:
/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/ATen/core/TensorBody.h:277:30: note: declared here
   DeprecatedTypeProperties & type() const {
                              ^~~~
In file included from /home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/vision.cpp:3:
/home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn.h: In function ‘std::vector<at::Tensor> groundingdino::ms_deform_attn_backward(const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, int)’:
/home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn.h:52:20: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
     if (value.type().is_cuda())
                    ^
In file included from /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/ATen/Tensor.h:3,
                 from /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/ATen/Context.h:4,
                 from /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/ATen/ATen.h:9,
                 from /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                 from /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                 from /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                 from /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                 from /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                 from /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                 from /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
                 from /home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/torch/extension.h:4,
                 from /home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cpu.h:12,
                 from /home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn.h:13,
                 from /home/mayue/Segment-and-Track-Anything/src/groundingdino/groundingdino/models/GroundingDINO/csrc/vision.cpp:3:
/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/include/ATen/core/TensorBody.h:277:30: note: declared here
   DeprecatedTypeProperties & type() const {
                              ^~~~
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
  File "/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 1533, in _run_ninja_build
    subprocess.run(
  File "/home/mayue/miniconda3/envs/samt/lib/python3.9/subprocess.py", line 528, 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 "<string>", line 2, in <module>
  File "<pip-setuptools-caller>", line 34, in <module>
  File "/home/mayue/Segment-and-Track-Anything/src/groundingdino/setup.py", line 192, in <module>
    setup(
  File "/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/setuptools/__init__.py", line 107, in setup
    return distutils.core.setup(**attrs)
  File "/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 185, in setup
    return run_commands(dist)
  File "/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
    dist.run_commands()
  File "/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
    self.run_command(cmd)
  File "/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/setuptools/dist.py", line 1244, in run_command
    super().run_command(command)
  File "/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
    cmd_obj.run()
  File "/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/setuptools/command/develop.py", line 34, in run
    self.install_for_development()
  File "/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/setuptools/command/develop.py", line 115, in install_for_development
    self.run_command('build_ext')
  File "/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
    self.distribution.run_command(command)
  File "/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/setuptools/dist.py", line 1244, in run_command
    super().run_command(command)
  File "/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
    cmd_obj.run()
  File "/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/setuptools/command/build_ext.py", line 84, in run
    _build_ext.run(self)
  File "/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 345, in run
    self.build_extensions()
  File "/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 670, in build_extensions
    build_ext.build_extensions(self)
  File "/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 467, in build_extensions
    self._build_extensions_serial()
  File "/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 493, in _build_extensions_serial
    self.build_extension(ext)
  File "/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/setuptools/command/build_ext.py", line 246, in build_extension
    _build_ext.build_extension(self, ext)
  File "/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 548, in build_extension
    objects = self.compiler.compile(
  File "/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 491, in unix_wrap_ninja_compile
    _write_ninja_file_and_compile_objects(
  File "/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 1250, in _write_ninja_file_and_compile_objects
    _run_ninja_build(
  File "/home/mayue/miniconda3/envs/samt/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 1555, in _run_ninja_build
    raise RuntimeError(message) from e
RuntimeError: Error compiling objects for extension
[end of output]