IDEA-Research / GroundingDINO

[ECCV 2024] Official implementation of the paper "Grounding DINO: Marrying DINO with Grounded Pre-Training for Open-Set Object Detection"
https://arxiv.org/abs/2303.05499
Apache License 2.0
5.59k stars 590 forks source link

Building Wheels for Groundingdino Failed #210

Open azizmojil opened 10 months ago

azizmojil commented 10 months ago

Error:

Building wheels for collected packages: lang-sam, groundingdino
  Building editable for lang-sam (pyproject.toml) ... done
  Created wheel for lang-sam: filename=lang_sam-0.1.0-py3-none-any.whl size=6713 sha256=91449e36e144bd99996e0926f244fde4ef16122825a69f6ae72958a3958d681c
  Stored in directory: C:\Users\azizm\AppData\Local\Temp\pip-ephem-wheel-cache-cmeazywj\wheels\63\7c\b3\b8da049cb1ad16ff56aec3a06c825034bee650e4c8a0ec3e84
  Building wheel for groundingdino (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [500 lines of output]
      Building wheel groundingdino-0.1.0
      Compiling with CUDA
      running bdist_wheel
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\utils\cpp_extension.py:476: 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.'))
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-cpython-310
      creating build\lib.win-amd64-cpython-310\groundingdino
      copying groundingdino\version.py -> build\lib.win-amd64-cpython-310\groundingdino
      copying groundingdino\__init__.py -> build\lib.win-amd64-cpython-310\groundingdino
      creating build\lib.win-amd64-cpython-310\groundingdino\config
      copying groundingdino\config\GroundingDINO_SwinB_cfg.py -> build\lib.win-amd64-cpython-310\groundingdino\config
      copying groundingdino\config\GroundingDINO_SwinT_OGC.py -> build\lib.win-amd64-cpython-310\groundingdino\config
      copying groundingdino\config\__init__.py -> build\lib.win-amd64-cpython-310\groundingdino\config
      creating build\lib.win-amd64-cpython-310\groundingdino\datasets
      copying groundingdino\datasets\cocogrounding_eval.py -> build\lib.win-amd64-cpython-310\groundingdino\datasets
      copying groundingdino\datasets\transforms.py -> build\lib.win-amd64-cpython-310\groundingdino\datasets
      copying groundingdino\datasets\__init__.py -> build\lib.win-amd64-cpython-310\groundingdino\datasets
      creating build\lib.win-amd64-cpython-310\groundingdino\models
      copying groundingdino\models\registry.py -> build\lib.win-amd64-cpython-310\groundingdino\models
      copying groundingdino\models\__init__.py -> build\lib.win-amd64-cpython-310\groundingdino\models
      creating build\lib.win-amd64-cpython-310\groundingdino\util
      copying groundingdino\util\box_ops.py -> build\lib.win-amd64-cpython-310\groundingdino\util
      copying groundingdino\util\get_tokenlizer.py -> build\lib.win-amd64-cpython-310\groundingdino\util
      copying groundingdino\util\inference.py -> build\lib.win-amd64-cpython-310\groundingdino\util
      copying groundingdino\util\logger.py -> build\lib.win-amd64-cpython-310\groundingdino\util
      copying groundingdino\util\misc.py -> build\lib.win-amd64-cpython-310\groundingdino\util
      copying groundingdino\util\slconfig.py -> build\lib.win-amd64-cpython-310\groundingdino\util
      copying groundingdino\util\slio.py -> build\lib.win-amd64-cpython-310\groundingdino\util
      copying groundingdino\util\time_counter.py -> build\lib.win-amd64-cpython-310\groundingdino\util
      copying groundingdino\util\utils.py -> build\lib.win-amd64-cpython-310\groundingdino\util
      copying groundingdino\util\visualizer.py -> build\lib.win-amd64-cpython-310\groundingdino\util
      copying groundingdino\util\vl_utils.py -> build\lib.win-amd64-cpython-310\groundingdino\util
      copying groundingdino\util\__init__.py -> build\lib.win-amd64-cpython-310\groundingdino\util
      creating build\lib.win-amd64-cpython-310\groundingdino\models\GroundingDINO
      copying groundingdino\models\GroundingDINO\bertwarper.py -> build\lib.win-amd64-cpython-310\groundingdino\models\GroundingDINO
      copying groundingdino\models\GroundingDINO\fuse_modules.py -> build\lib.win-amd64-cpython-310\groundingdino\models\GroundingDINO
      copying groundingdino\models\GroundingDINO\groundingdino.py -> build\lib.win-amd64-cpython-310\groundingdino\models\GroundingDINO
      copying groundingdino\models\GroundingDINO\ms_deform_attn.py -> build\lib.win-amd64-cpython-310\groundingdino\models\GroundingDINO
      copying groundingdino\models\GroundingDINO\transformer.py -> build\lib.win-amd64-cpython-310\groundingdino\models\GroundingDINO
      copying groundingdino\models\GroundingDINO\transformer_vanilla.py -> build\lib.win-amd64-cpython-310\groundingdino\models\GroundingDINO
      copying groundingdino\models\GroundingDINO\utils.py -> build\lib.win-amd64-cpython-310\groundingdino\models\GroundingDINO
      copying groundingdino\models\GroundingDINO\__init__.py -> build\lib.win-amd64-cpython-310\groundingdino\models\GroundingDINO
      creating build\lib.win-amd64-cpython-310\groundingdino\models\GroundingDINO\backbone
      copying groundingdino\models\GroundingDINO\backbone\backbone.py -> build\lib.win-amd64-cpython-310\groundingdino\models\GroundingDINO\backbone
      copying groundingdino\models\GroundingDINO\backbone\position_encoding.py -> build\lib.win-amd64-cpython-310\groundingdino\models\GroundingDINO\backbone
      copying groundingdino\models\GroundingDINO\backbone\swin_transformer.py -> build\lib.win-amd64-cpython-310\groundingdino\models\GroundingDINO\backbone
      copying groundingdino\models\GroundingDINO\backbone\__init__.py -> build\lib.win-amd64-cpython-310\groundingdino\models\GroundingDINO\backbone
      running build_ext
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\utils\cpp_extension.py:359: UserWarning: Error checking compiler version for cl: [WinError 2] The system cannot find the file specified
        warnings.warn(f'Error checking compiler version for {compiler}: {error}')
      building 'groundingdino._C' extension
      creating build\temp.win-amd64-cpython-310
      creating build\temp.win-amd64-cpython-310\Release
      creating build\temp.win-amd64-cpython-310\Release\Users
      creating build\temp.win-amd64-cpython-310\Release\Users\azizm
      creating build\temp.win-amd64-cpython-310\Release\Users\azizm\AppData
      creating build\temp.win-amd64-cpython-310\Release\Users\azizm\AppData\Local
      creating build\temp.win-amd64-cpython-310\Release\Users\azizm\AppData\Local\Temp
      creating build\temp.win-amd64-cpython-310\Release\Users\azizm\AppData\Local\Temp\pip-install-vwiwmkkg
      creating build\temp.win-amd64-cpython-310\Release\Users\azizm\AppData\Local\Temp\pip-install-vwiwmkkg\groundingdino_168ceb1ae24b48ec83858e4311803fe3
      creating build\temp.win-amd64-cpython-310\Release\Users\azizm\AppData\Local\Temp\pip-install-vwiwmkkg\groundingdino_168ceb1ae24b48ec83858e4311803fe3\groundingdino
      creating build\temp.win-amd64-cpython-310\Release\Users\azizm\AppData\Local\Temp\pip-install-vwiwmkkg\groundingdino_168ceb1ae24b48ec83858e4311803fe3\groundingdino\models
      creating build\temp.win-amd64-cpython-310\Release\Users\azizm\AppData\Local\Temp\pip-install-vwiwmkkg\groundingdino_168ceb1ae24b48ec83858e4311803fe3\groundingdino\models\GroundingDINO
      creating build\temp.win-amd64-cpython-310\Release\Users\azizm\AppData\Local\Temp\pip-install-vwiwmkkg\groundingdino_168ceb1ae24b48ec83858e4311803fe3\groundingdino\models\GroundingDINO\csrc
      creating build\temp.win-amd64-cpython-310\Release\Users\azizm\AppData\Local\Temp\pip-install-vwiwmkkg\groundingdino_168ceb1ae24b48ec83858e4311803fe3\groundingdino\models\GroundingDINO\csrc\MsDeformAttn
      "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DWITH_CUDA -IC:\Users\azizm\AppData\Local\Temp\pip-install-vwiwmkkg\grou
ndingdino_168ceb1ae24b48ec83858e4311803fe3\groundingdino\models\GroundingDINO\csrc -IC:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include -IC:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-pack
ages\torch\include\torch\csrc\api\include -IC:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\TH -IC:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\THC "-IC:\Program F
iles\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include" -IC:\Users\azizm\PycharmProjects\ClothesData\venv\include -IC:\Users\azizm\AppData\Local\Programs\Python\Python310\include -IC:\Users\azizm\AppData\Local\Programs\Python\Pyth
on310\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include" "-IC:\P
rogram Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windo
ws Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /EHsc /TpC:\Users\azizm\AppData\Local\Temp\pip-in
stall-vwiwmkkg\groundingdino_168ceb1ae24b48ec83858e4311803fe3\groundingdino\models\GroundingDINO\csrc\MsDeformAttn\ms_deform_attn_cpu.cpp /Fobuild\temp.win-amd64-cpython-310\Release\Users\azizm\AppData\Local\Temp\pip-install-vwi
wmkkg\groundingdino_168ceb1ae24b48ec83858e4311803fe3\groundingdino\models\GroundingDINO\csrc\MsDeformAttn\ms_deform_attn_cpu.obj /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /EHsc -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0
      ms_deform_attn_cpu.cpp
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/macros/Macros.h(138): warning C4067: unexpected tokens following preprocessor directive - expected a newline
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(212): warning C4624: 'c10::constexpr_storage_t<T>': destructor was implicitly defined as deleted
              with
              [
                  T=c10::SymInt
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(411): note: see reference to class template instantiation 'c10::constexpr_storage_t<T>' being compiled
              with
              [
                  T=c10::SymInt
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(549): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base<T>' being compiled
              with
              [
                  T=c10::SymInt
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(549): note: see reference to alias template instantiation 'c10::OptionalBase<c10::SymInt>' being compiled
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/core/TensorImpl.h(1605): note: see reference to class template instantiation 'c10::optional<c10::SymInt>' being compiled
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(446): warning C4624: 'c10::trivially_copyable_optimization_optional_base<T>': destructor was implicitly defined as deleted
              with
              [
                  T=c10::SymInt
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(212): warning C4624: 'c10::constexpr_storage_t<T>': destructor was implicitly defined as deleted
              with
              [
                  T=std::string
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(411): note: see reference to class template instantiation 'c10::constexpr_storage_t<T>' being compiled
              with
              [
                  T=std::string
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(549): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base<T>' being compiled
              with
              [
                  T=std::string
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(549): note: see reference to alias template instantiation 'c10::OptionalBase<std::string>' being compiled
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\ATen/core/jit_type_base.h(452): note: see reference to class template instantiation 'c10::optional<std::string>' being compiled
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(446): warning C4624: 'c10::trivially_copyable_optimization_optional_base<T>': destructor was implicitly defined as deleted
              with
              [
                  T=std::string
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(212): warning C4624: 'c10::constexpr_storage_t<T>': destructor was implicitly defined as deleted
              with
              [
                  T=c10::QualifiedName
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(411): note: see reference to class template instantiation 'c10::constexpr_storage_t<T>' being compiled
              with
              [
                  T=c10::QualifiedName
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(549): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base<T>' being compiled
              with
              [
                  T=c10::QualifiedName
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(549): note: see reference to alias template instantiation 'c10::OptionalBase<c10::QualifiedName>' being compiled
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\ATen/core/jit_type_base.h(700): note: see reference to class template instantiation 'c10::optional<c10::QualifiedName>' being compiled        
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(446): warning C4624: 'c10::trivially_copyable_optimization_optional_base<T>': destructor was implicitly defined as deleted
              with
              [
                  T=c10::QualifiedName
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(212): warning C4624: 'c10::constexpr_storage_t<T>': destructor was implicitly defined as deleted
              with
              [
                  T=at::TensorBase
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(411): note: see reference to class template instantiation 'c10::constexpr_storage_t<T>' being compiled
              with
              [
                  T=at::TensorBase
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(549): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base<T>' being compiled
              with
              [
                  T=at::TensorBase
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(549): note: see reference to alias template instantiation 'c10::OptionalBase<at::TensorBase>' being compiled
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\ATen/core/TensorBase.h(933): note: see reference to class template instantiation 'c10::optional<at::TensorBase>' being compiled
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(446): warning C4624: 'c10::trivially_copyable_optimization_optional_base<T>': destructor was implicitly defined as deleted
              with
              [
                  T=at::TensorBase
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(212): warning C4624: 'c10::constexpr_storage_t<T>': destructor was implicitly defined as deleted
              with
              [
                  T=at::Tensor
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(411): note: see reference to class template instantiation 'c10::constexpr_storage_t<T>' being compiled
              with
              [
                  T=at::Tensor
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(549): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base<T>' being compiled
              with
              [
                  T=at::Tensor
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(549): note: see reference to alias template instantiation 'c10::OptionalBase<at::Tensor>' being compiled
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\ATen/core/TensorBody.h(518): note: see reference to class template instantiation 'c10::optional<at::Tensor>' being compiled
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(446): warning C4624: 'c10::trivially_copyable_optimization_optional_base<T>': destructor was implicitly defined as deleted
              with
              [
                  T=at::Tensor
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(212): warning C4624: 'c10::constexpr_storage_t<T>': destructor was implicitly defined as deleted
              with
              [
                  T=at::Generator
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(411): note: see reference to class template instantiation 'c10::constexpr_storage_t<T>' being compiled
              with
              [
                  T=at::Generator
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(549): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base<T>' being compiled
              with
              [
                  T=at::Generator
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(549): note: see reference to alias template instantiation 'c10::OptionalBase<at::Generator>' being compiled
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\ATen/core/TensorBody.h(597): note: see reference to class template instantiation 'c10::optional<at::Generator>' being compiled
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(446): warning C4624: 'c10::trivially_copyable_optimization_optional_base<T>': destructor was implicitly defined as deleted
              with
              [
                  T=at::Generator
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(212): warning C4624: 'c10::constexpr_storage_t<T>': destructor was implicitly defined as deleted
              with
              [
                  T=c10::Scalar
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(411): note: see reference to class template instantiation 'c10::constexpr_storage_t<T>' being compiled
              with
              [
                  T=c10::Scalar
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(549): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base<T>' being compiled
              with
              [
                  T=c10::Scalar
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(549): note: see reference to alias template instantiation 'c10::OptionalBase<c10::Scalar>' being compiled
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\ATen/core/TensorBody.h(628): note: see reference to class template instantiation 'c10::optional<c10::Scalar>' being compiled
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(446): warning C4624: 'c10::trivially_copyable_optimization_optional_base<T>': destructor was implicitly defined as deleted
              with
              [
                  T=c10::Scalar
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(212): warning C4624: 'c10::constexpr_storage_t<T>': destructor was implicitly defined as deleted
              with
              [
                  T=std::shared_ptr<torch::jit::CompilationUnit>
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(411): note: see reference to class template instantiation 'c10::constexpr_storage_t<T>' being compiled
              with
              [
                  T=std::shared_ptr<torch::jit::CompilationUnit>
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(549): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base<T>' being compiled
              with
              [
                  T=std::shared_ptr<torch::jit::CompilationUnit>
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(549): note: see reference to alias template instantiation 'c10::OptionalBase<std::shared_ptr<torch::jit::CompilationUnit>>' being compiled
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\ATen/core/ivalue.h(1437): note: see reference to class template instantiation 'c10::optional<std::shared_ptr<torch::jit::CompilationUnit>>' being compiled
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(446): warning C4624: 'c10::trivially_copyable_optimization_optional_base<T>': destructor was implicitly defined as deleted
              with
              [
                  T=std::shared_ptr<torch::jit::CompilationUnit>
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(212): warning C4624: 'c10::constexpr_storage_t<T>': destructor was implicitly defined as deleted
              with
              [
                  T=std::weak_ptr<torch::jit::CompilationUnit>
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(411): note: see reference to class template instantiation 'c10::constexpr_storage_t<T>' being compiled
              with
              [
                  T=std::weak_ptr<torch::jit::CompilationUnit>
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(549): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base<T>' being compiled
              with
              [
                  T=std::weak_ptr<torch::jit::CompilationUnit>
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(549): note: see reference to alias template instantiation 'c10::OptionalBase<std::weak_ptr<torch::jit::CompilationUnit>>' being compiled
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\ATen/core/ivalue.h(1438): note: see reference to class template instantiation 'c10::optional<std::weak_ptr<torch::jit::CompilationUnit>>' being compiled
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(446): warning C4624: 'c10::trivially_copyable_optimization_optional_base<T>': destructor was implicitly defined as deleted
              with
              [
                  T=std::weak_ptr<torch::jit::CompilationUnit>
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(212): warning C4624: 'c10::constexpr_storage_t<T>': destructor was implicitly defined as deleted
              with
              [
                  T=std::vector<c10::ShapeSymbol,std::allocator<c10::ShapeSymbol>>
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(411): note: see reference to class template instantiation 'c10::constexpr_storage_t<T>' being compiled
              with
              [
                  T=std::vector<c10::ShapeSymbol,std::allocator<c10::ShapeSymbol>>
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(549): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base<T>' being compiled
              with
              [
                  T=std::vector<c10::ShapeSymbol,std::allocator<c10::ShapeSymbol>>
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(549): note: see reference to alias template instantiation 'c10::OptionalBase<std::vector<c10::ShapeSymbol,std::allocator<c10::ShapeSymbol>>>' being compiled
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\ATen/core/jit_type.h(484): note: see reference to class template instantiation 'c10::optional<std::vector<c10::ShapeSymbol,std::allocator<c10::ShapeSymbol>>>' being compiled
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(446): warning C4624: 'c10::trivially_copyable_optimization_optional_base<T>': destructor was implicitly defined as deleted
              with
              [
                  T=std::vector<c10::ShapeSymbol,std::allocator<c10::ShapeSymbol>>
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(212): warning C4624: 'c10::constexpr_storage_t<T>': destructor was implicitly defined as deleted
              with
              [
                  T=std::vector<bool,std::allocator<bool>>
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(411): note: see reference to class template instantiation 'c10::constexpr_storage_t<T>' being compiled
              with
              [
                  T=std::vector<bool,std::allocator<bool>>
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(549): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base<T>' being compiled
              with
              [
                  T=std::vector<bool,std::allocator<bool>>
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(549): note: see reference to alias template instantiation 'c10::OptionalBase<std::vector<bool,std::allocator<bool>>>' being compiled
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\ATen/core/jit_type.h(443): note: see reference to class template instantiation 'c10::optional<std::vector<bool,std::allocator<bool>>>' being compiled
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(446): warning C4624: 'c10::trivially_copyable_optimization_optional_base<T>': destructor was implicitly defined as deleted
              with
              [
                  T=std::vector<bool,std::allocator<bool>>
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(212): warning C4624: 'c10::constexpr_storage_t<T>': destructor was implicitly defined as deleted
              with
              [
                  T=std::vector<c10::optional<c10::Stride>,std::allocator<c10::optional<c10::Stride>>>
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(411): note: see reference to class template instantiation 'c10::constexpr_storage_t<T>' being compiled
              with
              [
                  T=std::vector<c10::optional<c10::Stride>,std::allocator<c10::optional<c10::Stride>>>
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(549): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base<T>' being compiled
              with
              [
                  T=std::vector<c10::optional<c10::Stride>,std::allocator<c10::optional<c10::Stride>>>
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(549): note: see reference to alias template instantiation 'c10::OptionalBase<std::vector<c10::optional<c10::Stride>,std::allocator<c10::optional<c10::Stride>>>>' being compiled
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\ATen/core/jit_type.h(569): note: see reference to class template instantiation 'c10::optional<std::vector<c10::optional<c10::Stride>,std::allocator<c10::optional<c10::Stride>>>>' being compiled
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\ATen/core/jit_type.h(845): note: see reference to class template instantiation 'c10::VaryingShape<c10::Stride>' being compiled
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(446): warning C4624: 'c10::trivially_copyable_optimization_optional_base<T>': destructor was implicitly defined as deleted
              with
              [
                  T=std::vector<c10::optional<c10::Stride>,std::allocator<c10::optional<c10::Stride>>>
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(212): warning C4624: 'c10::constexpr_storage_t<T>': destructor was implicitly defined as deleted
              with
              [
                  T=std::vector<c10::optional<int64_t>,std::allocator<c10::optional<int64_t>>>
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(411): note: see reference to class template instantiation 'c10::constexpr_storage_t<T>' being compiled
              with
              [
                  T=std::vector<c10::optional<int64_t>,std::allocator<c10::optional<int64_t>>>
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(549): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base<T>' being compiled
              with
              [
                  T=std::vector<c10::optional<int64_t>,std::allocator<c10::optional<int64_t>>>
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(549): note: see reference to alias template instantiation 'c10::OptionalBase<std::vector<c10::optional<int64_t>,std::allocator<c10::optional<int64_t>>>>' being compiled
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\ATen/core/jit_type.h(569): note: see reference to class template instantiation 'c10::optional<std::vector<c10::optional<int64_t>,std::allocator<c10::optional<int64_t>>>>' being compiled
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\ATen/core/jit_type.h(615): note: see reference to class template instantiation 'c10::VaryingShape<int64_t>' being compiled
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(446): warning C4624: 'c10::trivially_copyable_optimization_optional_base<T>': destructor was implicitly defined as deleted
              with
              [
                  T=std::vector<c10::optional<int64_t>,std::allocator<c10::optional<int64_t>>>
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(212): warning C4624: 'c10::constexpr_storage_t<T>': destructor was implicitly defined as deleted
              with
              [
                  T=std::vector<int64_t,std::allocator<int64_t>>
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(411): note: see reference to class template instantiation 'c10::constexpr_storage_t<T>' being compiled
              with
              [
                  T=std::vector<int64_t,std::allocator<int64_t>>
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(549): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base<T>' being compiled
              with
              [
                  T=std::vector<int64_t,std::allocator<int64_t>>
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(549): note: see reference to alias template instantiation 'c10::OptionalBase<std::vector<int64_t,std::allocator<int64_t>>>' being compiled
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\ATen/core/jit_type.h(728): note: see reference to class template instantiation 'c10::optional<std::vector<int64_t,std::allocator<int64_t>>>' being compiled
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(446): warning C4624: 'c10::trivially_copyable_optimization_optional_base<T>': destructor was implicitly defined as deleted
              with
              [
                  T=std::vector<int64_t,std::allocator<int64_t>>
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(212): warning C4624: 'c10::constexpr_storage_t<T>': destructor was implicitly defined as deleted
              with
              [
                  T=c10::impl::InlineDeviceGuard<c10::impl::VirtualGuardImpl>
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(411): note: see reference to class template instantiation 'c10::constexpr_storage_t<T>' being compiled
              with
              [
                  T=c10::impl::InlineDeviceGuard<c10::impl::VirtualGuardImpl>
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(549): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base<T>' being compiled
              with
              [
                  T=c10::impl::InlineDeviceGuard<c10::impl::VirtualGuardImpl>
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(549): note: see reference to alias template instantiation 'c10::OptionalBase<c10::impl::InlineDeviceGuard<c10::impl::VirtualGuardImpl>>' being compiled
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/core/impl/InlineDeviceGuard.h(427): note: see reference to class template instantiation 'c10::optional<c10::impl::InlineDeviceGuard<c10::impl::VirtualGuardImpl>>' being compiled
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/core/DeviceGuard.h(178): note: see reference to class template instantiation 'c10::impl::InlineOptionalDeviceGuard<c10::impl::VirtualGuardImpl>' being compiled
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(446): warning C4624: 'c10::trivially_copyable_optimization_optional_base<T>': destructor was implicitly defined as deleted
              with
              [
                  T=c10::impl::InlineDeviceGuard<c10::impl::VirtualGuardImpl>
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(212): warning C4624: 'c10::constexpr_storage_t<T>': destructor was implicitly defined as deleted
              with
              [
                  T=c10::impl::InlineStreamGuard<c10::impl::VirtualGuardImpl>
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(411): note: see reference to class template instantiation 'c10::constexpr_storage_t<T>' being compiled
              with
              [
                  T=c10::impl::InlineStreamGuard<c10::impl::VirtualGuardImpl>
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(549): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base<T>' being compiled
              with
              [
                  T=c10::impl::InlineStreamGuard<c10::impl::VirtualGuardImpl>
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(549): note: see reference to alias template instantiation 'c10::OptionalBase<c10::impl::InlineStreamGuard<c10::impl::VirtualGuardImpl>>' being compiled
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/core/impl/InlineStreamGuard.h(197): note: see reference to class template instantiation 'c10::optional<c10::impl::InlineStreamGuard<c10::impl::VirtualGuardImpl>>' being compiled
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/core/StreamGuard.h(139): note: see reference to class template instantiation 'c10::impl::InlineOptionalStreamGuard<c10::impl::VirtualGuardImpl>' being compiled
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(446): warning C4624: 'c10::trivially_copyable_optimization_optional_base<T>': destructor was implicitly defined as deleted
              with
              [
                  T=c10::impl::InlineStreamGuard<c10::impl::VirtualGuardImpl>
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(212): warning C4624: 'c10::constexpr_storage_t<T>': destructor was implicitly defined as deleted
              with
              [
                  T=c10::impl::VirtualGuardImpl
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(411): note: see reference to class template instantiation 'c10::constexpr_storage_t<T>' being compiled
              with
              [
                  T=c10::impl::VirtualGuardImpl
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(549): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base<T>' being compiled
              with
              [
                  T=c10::impl::VirtualGuardImpl
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(549): note: see reference to alias template instantiation 'c10::OptionalBase<c10::impl::VirtualGuardImpl>' being compiled 
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/core/impl/InlineStreamGuard.h(232): note: see reference to class template instantiation 'c10::optional<T>' being compiled
              with
              [
                  T=c10::impl::VirtualGuardImpl
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/core/StreamGuard.h(162): note: see reference to class template instantiation 'c10::impl::InlineMultiStreamGuard<c10::impl::VirtualGuardImpl>' being compiled
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(446): warning C4624: 'c10::trivially_copyable_optimization_optional_base<T>': destructor was implicitly defined as deleted
              with
              [
                  T=c10::impl::VirtualGuardImpl
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(212): warning C4624: 'c10::constexpr_storage_t<T>': destructor was implicitly defined as deleted
              with
              [
                  T=std::vector<c10::ivalue::Future::WeakStorage,std::allocator<c10::ivalue::Future::WeakStorage>>
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(411): note: see reference to class template instantiation 'c10::constexpr_storage_t<T>' being compiled
              with
              [
                  T=std::vector<c10::ivalue::Future::WeakStorage,std::allocator<c10::ivalue::Future::WeakStorage>>
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(549): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base<T>' being compiled
              with
              [
                  T=std::vector<c10::ivalue::Future::WeakStorage,std::allocator<c10::ivalue::Future::WeakStorage>>
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(549): note: see reference to alias template instantiation 'c10::OptionalBase<std::vector<c10::ivalue::Future::WeakStorage,std::allocator<c10::ivalue::Future::WeakStorage>>>' being compiled
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\ATen/core/ivalue_inl.h(884): note: see reference to class template instantiation 'c10::optional<std::vector<c10::ivalue::Future::WeakStorage,std::allocator<c10::ivalue::Future::WeakStorage>>>' being compiled
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(446): warning C4624: 'c10::trivially_copyable_optimization_optional_base<T>': destructor was implicitly defined as deleted
              with
              [
                  T=std::vector<c10::ivalue::Future::WeakStorage,std::allocator<c10::ivalue::Future::WeakStorage>>
              ]
      C:\Users\azizm\PycharmProjects\ClothesData\venv\lib\site-packages\torch\include\c10/util/Optional.h(212): warning C4624: 'c10::constexpr_storage_t<T>': destructor was implicitly defined as deleted
              with
              [
Successfully built lang-sam
Failed to build groundingdino
ERROR: Could not build wheels for groundingdino, which is required to install pyproject.toml-based projects

Environment:

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2022 NVIDIA Corporation
Built on Wed_Sep_21_10:41:10_Pacific_Daylight_Time_2022
Cuda compilation tools, release 11.8, V11.8.89
Build cuda_11.8.r11.8/compiler.31833905_0

Had CUDA 12.1 earlier. Someone who has faced the same error said that downgrading to CUDA 11.8 solved it. It didn't for me.

Any idea what's the issue here?

goldiusleonard commented 9 months ago

Had the same issue here

2085924055 commented 5 months ago

Has the problem been solved? I had a similar problem. "python setup.py develop did not run successfully."