Open IronmanVsThanos opened 12 months ago
(Grounding-DINO) hx@FitServer-R4200-V5:/mnt/sda1/Deep_learning/code/GroundingDINO-main$ pip install -e . Obtaining file:///mnt/sda1/Deep_learning/code/GroundingDINO-main Preparing metadata (setup.py) ... done Requirement already satisfied: torch in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from groundingdino==0.1.0) (1.10.0+cu113) Requirement already satisfied: torchvision in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from groundingdino==0.1.0) (0.11.1+cu113) Requirement already satisfied: transformers in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from groundingdino==0.1.0) (4.34.0) Requirement already satisfied: addict in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from groundingdino==0.1.0) (2.4.0) Requirement already satisfied: yapf in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from groundingdino==0.1.0) (0.40.2) Requirement already satisfied: timm in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from groundingdino==0.1.0) (0.9.7) Requirement already satisfied: numpy in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from groundingdino==0.1.0) (1.24.4) Requirement already satisfied: opencv-python in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from groundingdino==0.1.0) (4.8.1.78) Requirement already satisfied: supervision==0.6.0 in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from groundingdino==0.1.0) (0.6.0) Requirement already satisfied: pycocotools in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from groundingdino==0.1.0) (2.0.7) Requirement already satisfied: matplotlib in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from supervision==0.6.0->groundingdino==0.1.0) (3.7.3) Requirement already satisfied: pyyaml in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from timm->groundingdino==0.1.0) (6.0.1) Requirement already satisfied: huggingface-hub in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from timm->groundingdino==0.1.0) (0.16.4) Requirement already satisfied: safetensors in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from timm->groundingdino==0.1.0) (0.3.3) Requirement already satisfied: typing-extensions in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from torch->groundingdino==0.1.0) (4.8.0) Requirement already satisfied: pillow!=8.3.0,>=5.3.0 in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from torchvision->groundingdino==0.1.0) (10.0.1) Requirement already satisfied: filelock in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from transformers->groundingdino==0.1.0) (3.12.4) Requirement already satisfied: packaging>=20.0 in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from transformers->groundingdino==0.1.0) (23.2) Requirement already satisfied: regex!=2019.12.17 in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from transformers->groundingdino==0.1.0) (2023.10.3) Requirement already satisfied: requests in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from transformers->groundingdino==0.1.0) (2.31.0) Requirement already satisfied: tokenizers<0.15,>=0.14 in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from transformers->groundingdino==0.1.0) (0.14.0) Requirement already satisfied: tqdm>=4.27 in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from transformers->groundingdino==0.1.0) (4.66.1) Requirement already satisfied: importlib-metadata>=6.6.0 in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from yapf->groundingdino==0.1.0) (6.8.0) Requirement already satisfied: platformdirs>=3.5.1 in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from yapf->groundingdino==0.1.0) (3.11.0) Requirement already satisfied: tomli>=2.0.1 in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from yapf->groundingdino==0.1.0) (2.0.1) Requirement already satisfied: fsspec in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from huggingface-hub->timm->groundingdino==0.1.0) (2023.9.2) Requirement already satisfied: zipp>=0.5 in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from importlib-metadata>=6.6.0->yapf->groundingdino==0.1.0) (3.17.0) Requirement already satisfied: contourpy>=1.0.1 in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from matplotlib->supervision==0.6.0->groundingdino==0.1.0) (1.1.1) Requirement already satisfied: cycler>=0.10 in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from matplotlib->supervision==0.6.0->groundingdino==0.1.0) (0.12.0) Requirement already satisfied: fonttools>=4.22.0 in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from matplotlib->supervision==0.6.0->groundingdino==0.1.0) (4.43.0) Requirement already satisfied: kiwisolver>=1.0.1 in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from matplotlib->supervision==0.6.0->groundingdino==0.1.0) (1.4.5) Requirement already satisfied: pyparsing>=2.3.1 in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from matplotlib->supervision==0.6.0->groundingdino==0.1.0) (3.1.1) Requirement already satisfied: python-dateutil>=2.7 in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from matplotlib->supervision==0.6.0->groundingdino==0.1.0) (2.8.2) Requirement already satisfied: importlib-resources>=3.2.0 in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from matplotlib->supervision==0.6.0->groundingdino==0.1.0) (6.1.0) Requirement already satisfied: charset-normalizer<4,>=2 in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from requests->transformers->groundingdino==0.1.0) (3.3.0) Requirement already satisfied: idna<4,>=2.5 in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from requests->transformers->groundingdino==0.1.0) (3.4) Requirement already satisfied: urllib3<3,>=1.21.1 in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from requests->transformers->groundingdino==0.1.0) (2.0.6) Requirement already satisfied: certifi>=2017.4.17 in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from requests->transformers->groundingdino==0.1.0) (2023.7.22) Requirement already satisfied: six>=1.5 in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from python-dateutil>=2.7->matplotlib->supervision==0.6.0->groundingdino==0.1.0) (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 ╰─> [85 lines of output] fatal: not a git repository (or any parent up to mount point /mnt) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). Building wheel groundingdino-0.1.0 Compiling with CUDA running develop 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 gcc -pthread -B /home/hx/anaconda3/envs/Grounding-DINO/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/mnt/sda1/Deep_learning/code/GroundingDINO-main/groundingdino/models/GroundingDINO/csrc -I/home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages/torch/include -I/home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages/torch/include/TH -I/home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages/torch/include/THC -I/home/hx/anaconda3/envs/Grounding-DINO/include/python3.8 -c /mnt/sda1/Deep_learning/code/GroundingDINO-main/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cpu.cpp -o build/temp.linux-x86_64-cpython-38/mnt/sda1/Deep_learning/code/GroundingDINO-main/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 cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ /usr/bin/nvcc -DWITH_CUDA -I/mnt/sda1/Deep_learning/code/GroundingDINO-main/groundingdino/models/GroundingDINO/csrc -I/home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages/torch/include -I/home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages/torch/include/TH -I/home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages/torch/include/THC -I/home/hx/anaconda3/envs/Grounding-DINO/include/python3.8 -c /mnt/sda1/Deep_learning/code/GroundingDINO-main/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.cu -o build/temp.linux-x86_64-cpython-38/mnt/sda1/Deep_learning/code/GroundingDINO-main/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_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' -DCUDA_HAS_FP16=1 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DCUDA_HOST_COMPILER=/usr/bin/gcc-5 -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=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 /mnt/sda1/Deep_learning/code/GroundingDINO-main/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_im2col_cuda.cuh(261): warning #177-D: variable "q_col" was declared but never referenced detected during instantiation of "void ms_deformable_im2col_cuda(cudaStream_t, const scalar_t *, const int64_t *, const int64_t *, const scalar_t *, const scalar_t *, int, int, int, int, int, int, int, scalar_t *) [with scalar_t=double]" /mnt/sda1/Deep_learning/code/GroundingDINO-main/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.cu(65): here /mnt/sda1/Deep_learning/code/GroundingDINO-main/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_im2col_cuda.cuh(762): warning #177-D: variable "q_col" was declared but never referenced detected during instantiation of "void ms_deformable_col2im_cuda(cudaStream_t, const scalar_t *, const scalar_t *, const int64_t *, const int64_t *, const scalar_t *, const scalar_t *, int, int, int, int, int, int, int, scalar_t *, scalar_t *, scalar_t *) [with scalar_t=double]" /mnt/sda1/Deep_learning/code/GroundingDINO-main/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.cu(135): here /mnt/sda1/Deep_learning/code/GroundingDINO-main/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_im2col_cuda.cuh(872): warning #177-D: variable "q_col" was declared but never referenced detected during instantiation of "void ms_deformable_col2im_cuda(cudaStream_t, const scalar_t *, const scalar_t *, const int64_t *, const int64_t *, const scalar_t *, const scalar_t *, int, int, int, int, int, int, int, scalar_t *, scalar_t *, scalar_t *) [with scalar_t=double]" /mnt/sda1/Deep_learning/code/GroundingDINO-main/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.cu(135): here /mnt/sda1/Deep_learning/code/GroundingDINO-main/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_im2col_cuda.cuh(331): warning #177-D: variable "q_col" was declared but never referenced detected during instantiation of "void ms_deformable_col2im_cuda(cudaStream_t, const scalar_t *, const scalar_t *, const int64_t *, const int64_t *, const scalar_t *, const scalar_t *, int, int, int, int, int, int, int, scalar_t *, scalar_t *, scalar_t *) [with scalar_t=double]" /mnt/sda1/Deep_learning/code/GroundingDINO-main/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.cu(135): here /mnt/sda1/Deep_learning/code/GroundingDINO-main/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_im2col_cuda.cuh(436): warning #177-D: variable "q_col" was declared but never referenced detected during instantiation of "void ms_deformable_col2im_cuda(cudaStream_t, const scalar_t *, const scalar_t *, const int64_t *, const int64_t *, const scalar_t *, const scalar_t *, int, int, int, int, int, int, int, scalar_t *, scalar_t *, scalar_t *) [with scalar_t=double]" /mnt/sda1/Deep_learning/code/GroundingDINO-main/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.cu(135): here /mnt/sda1/Deep_learning/code/GroundingDINO-main/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_im2col_cuda.cuh(544): warning #177-D: variable "q_col" was declared but never referenced detected during instantiation of "void ms_deformable_col2im_cuda(cudaStream_t, const scalar_t *, const scalar_t *, const int64_t *, const int64_t *, const scalar_t *, const scalar_t *, int, int, int, int, int, int, int, scalar_t *, scalar_t *, scalar_t *) [with scalar_t=double]" /mnt/sda1/Deep_learning/code/GroundingDINO-main/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.cu(135): here /mnt/sda1/Deep_learning/code/GroundingDINO-main/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_im2col_cuda.cuh(649): warning #177-D: variable "q_col" was declared but never referenced detected during instantiation of "void ms_deformable_col2im_cuda(cudaStream_t, const scalar_t *, const scalar_t *, const int64_t *, const int64_t *, const scalar_t *, const scalar_t *, int, int, int, int, int, int, int, scalar_t *, scalar_t *, scalar_t *) [with scalar_t=double]" /mnt/sda1/Deep_learning/code/GroundingDINO-main/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.cu(135): here /usr/include/c++/11/bits/std_function.h:435:145: error: parameter packs not expanded with ‘...’: 435 | function(_Functor&& __f) | ^ /usr/include/c++/11/bits/std_function.h:435:145: note: ‘_ArgTypes’ /usr/include/c++/11/bits/std_function.h:530:146: error: parameter packs not expanded with ‘...’: 530 | operator=(_Functor&& __f) | ^ /usr/include/c++/11/bits/std_function.h:530:146: note: ‘_ArgTypes’ /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/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 or other standards-based tools. See https://github.com/pypa/setuptools/issues/917 for details. ******************************************************************************** !! easy_install.initialize_options(self) /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/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 or other standards-based tools. See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. ******************************************************************************** !! self.initialize_options() /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages/torch/utils/cpp_extension.py:381: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend. warnings.warn(msg.format('we could not find ninja.')) /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages/torch/utils/cpp_extension.py:782: UserWarning: The detected CUDA version (11.5) has a minor version mismatch with the version that was used to compile PyTorch (11.3). Most likely this shouldn't be a problem. warnings.warn(CUDA_MISMATCH_WARN.format(cuda_str_version, torch.version.cuda)) error: command '/usr/bin/nvcc' failed with exit code 1 [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 ╰─> [85 lines of output] fatal: not a git repository (or any parent up to mount point /mnt) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). Building wheel groundingdino-0.1.0 Compiling with CUDA running develop 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 gcc -pthread -B /home/hx/anaconda3/envs/Grounding-DINO/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/mnt/sda1/Deep_learning/code/GroundingDINO-main/groundingdino/models/GroundingDINO/csrc -I/home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages/torch/include -I/home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages/torch/include/TH -I/home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages/torch/include/THC -I/home/hx/anaconda3/envs/Grounding-DINO/include/python3.8 -c /mnt/sda1/Deep_learning/code/GroundingDINO-main/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cpu.cpp -o build/temp.linux-x86_64-cpython-38/mnt/sda1/Deep_learning/code/GroundingDINO-main/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 cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ /usr/bin/nvcc -DWITH_CUDA -I/mnt/sda1/Deep_learning/code/GroundingDINO-main/groundingdino/models/GroundingDINO/csrc -I/home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages/torch/include -I/home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages/torch/include/TH -I/home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages/torch/include/THC -I/home/hx/anaconda3/envs/Grounding-DINO/include/python3.8 -c /mnt/sda1/Deep_learning/code/GroundingDINO-main/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.cu -o build/temp.linux-x86_64-cpython-38/mnt/sda1/Deep_learning/code/GroundingDINO-main/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options '-fPIC' -DCUDA_HAS_FP16=1 -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -D__CUDA_NO_HALF2_OPERATORS__ -DCUDA_HOST_COMPILER=/usr/bin/gcc-5 -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=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 /mnt/sda1/Deep_learning/code/GroundingDINO-main/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_im2col_cuda.cuh(261): warning #177-D: variable "q_col" was declared but never referenced detected during instantiation of "void ms_deformable_im2col_cuda(cudaStream_t, const scalar_t , const int64_t , const int64_t , const scalar_t , const scalar_t , int, int, int, int, int, int, int, scalar_t ) [with scalar_t=double]" /mnt/sda1/Deep_learning/code/GroundingDINO-main/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.cu(65): here
/mnt/sda1/Deep_learning/code/GroundingDINO-main/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_im2col_cuda.cuh(762): warning #177-D: variable "q_col" was declared but never referenced detected during instantiation of "void ms_deformable_col2im_cuda(cudaStream_t, const scalar_t *, const scalar_t *, const int64_t *, const int64_t *, const scalar_t *, const scalar_t *, int, int, int, int, int, int, int, scalar_t *, scalar_t *, scalar_t *) [with scalar_t=double]" /mnt/sda1/Deep_learning/code/GroundingDINO-main/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.cu(135): here /mnt/sda1/Deep_learning/code/GroundingDINO-main/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_im2col_cuda.cuh(872): warning #177-D: variable "q_col" was declared but never referenced detected during instantiation of "void ms_deformable_col2im_cuda(cudaStream_t, const scalar_t *, const scalar_t *, const int64_t *, const int64_t *, const scalar_t *, const scalar_t *, int, int, int, int, int, int, int, scalar_t *, scalar_t *, scalar_t *) [with scalar_t=double]" /mnt/sda1/Deep_learning/code/GroundingDINO-main/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.cu(135): here /mnt/sda1/Deep_learning/code/GroundingDINO-main/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_im2col_cuda.cuh(331): warning #177-D: variable "q_col" was declared but never referenced detected during instantiation of "void ms_deformable_col2im_cuda(cudaStream_t, const scalar_t *, const scalar_t *, const int64_t *, const int64_t *, const scalar_t *, const scalar_t *, int, int, int, int, int, int, int, scalar_t *, scalar_t *, scalar_t *) [with scalar_t=double]" /mnt/sda1/Deep_learning/code/GroundingDINO-main/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.cu(135): here /mnt/sda1/Deep_learning/code/GroundingDINO-main/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_im2col_cuda.cuh(436): warning #177-D: variable "q_col" was declared but never referenced detected during instantiation of "void ms_deformable_col2im_cuda(cudaStream_t, const scalar_t *, const scalar_t *, const int64_t *, const int64_t *, const scalar_t *, const scalar_t *, int, int, int, int, int, int, int, scalar_t *, scalar_t *, scalar_t *) [with scalar_t=double]" /mnt/sda1/Deep_learning/code/GroundingDINO-main/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.cu(135): here /mnt/sda1/Deep_learning/code/GroundingDINO-main/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_im2col_cuda.cuh(544): warning #177-D: variable "q_col" was declared but never referenced detected during instantiation of "void ms_deformable_col2im_cuda(cudaStream_t, const scalar_t *, const scalar_t *, const int64_t *, const int64_t *, const scalar_t *, const scalar_t *, int, int, int, int, int, int, int, scalar_t *, scalar_t *, scalar_t *) [with scalar_t=double]" /mnt/sda1/Deep_learning/code/GroundingDINO-main/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.cu(135): here /mnt/sda1/Deep_learning/code/GroundingDINO-main/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_im2col_cuda.cuh(649): warning #177-D: variable "q_col" was declared but never referenced detected during instantiation of "void ms_deformable_col2im_cuda(cudaStream_t, const scalar_t *, const scalar_t *, const int64_t *, const int64_t *, const scalar_t *, const scalar_t *, int, int, int, int, int, int, int, scalar_t *, scalar_t *, scalar_t *) [with scalar_t=double]" /mnt/sda1/Deep_learning/code/GroundingDINO-main/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.cu(135): here /usr/include/c++/11/bits/std_function.h:435:145: error: parameter packs not expanded with ‘...’: 435 | function(_Functor&& __f) | ^ /usr/include/c++/11/bits/std_function.h:435:145: note: ‘_ArgTypes’ /usr/include/c++/11/bits/std_function.h:530:146: error: parameter packs not expanded with ‘...’: 530 | operator=(_Functor&& __f) | ^ /usr/include/c++/11/bits/std_function.h:530:146: note: ‘_ArgTypes’ /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/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 or other standards-based tools. See https://github.com/pypa/setuptools/issues/917 for details. ******************************************************************************** !! easy_install.initialize_options(self) /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/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 or other standards-based tools. See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. ******************************************************************************** !! self.initialize_options() /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages/torch/utils/cpp_extension.py:381: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend. warnings.warn(msg.format('we could not find ninja.')) /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages/torch/utils/cpp_extension.py:782: UserWarning: The detected CUDA version (11.5) has a minor version mismatch with the version that was used to compile PyTorch (11.3). Most likely this shouldn't be a problem. warnings.warn(CUDA_MISMATCH_WARN.format(cuda_str_version, torch.version.cuda)) error: command '/usr/bin/nvcc' failed with exit code 1 [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
When running pip install -e . error: command '/usr/bin/nvcc' failed with exit code 1, tried many ways but no solution. I don't know what to do.
Has the problem been solved? I have the same problem.
I have the same problem too(
same, have you solved it ,bro
(Grounding-DINO) hx@FitServer-R4200-V5:/mnt/sda1/Deep_learning/code/GroundingDINO-main$ pip install -e . Obtaining file:///mnt/sda1/Deep_learning/code/GroundingDINO-main Preparing metadata (setup.py) ... done Requirement already satisfied: torch in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from groundingdino==0.1.0) (1.10.0+cu113) Requirement already satisfied: torchvision in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from groundingdino==0.1.0) (0.11.1+cu113) Requirement already satisfied: transformers in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from groundingdino==0.1.0) (4.34.0) Requirement already satisfied: addict in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from groundingdino==0.1.0) (2.4.0) Requirement already satisfied: yapf in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from groundingdino==0.1.0) (0.40.2) Requirement already satisfied: timm in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from groundingdino==0.1.0) (0.9.7) Requirement already satisfied: numpy in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from groundingdino==0.1.0) (1.24.4) Requirement already satisfied: opencv-python in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from groundingdino==0.1.0) (4.8.1.78) Requirement already satisfied: supervision==0.6.0 in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from groundingdino==0.1.0) (0.6.0) Requirement already satisfied: pycocotools in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from groundingdino==0.1.0) (2.0.7) Requirement already satisfied: matplotlib in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from supervision==0.6.0->groundingdino==0.1.0) (3.7.3) Requirement already satisfied: pyyaml in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from timm->groundingdino==0.1.0) (6.0.1) Requirement already satisfied: huggingface-hub in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from timm->groundingdino==0.1.0) (0.16.4) Requirement already satisfied: safetensors in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from timm->groundingdino==0.1.0) (0.3.3) Requirement already satisfied: typing-extensions in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from torch->groundingdino==0.1.0) (4.8.0) Requirement already satisfied: pillow!=8.3.0,>=5.3.0 in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from torchvision->groundingdino==0.1.0) (10.0.1) Requirement already satisfied: filelock in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from transformers->groundingdino==0.1.0) (3.12.4) Requirement already satisfied: packaging>=20.0 in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from transformers->groundingdino==0.1.0) (23.2) Requirement already satisfied: regex!=2019.12.17 in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from transformers->groundingdino==0.1.0) (2023.10.3) Requirement already satisfied: requests in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from transformers->groundingdino==0.1.0) (2.31.0) Requirement already satisfied: tokenizers<0.15,>=0.14 in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from transformers->groundingdino==0.1.0) (0.14.0) Requirement already satisfied: tqdm>=4.27 in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from transformers->groundingdino==0.1.0) (4.66.1) Requirement already satisfied: importlib-metadata>=6.6.0 in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from yapf->groundingdino==0.1.0) (6.8.0) Requirement already satisfied: platformdirs>=3.5.1 in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from yapf->groundingdino==0.1.0) (3.11.0) Requirement already satisfied: tomli>=2.0.1 in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from yapf->groundingdino==0.1.0) (2.0.1) Requirement already satisfied: fsspec in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from huggingface-hub->timm->groundingdino==0.1.0) (2023.9.2) Requirement already satisfied: zipp>=0.5 in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from importlib-metadata>=6.6.0->yapf->groundingdino==0.1.0) (3.17.0) Requirement already satisfied: contourpy>=1.0.1 in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from matplotlib->supervision==0.6.0->groundingdino==0.1.0) (1.1.1) Requirement already satisfied: cycler>=0.10 in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from matplotlib->supervision==0.6.0->groundingdino==0.1.0) (0.12.0) Requirement already satisfied: fonttools>=4.22.0 in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from matplotlib->supervision==0.6.0->groundingdino==0.1.0) (4.43.0) Requirement already satisfied: kiwisolver>=1.0.1 in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from matplotlib->supervision==0.6.0->groundingdino==0.1.0) (1.4.5) Requirement already satisfied: pyparsing>=2.3.1 in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from matplotlib->supervision==0.6.0->groundingdino==0.1.0) (3.1.1) Requirement already satisfied: python-dateutil>=2.7 in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from matplotlib->supervision==0.6.0->groundingdino==0.1.0) (2.8.2) Requirement already satisfied: importlib-resources>=3.2.0 in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from matplotlib->supervision==0.6.0->groundingdino==0.1.0) (6.1.0) Requirement already satisfied: charset-normalizer<4,>=2 in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from requests->transformers->groundingdino==0.1.0) (3.3.0) Requirement already satisfied: idna<4,>=2.5 in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from requests->transformers->groundingdino==0.1.0) (3.4) Requirement already satisfied: urllib3<3,>=1.21.1 in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from requests->transformers->groundingdino==0.1.0) (2.0.6) Requirement already satisfied: certifi>=2017.4.17 in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from requests->transformers->groundingdino==0.1.0) (2023.7.22) Requirement already satisfied: six>=1.5 in /home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages (from python-dateutil>=2.7->matplotlib->supervision==0.6.0->groundingdino==0.1.0) (1.16.0) Installing collected packages: groundingdino Running setup.py develop for groundingdino error: subprocess-exited-with-error
error: subprocess-exited-with-error
× python setup.py develop did not run successfully. │ exit code: 1 ╰─> [85 lines of output] fatal: not a git repository (or any parent up to mount point /mnt) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). Building wheel groundingdino-0.1.0 Compiling with CUDA running develop 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 gcc -pthread -B /home/hx/anaconda3/envs/Grounding-DINO/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/mnt/sda1/Deep_learning/code/GroundingDINO-main/groundingdino/models/GroundingDINO/csrc -I/home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages/torch/include -I/home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages/torch/include/TH -I/home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages/torch/include/THC -I/home/hx/anaconda3/envs/Grounding-DINO/include/python3.8 -c /mnt/sda1/Deep_learning/code/GroundingDINO-main/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cpu.cpp -o build/temp.linux-x86_64-cpython-38/mnt/sda1/Deep_learning/code/GroundingDINO-main/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 cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ /usr/bin/nvcc -DWITH_CUDA -I/mnt/sda1/Deep_learning/code/GroundingDINO-main/groundingdino/models/GroundingDINO/csrc -I/home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages/torch/include -I/home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages/torch/include/TH -I/home/hx/anaconda3/envs/Grounding-DINO/lib/python3.8/site-packages/torch/include/THC -I/home/hx/anaconda3/envs/Grounding-DINO/include/python3.8 -c /mnt/sda1/Deep_learning/code/GroundingDINO-main/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.cu -o build/temp.linux-x86_64-cpython-38/mnt/sda1/Deep_learning/code/GroundingDINO-main/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options '-fPIC' -DCUDA_HAS_FP16=1 -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -D__CUDA_NO_HALF2_OPERATORS__ -DCUDA_HOST_COMPILER=/usr/bin/gcc-5 -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=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 /mnt/sda1/Deep_learning/code/GroundingDINO-main/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_im2col_cuda.cuh(261): warning #177-D: variable "q_col" was declared but never referenced detected during instantiation of "void ms_deformable_im2col_cuda(cudaStream_t, const scalar_t , const int64_t , const int64_t , const scalar_t , const scalar_t , int, int, int, int, int, int, int, scalar_t ) [with scalar_t=double]" /mnt/sda1/Deep_learning/code/GroundingDINO-main/groundingdino/models/GroundingDINO/csrc/MsDeformAttn/ms_deform_attn_cuda.cu(65): here
note: This error originates from a subprocess, and is likely not a problem with pip.
When running pip install -e . error: command '/usr/bin/nvcc' failed with exit code 1, tried many ways but no solution. I don't know what to do.