facebookresearch / detectron2

Detectron2 is a platform for object detection, segmentation and other visual recognition tasks.
https://detectron2.readthedocs.io/en/latest/
Apache License 2.0
30.55k stars 7.49k forks source link

visual studio compiler error #4923

Open Utkarsha666 opened 1 year ago

Utkarsha666 commented 1 year ago

[Description] I am trying to install detectron2 on my Windows 11 machine.

[To Reproduce] python -m pip install -e detectron2

[Full Logs]

`Obtaining file:///D:/Computer%20Vision/detectron2-computer-vision
  Preparing metadata (setup.py) ... done
Requirement already satisfied: Pillow>=7.1 in d:\anaconda3\envs\detectron2\lib\site-packages (from detectron2==0.6) (9.5.0)
Requirement already satisfied: matplotlib in d:\anaconda3\envs\detectron2\lib\site-packages (from detectron2==0.6) (3.7.1)
Requirement already satisfied: pycocotools>=2.0.2 in d:\anaconda3\envs\detectron2\lib\site-packages (from detectron2==0.6) (2.0.6)
Requirement already satisfied: termcolor>=1.1 in d:\anaconda3\envs\detectron2\lib\site-packages (from detectron2==0.6) (2.2.0)
Requirement already satisfied: yacs>=0.1.8 in d:\anaconda3\envs\detectron2\lib\site-packages (from detectron2==0.6) (0.1.8)
Requirement already satisfied: tabulate in d:\anaconda3\envs\detectron2\lib\site-packages (from detectron2==0.6) (0.9.0)
Requirement already satisfied: cloudpickle in d:\anaconda3\envs\detectron2\lib\site-packages (from detectron2==0.6) (2.2.1)
Requirement already satisfied: tqdm>4.29.0 in d:\anaconda3\envs\detectron2\lib\site-packages (from detectron2==0.6) (4.65.0)
Requirement already satisfied: tensorboard in d:\anaconda3\envs\detectron2\lib\site-packages (from detectron2==0.6) (2.12.2)
Requirement already satisfied: fvcore<0.1.6,>=0.1.5 in d:\anaconda3\envs\detectron2\lib\site-packages (from detectron2==0.6) (0.1.5.post20221221)
Requirement already satisfied: iopath<0.1.10,>=0.1.7 in d:\anaconda3\envs\detectron2\lib\site-packages (from detectron2==0.6) (0.1.9)
Requirement already satisfied: omegaconf>=2.1 in d:\anaconda3\envs\detectron2\lib\site-packages (from detectron2==0.6) (2.3.0)
Requirement already satisfied: hydra-core>=1.1 in d:\anaconda3\envs\detectron2\lib\site-packages (from detectron2==0.6) (1.3.2)
Requirement already satisfied: black in d:\anaconda3\envs\detectron2\lib\site-packages (from detectron2==0.6) (23.3.0)
Requirement already satisfied: packaging in d:\anaconda3\envs\detectron2\lib\site-packages (from detectron2==0.6) (23.1)
Requirement already satisfied: pyyaml>=5.1 in d:\anaconda3\envs\detectron2\lib\site-packages (from fvcore<0.1.6,>=0.1.5->detectron2==0.6) (6.0)
Requirement already satisfied: numpy in d:\anaconda3\envs\detectron2\lib\site-packages (from fvcore<0.1.6,>=0.1.5->detectron2==0.6) (1.24.2)
Requirement already satisfied: antlr4-python3-runtime==4.9.* in d:\anaconda3\envs\detectron2\lib\site-packages (from hydra-core>=1.1->detectron2==0.6) (4.9.3)
Requirement already satisfied: importlib-resources in d:\anaconda3\envs\detectron2\lib\site-packages (from hydra-core>=1.1->detectron2==0.6) (5.12.0)
Requirement already satisfied: portalocker in d:\anaconda3\envs\detectron2\lib\site-packages (from iopath<0.1.10,>=0.1.7->detectron2==0.6) (2.7.0)
Requirement already satisfied: contourpy>=1.0.1 in d:\anaconda3\envs\detectron2\lib\site-packages (from matplotlib->detectron2==0.6) (1.0.7)
Requirement already satisfied: fonttools>=4.22.0 in d:\anaconda3\envs\detectron2\lib\site-packages (from matplotlib->detectron2==0.6) (4.39.3)
Requirement already satisfied: python-dateutil>=2.7 in d:\anaconda3\envs\detectron2\lib\site-packages (from matplotlib->detectron2==0.6) (2.8.2)
Requirement already satisfied: kiwisolver>=1.0.1 in d:\anaconda3\envs\detectron2\lib\site-packages (from matplotlib->detectron2==0.6) (1.4.4)
Requirement already satisfied: cycler>=0.10 in d:\anaconda3\envs\detectron2\lib\site-packages (from matplotlib->detectron2==0.6) (0.11.0)
Requirement already satisfied: pyparsing>=2.3.1 in d:\anaconda3\envs\detectron2\lib\site-packages (from matplotlib->detectron2==0.6) (3.0.9)
Requirement already satisfied: colorama in d:\anaconda3\envs\detectron2\lib\site-packages (from tqdm>4.29.0->detectron2==0.6) (0.4.6)
Requirement already satisfied: click>=8.0.0 in d:\anaconda3\envs\detectron2\lib\site-packages (from black->detectron2==0.6) (8.1.3)
Requirement already satisfied: typing-extensions>=3.10.0.0 in d:\anaconda3\envs\detectron2\lib\site-packages (from black->detectron2==0.6) (4.5.0)
Requirement already satisfied: mypy-extensions>=0.4.3 in d:\anaconda3\envs\detectron2\lib\site-packages (from black->detectron2==0.6) (1.0.0)
Requirement already satisfied: pathspec>=0.9.0 in d:\anaconda3\envs\detectron2\lib\site-packages (from black->detectron2==0.6) (0.11.1)
Requirement already satisfied: tomli>=1.1.0 in d:\anaconda3\envs\detectron2\lib\site-packages (from black->detectron2==0.6) (2.0.1)
Requirement already satisfied: platformdirs>=2 in d:\anaconda3\envs\detectron2\lib\site-packages (from black->detectron2==0.6) (3.2.0)
Requirement already satisfied: google-auth<3,>=1.6.3 in d:\anaconda3\envs\detectron2\lib\site-packages (from tensorboard->detectron2==0.6) (2.17.3)
Requirement already satisfied: absl-py>=0.4 in d:\anaconda3\envs\detectron2\lib\site-packages (from tensorboard->detectron2==0.6) (1.4.0)
Requirement already satisfied: tensorboard-plugin-wit>=1.6.0 in d:\anaconda3\envs\detectron2\lib\site-packages (from tensorboard->detectron2==0.6) (1.8.1)
Requirement already satisfied: markdown>=2.6.8 in d:\anaconda3\envs\detectron2\lib\site-packages (from tensorboard->detectron2==0.6) (3.4.3)
Requirement already satisfied: grpcio>=1.48.2 in d:\anaconda3\envs\detectron2\lib\site-packages (from tensorboard->detectron2==0.6) (1.54.0)
Requirement already satisfied: requests<3,>=2.21.0 in d:\anaconda3\envs\detectron2\lib\site-packages (from tensorboard->detectron2==0.6) (2.28.2)
Requirement already satisfied: werkzeug>=1.0.1 in d:\anaconda3\envs\detectron2\lib\site-packages (from tensorboard->detectron2==0.6) (2.2.3)
Requirement already satisfied: protobuf>=3.19.6 in d:\anaconda3\envs\detectron2\lib\site-packages (from tensorboard->detectron2==0.6) (4.22.3)
Requirement already satisfied: wheel>=0.26 in d:\anaconda3\envs\detectron2\lib\site-packages (from tensorboard->detectron2==0.6) (0.38.4)
Requirement already satisfied: setuptools>=41.0.0 in d:\anaconda3\envs\detectron2\lib\site-packages (from tensorboard->detectron2==0.6) (66.0.0)
Requirement already satisfied: tensorboard-data-server<0.8.0,>=0.7.0 in d:\anaconda3\envs\detectron2\lib\site-packages (from tensorboard->detectron2==0.6) (0.7.0)
Requirement already satisfied: google-auth-oauthlib<1.1,>=0.5 in d:\anaconda3\envs\detectron2\lib\site-packages (from tensorboard->detectron2==0.6) (1.0.0)
Requirement already satisfied: six>=1.9.0 in d:\anaconda3\envs\detectron2\lib\site-packages (from google-auth<3,>=1.6.3->tensorboard->detectron2==0.6) (1.16.0)
Requirement already satisfied: cachetools<6.0,>=2.0.0 in d:\anaconda3\envs\detectron2\lib\site-packages (from google-auth<3,>=1.6.3->tensorboard->detectron2==0.6) (5.3.0)
Requirement already satisfied: pyasn1-modules>=0.2.1 in d:\anaconda3\envs\detectron2\lib\site-packages (from google-auth<3,>=1.6.3->tensorboard->detectron2==0.6) (0.3.0)
Requirement already satisfied: rsa<5,>=3.1.4 in d:\anaconda3\envs\detectron2\lib\site-packages (from google-auth<3,>=1.6.3->tensorboard->detectron2==0.6) (4.9)
Requirement already satisfied: requests-oauthlib>=0.7.0 in d:\anaconda3\envs\detectron2\lib\site-packages (from google-auth-oauthlib<1.1,>=0.5->tensorboard->detectron2==0.6) (1.3.1)
Requirement already satisfied: zipp>=3.1.0 in d:\anaconda3\envs\detectron2\lib\site-packages (from importlib-resources->hydra-core>=1.1->detectron2==0.6) (3.15.0)
Requirement already satisfied: importlib-metadata>=4.4 in d:\anaconda3\envs\detectron2\lib\site-packages (from markdown>=2.6.8->tensorboard->detectron2==0.6) (6.5.0)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in d:\anaconda3\envs\detectron2\lib\site-packages (from requests<3,>=2.21.0->tensorboard->detectron2==0.6) (1.26.15)
Requirement already satisfied: idna<4,>=2.5 in d:\anaconda3\envs\detectron2\lib\site-packages (from requests<3,>=2.21.0->tensorboard->detectron2==0.6) (3.4)
Requirement already satisfied: certifi>=2017.4.17 in d:\anaconda3\envs\detectron2\lib\site-packages (from requests<3,>=2.21.0->tensorboard->detectron2==0.6) (2022.12.7)
Requirement already satisfied: charset-normalizer<4,>=2 in d:\anaconda3\envs\detectron2\lib\site-packages (from requests<3,>=2.21.0->tensorboard->detectron2==0.6) (3.1.0)
Requirement already satisfied: MarkupSafe>=2.1.1 in d:\anaconda3\envs\detectron2\lib\site-packages (from werkzeug>=1.0.1->tensorboard->detectron2==0.6) (2.1.2)
Requirement already satisfied: pywin32>=226 in d:\anaconda3\envs\detectron2\lib\site-packages (from portalocker->iopath<0.1.10,>=0.1.7->detectron2==0.6) (306)
Requirement already satisfied: pyasn1<0.6.0,>=0.4.6 in d:\anaconda3\envs\detectron2\lib\site-packages (from pyasn1-modules>=0.2.1->google-auth<3,>=1.6.3->tensorboard->detectron2==0.6) (0.5.0)
Requirement already satisfied: oauthlib>=3.0.0 in d:\anaconda3\envs\detectron2\lib\site-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib<1.1,>=0.5->tensorboard->detectron2==0.6) (3.2.2)
Installing collected packages: detectron2
  Running setup.py develop for detectron2
    error: subprocess-exited-with-error

    × python setup.py develop did not run successfully.
    │ exit code: 1
    ╰─> [762 lines of output]
        running develop
        running egg_info
        writing detectron2.egg-info\PKG-INFO
        writing dependency_links to detectron2.egg-info\dependency_links.txt
        writing requirements to detectron2.egg-info\requires.txt
        writing top-level names to detectron2.egg-info\top_level.txt
        reading manifest file 'detectron2.egg-info\SOURCES.txt'
        adding license file 'LICENSE'
        writing manifest file 'detectron2.egg-info\SOURCES.txt'
        running build_ext
        building 'detectron2._C' extension
        "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.34.31933\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DWITH_CUDA "-ID:\Computer Vision\detectron2-computer-vision\detectron2\layers\csrc" -ID:\anaconda3\envs\detectron2\lib\site-packages\torch\include -ID:\anaconda3\envs\detectron2\lib\site-packages\torch\include\torch\csrc\api\include -ID:\anaconda3\envs\detectron2\lib\site-packages\torch\include\TH -ID:\anaconda3\envs\detectron2\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.2\include" -ID:\anaconda3\envs\detectron2\include -ID:\anaconda3\envs\detectron2\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.34.31933\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-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\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\shared" "-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" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /EHsc "/TpD:\Computer Vision\detectron2-computer-vision\detectron2\layers\csrc\ROIAlignRotated\ROIAlignRotated_cpu.cpp" "/Fobuild\temp.win-amd64-cpython-38\Release\Computer Vision\detectron2-computer-vision\detectron2\layers\csrc\ROIAlignRotated\ROIAlignRotated_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
        ROIAlignRotated_cpu.cpp
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(183): warning C4624: 'c10::constexpr_storage_t<T>': destructor was implicitly defined as deleted
                with
                [
                    T=at::Tensor
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(367): note: see reference to class template instantiation 'c10::constexpr_storage_t<T>' being compiled
                with
                [
                    T=at::Tensor
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(427): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base<T>' being compiled
                with
                [
                    T=at::Tensor
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(427): note: see reference to alias template instantiation 'c10::OptionalBase<T>' being compiled
                with
                [
                    T=at::Tensor
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\ATen/core/TensorBody.h(734): note: see reference to class template instantiation 'c10::optional<at::Tensor>' being compiled
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(395): warning C4624: 'c10::trivially_copyable_optimization_optional_base<T>': destructor was implicitly defined as deleted
                with
                [
                    T=at::Tensor
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(183): warning C4624: 'c10::constexpr_storage_t<T>': destructor was implicitly defined as deleted
                with
                [
                    T=at::Generator
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(367): note: see reference to class template instantiation 'c10::constexpr_storage_t<T>' being compiled
                with
                [
                    T=at::Generator
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(427): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base<T>' being compiled
                with
                [
                    T=at::Generator
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(427): note: see reference to alias template instantiation 'c10::OptionalBase<T>' being compiled
                with
                [
                    T=at::Generator
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\ATen/core/TensorBody.h(800): note: see reference to class template instantiation 'c10::optional<at::Generator>' being compiled
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(395): warning C4624: 'c10::trivially_copyable_optimization_optional_base<T>': destructor was implicitly defined as deleted
                with
                [
                    T=at::Generator
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(183): warning C4624: 'c10::constexpr_storage_t<T>': destructor was implicitly defined as deleted
                with
                [
                    T=c10::impl::InlineDeviceGuard<c10::impl::VirtualGuardImpl>
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(367): note: see reference to class template instantiation 'c10::constexpr_storage_t<T>' being compiled
                with
                [
                    T=c10::impl::InlineDeviceGuard<c10::impl::VirtualGuardImpl>
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(427): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base<T>' being compiled
                with
                [
                    T=c10::impl::InlineDeviceGuard<c10::impl::VirtualGuardImpl>
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(427): note: see reference to alias template instantiation 'c10::OptionalBase<T>' being compiled
                with
                [
                    T=c10::impl::InlineDeviceGuard<c10::impl::VirtualGuardImpl>
                ]
        D:\anaconda3\envs\detectron2\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
        D:\anaconda3\envs\detectron2\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
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(395): warning C4624: 'c10::trivially_copyable_optimization_optional_base<T>': destructor was implicitly defined as deleted
                with
                [
                    T=c10::impl::InlineDeviceGuard<c10::impl::VirtualGuardImpl>
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(183): warning C4624: 'c10::constexpr_storage_t<T>': destructor was implicitly defined as deleted
                with
                [
                    T=std::string
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(367): note: see reference to class template instantiation 'c10::constexpr_storage_t<T>' being compiled
                with
                [
                    T=std::string
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(427): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base<T>' being compiled
                with
                [
                    T=std::string
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(427): note: see reference to alias template instantiation 'c10::OptionalBase<T>' being compiled
                with
                [
                    T=std::string
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\ATen/core/jit_type_base.h(107): note: see reference to class template instantiation 'c10::optional<std::string>' being compiled
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(395): warning C4624: 'c10::trivially_copyable_optimization_optional_base<T>': destructor was implicitly defined as deleted
                with
                [
                    T=std::string
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(183): warning C4624: 'c10::constexpr_storage_t<T>': destructor was implicitly defined as deleted
                with
                [
                    T=std::vector<c10::ShapeSymbol,std::allocator<c10::ShapeSymbol>>
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(367): note: see reference to class template instantiation 'c10::constexpr_storage_t<T>' being compiled
                with
                [
                    T=std::vector<c10::ShapeSymbol,std::allocator<c10::ShapeSymbol>>
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(427): 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>>
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(427): note: see reference to alias template instantiation 'c10::OptionalBase<T>' being compiled
                with
                [
                    T=std::vector<c10::ShapeSymbol,std::allocator<c10::ShapeSymbol>>
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\ATen/core/jit_type.h(351): note: see reference to class template instantiation 'c10::optional<std::vector<c10::ShapeSymbol,std::allocator<c10::ShapeSymbol>>>' being compiled
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(395): 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>>
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(183): 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>>>
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(367): 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>>>
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(427): 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>>>
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(427): note: see reference to alias template instantiation 'c10::OptionalBase<T>' being compiled
                with
                [
                    T=std::vector<c10::optional<c10::Stride>,std::allocator<c10::optional<c10::Stride>>>
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\ATen/core/jit_type.h(425): note: see reference to class template instantiation 'c10::optional<std::vector<c10::optional<c10::Stride>,std::allocator<c10::optional<c10::Stride>>>>' being compiled
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\ATen/core/jit_type.h(664): note: see reference to class template instantiation 'c10::VaryingShape<c10::Stride>' being compiled
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(395): 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>>>
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(183): 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>>>
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(367): 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>>>
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(427): 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>>>
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(427): note: see reference to alias template instantiation 'c10::OptionalBase<T>' being compiled
                with
                [
                    T=std::vector<c10::optional<int64_t>,std::allocator<c10::optional<int64_t>>>
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\ATen/core/jit_type.h(425): note: see reference to class template instantiation 'c10::optional<std::vector<c10::optional<int64_t>,std::allocator<c10::optional<int64_t>>>>' being compiled
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\ATen/core/jit_type.h(470): note: see reference to class template instantiation 'c10::VaryingShape<int64_t>' being compiled
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(395): 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>>>
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(183): warning C4624: 'c10::constexpr_storage_t<T>': destructor was implicitly defined as deleted
                with
                [
                    T=std::vector<int64_t,std::allocator<int64_t>>
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(367): note: see reference to class template instantiation 'c10::constexpr_storage_t<T>' being compiled
                with
                [
                    T=std::vector<int64_t,std::allocator<int64_t>>
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(427): 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>>
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(427): note: see reference to alias template instantiation 'c10::OptionalBase<T>' being compiled
                with
                [
                    T=std::vector<int64_t,std::allocator<int64_t>>
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\ATen/core/jit_type.h(568): note: see reference to class template instantiation 'c10::optional<std::vector<int64_t,std::allocator<int64_t>>>' being compiled
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(395): 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>>
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(183): warning C4624: 'c10::constexpr_storage_t<T>': destructor was implicitly defined as deleted
                with
                [
                    T=c10::QualifiedName
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(367): note: see reference to class template instantiation 'c10::constexpr_storage_t<T>' being compiled
                with
                [
                    T=c10::QualifiedName
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(427): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base<T>' being compiled
                with
                [
                    T=c10::QualifiedName
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(427): note: see reference to alias template instantiation 'c10::OptionalBase<T>' being compiled
                with
                [
                    T=c10::QualifiedName
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\ATen/core/jit_type.h(903): note: see reference to class template instantiation 'c10::optional<c10::QualifiedName>' being compiled
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(395): warning C4624: 'c10::trivially_copyable_optimization_optional_base<T>': destructor was implicitly defined as deleted
                with
                [
                    T=c10::QualifiedName
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(183): warning C4624: 'c10::constexpr_storage_t<T>': destructor was implicitly defined as deleted
                with
                [
                    T=c10::impl::InlineStreamGuard<c10::impl::VirtualGuardImpl>
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(367): note: see reference to class template instantiation 'c10::constexpr_storage_t<T>' being compiled
                with
                [
                    T=c10::impl::InlineStreamGuard<c10::impl::VirtualGuardImpl>
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(427): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base<T>' being compiled
                with
                [
                    T=c10::impl::InlineStreamGuard<c10::impl::VirtualGuardImpl>
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(427): note: see reference to alias template instantiation 'c10::OptionalBase<T>' being compiled
                with
                [
                    T=c10::impl::InlineStreamGuard<c10::impl::VirtualGuardImpl>
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/core/impl/InlineStreamGuard.h(196): note: see reference to class template instantiation 'c10::optional<c10::impl::InlineStreamGuard<c10::impl::VirtualGuardImpl>>' being compiled
        D:\anaconda3\envs\detectron2\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
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(395): warning C4624: 'c10::trivially_copyable_optimization_optional_base<T>': destructor was implicitly defined as deleted
                with
                [
                    T=c10::impl::InlineStreamGuard<c10::impl::VirtualGuardImpl>
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(183): warning C4624: 'c10::constexpr_storage_t<T>': destructor was implicitly defined as deleted
                with
                [
                    T=c10::impl::VirtualGuardImpl
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(367): note: see reference to class template instantiation 'c10::constexpr_storage_t<T>' being compiled
                with
                [
                    T=c10::impl::VirtualGuardImpl
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(427): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base<T>' being compiled
                with
                [
                    T=c10::impl::VirtualGuardImpl
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(427): note: see reference to alias template instantiation 'c10::OptionalBase<T>' being compiled
                with
                [
                    T=c10::impl::VirtualGuardImpl
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/core/impl/InlineStreamGuard.h(231): note: see reference to class template instantiation 'c10::optional<T>' being compiled
                with
                [
                    T=c10::impl::VirtualGuardImpl
                ]
        D:\anaconda3\envs\detectron2\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
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(395): warning C4624: 'c10::trivially_copyable_optimization_optional_base<T>': destructor was implicitly defined as deleted
                with
                [
                    T=c10::impl::VirtualGuardImpl
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(183): warning C4624: 'c10::constexpr_storage_t<T>': destructor was implicitly defined as deleted
                with
                [
                    T=std::vector<std::reference_wrapper<const c10::DataPtr>,std::allocator<std::reference_wrapper<const c10::DataPtr>>>
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(367): note: see reference to class template instantiation 'c10::constexpr_storage_t<T>' being compiled
                with
                [
                    T=std::vector<std::reference_wrapper<const c10::DataPtr>,std::allocator<std::reference_wrapper<const c10::DataPtr>>>
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(427): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base<T>' being compiled
                with
                [
                    T=std::vector<std::reference_wrapper<const c10::DataPtr>,std::allocator<std::reference_wrapper<const c10::DataPtr>>>
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(427): note: see reference to alias template instantiation 'c10::OptionalBase<T>' being compiled
                with
                [
                    T=std::vector<std::reference_wrapper<const c10::DataPtr>,std::allocator<std::reference_wrapper<const c10::DataPtr>>>
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\ATen/core/ivalue_inl.h(362): note: see reference to class template instantiation 'c10::optional<std::vector<std::reference_wrapper<const c10::DataPtr>,std::allocator<std::reference_wrapper<const c10::DataPtr>>>>' being compiled
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(395): warning C4624: 'c10::trivially_copyable_optimization_optional_base<T>': destructor was implicitly defined as deleted
                with
                [
                    T=std::vector<std::reference_wrapper<const c10::DataPtr>,std::allocator<std::reference_wrapper<const c10::DataPtr>>>
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(183): warning C4624: 'c10::constexpr_storage_t<T>': destructor was implicitly defined as deleted
                with
                [
                    T=c10::OperatorName
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(367): note: see reference to class template instantiation 'c10::constexpr_storage_t<T>' being compiled
                with
                [
                    T=c10::OperatorName
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(427): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base<T>' being compiled
                with
                [
                    T=c10::OperatorName
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(427): note: see reference to alias template instantiation 'c10::OptionalBase<T>' being compiled
                with
                [
                    T=c10::OperatorName
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\ATen/record_function.h(306): note: see reference to class template instantiation 'c10::optional<c10::OperatorName>' being compiled
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(395): warning C4624: 'c10::trivially_copyable_optimization_optional_base<T>': destructor was implicitly defined as deleted
                with
                [
                    T=c10::OperatorName
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(183): warning C4624: 'c10::constexpr_storage_t<T>': destructor was implicitly defined as deleted
                with
                [
                    T=at::DimVector
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(367): note: see reference to class template instantiation 'c10::constexpr_storage_t<T>' being compiled
                with
                [
                    T=at::DimVector
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(427): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base<T>' being compiled
                with
                [
                    T=at::DimVector
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(427): note: see reference to alias template instantiation 'c10::OptionalBase<T>' being compiled
                with
                [
                    T=at::DimVector
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\ATen/TensorIterator.h(616): note: see reference to class template instantiation 'c10::optional<at::DimVector>' being compiled
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(395): warning C4624: 'c10::trivially_copyable_optimization_optional_base<T>': destructor was implicitly defined as deleted
                with
                [
                    T=at::DimVector
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(183): warning C4624: 'c10::constexpr_storage_t<T>': destructor was implicitly defined as deleted
                with
                [
                    T=torch::autograd::ViewInfo
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(367): note: see reference to class template instantiation 'c10::constexpr_storage_t<T>' being compiled
                with
                [
                    T=torch::autograd::ViewInfo
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(427): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base<T>' being compiled
                with
                [
                    T=torch::autograd::ViewInfo
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(427): note: see reference to alias template instantiation 'c10::OptionalBase<T>' being compiled
                with
                [
                    T=torch::autograd::ViewInfo
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\torch/csrc/autograd/variable.h(529): note: see reference to class template instantiation 'c10::optional<torch::autograd::ViewInfo>' being compiled
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(395): warning C4624: 'c10::trivially_copyable_optimization_optional_base<T>': destructor was implicitly defined as deleted
                with
                [
                    T=torch::autograd::ViewInfo
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(183): warning C4624: 'c10::constexpr_storage_t<T>': destructor was implicitly defined as deleted
                with
                [
                    T=c10::IValue
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(367): note: see reference to class template instantiation 'c10::constexpr_storage_t<T>' being compiled
                with
                [
                    T=c10::IValue
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(427): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base<T>' being compiled
                with
                [
                    T=c10::IValue
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(427): note: see reference to alias template instantiation 'c10::OptionalBase<T>' being compiled
                with
                [
                    T=c10::IValue
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\ATen/core/function_schema.h(115): note: see reference to class template instantiation 'c10::optional<c10::IValue>' being compiled
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(395): warning C4624: 'c10::trivially_copyable_optimization_optional_base<T>': destructor was implicitly defined as deleted
                with
                [
                    T=c10::IValue
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(183): warning C4624: 'c10::constexpr_storage_t<T>': destructor was implicitly defined as deleted
                with
                [
                    T=c10::AliasInfo
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(367): note: see reference to class template instantiation 'c10::constexpr_storage_t<T>' being compiled
                with
                [
                    T=c10::AliasInfo
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(427): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base<T>' being compiled
                with
                [
                    T=c10::AliasInfo
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(427): note: see reference to alias template instantiation 'c10::OptionalBase<T>' being compiled
                with
                [
                    T=c10::AliasInfo
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\ATen/core/function_schema.h(118): note: see reference to class template instantiation 'c10::optional<c10::AliasInfo>' being compiled
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(395): warning C4624: 'c10::trivially_copyable_optimization_optional_base<T>': destructor was implicitly defined as deleted
                with
                [
                    T=c10::AliasInfo
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(183): warning C4624: 'c10::constexpr_storage_t<T>': destructor was implicitly defined as deleted
                with
                [
                    T=std::tuple<std::string,size_t,size_t>
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(367): note: see reference to class template instantiation 'c10::constexpr_storage_t<T>' being compiled
                with
                [
                    T=std::tuple<std::string,size_t,size_t>
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(427): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base<T>' being compiled
                with
                [
                    T=std::tuple<std::string,size_t,size_t>
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(427): note: see reference to alias template instantiation 'c10::OptionalBase<T>' being compiled
                with
                [
                    T=std::tuple<std::string,size_t,size_t>
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\torch/csrc/jit/frontend/source_range.h(146): note: see reference to class template instantiation 'c10::optional<std::tuple<std::string,size_t,size_t>>' being compiled
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(395): warning C4624: 'c10::trivially_copyable_optimization_optional_base<T>': destructor was implicitly defined as deleted
                with
                [
                    T=std::tuple<std::string,size_t,size_t>
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(183): warning C4624: 'c10::constexpr_storage_t<T>': destructor was implicitly defined as deleted
                with
                [
                    T=torch::jit::SourceRange
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(367): note: see reference to class template instantiation 'c10::constexpr_storage_t<T>' being compiled
                with
                [
                    T=torch::jit::SourceRange
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(427): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base<T>' being compiled
                with
                [
                    T=torch::jit::SourceRange
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(427): note: see reference to alias template instantiation 'c10::OptionalBase<T>' being compiled
                with
                [
                    T=torch::jit::SourceRange
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\torch/csrc/jit/frontend/source_range.h(169): note: see reference to class template instantiation 'c10::optional<torch::jit::SourceRange>' being compiled
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(395): warning C4624: 'c10::trivially_copyable_optimization_optional_base<T>': destructor was implicitly defined as deleted
                with
                [
                    T=torch::jit::SourceRange
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(183): warning C4624: 'c10::constexpr_storage_t<T>': destructor was implicitly defined as deleted
                with
                [
                    T=torch::jit::InlinedCallStackPtr
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(367): note: see reference to class template instantiation 'c10::constexpr_storage_t<T>' being compiled
                with
                [
                    T=torch::jit::InlinedCallStackPtr
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(427): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base<T>' being compiled
                with
                [
                    T=torch::jit::InlinedCallStackPtr
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(427): note: see reference to alias template instantiation 'c10::OptionalBase<T>' being compiled
                with
                [
                    T=torch::jit::InlinedCallStackPtr
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\torch/csrc/jit/ir/scope.h(121): note: see reference to class template instantiation 'c10::optional<torch::jit::InlinedCallStackPtr>' being compiled
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(395): warning C4624: 'c10::trivially_copyable_optimization_optional_base<T>': destructor was implicitly defined as deleted
                with
                [
                    T=torch::jit::InlinedCallStackPtr
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(183): warning C4624: 'c10::constexpr_storage_t<T>': destructor was implicitly defined as deleted
                with
                [
                    T=torch::jit::ModuleInstanceInfo
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(367): note: see reference to class template instantiation 'c10::constexpr_storage_t<T>' being compiled
                with
                [
                    T=torch::jit::ModuleInstanceInfo
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(427): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base<T>' being compiled
                with
                [
                    T=torch::jit::ModuleInstanceInfo
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(427): note: see reference to alias template instantiation 'c10::OptionalBase<T>' being compiled
                with
                [
                    T=torch::jit::ModuleInstanceInfo
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\torch/csrc/jit/ir/scope.h(125): note: see reference to class template instantiation 'c10::optional<torch::jit::ModuleInstanceInfo>' being compiled
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(395): warning C4624: 'c10::trivially_copyable_optimization_optional_base<T>': destructor was implicitly defined as deleted
                with
                [
                    T=torch::jit::ModuleInstanceInfo
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(183): warning C4624: 'c10::constexpr_storage_t<T>': destructor was implicitly defined as deleted
                with
                [
                    T=torch::jit::ScopePtr
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(367): note: see reference to class template instantiation 'c10::constexpr_storage_t<T>' being compiled
                with
                [
                    T=torch::jit::ScopePtr
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(427): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base<T>' being compiled
                with
                [
                    T=torch::jit::ScopePtr
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(427): note: see reference to alias template instantiation 'c10::OptionalBase<T>' being compiled
                with
                [
                    T=torch::jit::ScopePtr
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\torch/csrc/jit/ir/constants.h(29): note: see reference to class template instantiation 'c10::optional<torch::jit::ScopePtr>' being compiled
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(395): warning C4624: 'c10::trivially_copyable_optimization_optional_base<T>': destructor was implicitly defined as deleted
                with
                [
                    T=torch::jit::ScopePtr
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(183): warning C4624: 'c10::constexpr_storage_t<T>': destructor was implicitly defined as deleted
                with
                [
                    T=c10::impl::AnnotatedSchema
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(367): note: see reference to class template instantiation 'c10::constexpr_storage_t<T>' being compiled
                with
                [
                    T=c10::impl::AnnotatedSchema
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(427): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base<T>' being compiled
                with
                [
                    T=c10::impl::AnnotatedSchema
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(427): note: see reference to alias template instantiation 'c10::OptionalBase<T>' being compiled
                with
                [
                    T=c10::impl::AnnotatedSchema
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\ATen/core/dispatch/OperatorEntry.h(182): note: see reference to class template instantiation 'c10::optional<c10::impl::AnnotatedSchema>' being compiled
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(395): warning C4624: 'c10::trivially_copyable_optimization_optional_base<T>': destructor was implicitly defined as deleted
                with
                [
                    T=c10::impl::AnnotatedSchema
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(183): warning C4624: 'c10::constexpr_storage_t<T>': destructor was implicitly defined as deleted
                with
                [
                    T=c10::impl::OperatorEntry::CppSignatureWithDebug
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(367): note: see reference to class template instantiation 'c10::constexpr_storage_t<T>' being compiled
                with
                [
                    T=c10::impl::OperatorEntry::CppSignatureWithDebug
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(427): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base<T>' being compiled
                with
                [
                    T=c10::impl::OperatorEntry::CppSignatureWithDebug
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(427): note: see reference to alias template instantiation 'c10::OptionalBase<T>' being compiled
                with
                [
                    T=c10::impl::OperatorEntry::CppSignatureWithDebug
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\ATen/core/dispatch/OperatorEntry.h(234): note: see reference to class template instantiation 'c10::optional<c10::impl::OperatorEntry::CppSignatureWithDebug>' being compiled
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(395): warning C4624: 'c10::trivially_copyable_optimization_optional_base<T>': destructor was implicitly defined as deleted
                with
                [
                    T=c10::impl::OperatorEntry::CppSignatureWithDebug
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(183): warning C4624: 'c10::constexpr_storage_t<T>': destructor was implicitly defined as deleted
                with
                [
                    T=c10::either<c10::OperatorName,c10::FunctionSchema>
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(367): note: see reference to class template instantiation 'c10::constexpr_storage_t<T>' being compiled
                with
                [
                    T=c10::either<c10::OperatorName,c10::FunctionSchema>
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(427): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base<T>' being compiled
                with
                [
                    T=c10::either<c10::OperatorName,c10::FunctionSchema>
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(427): note: see reference to alias template instantiation 'c10::OptionalBase<T>' being compiled
                with
                [
                    T=c10::either<c10::OperatorName,c10::FunctionSchema>
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\ATen/core/op_registration/op_registration.h(434): note: see reference to class template instantiation 'c10::optional<c10::either<c10::OperatorName,c10::FunctionSchema>>' being compiled
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(395): warning C4624: 'c10::trivially_copyable_optimization_optional_base<T>': destructor was implicitly defined as deleted
                with
                [
                    T=c10::either<c10::OperatorName,c10::FunctionSchema>
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(183): warning C4624: 'c10::constexpr_storage_t<T>': destructor was implicitly defined as deleted
                with
                [
                    T=at::ThreadLocalState
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(367): note: see reference to class template instantiation 'c10::constexpr_storage_t<T>' being compiled
                with
                [
                    T=at::ThreadLocalState
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(427): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base<T>' being compiled
                with
                [
                    T=at::ThreadLocalState
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(427): note: see reference to alias template instantiation 'c10::OptionalBase<T>' being compiled
                with
                [
                    T=at::ThreadLocalState
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\torch/csrc/jit/runtime/interpreter.h(141): note: see reference to class template instantiation 'c10::optional<at::ThreadLocalState>' being compiled
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(395): warning C4624: 'c10::trivially_copyable_optimization_optional_base<T>': destructor was implicitly defined as deleted
                with
                [
                    T=at::ThreadLocalState
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(183): warning C4624: 'c10::constexpr_storage_t<T>': destructor was implicitly defined as deleted
                with
                [
                    T=std::shared_ptr<torch::jit::Graph>
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(367): note: see reference to class template instantiation 'c10::constexpr_storage_t<T>' being compiled
                with
                [
                    T=std::shared_ptr<torch::jit::Graph>
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(427): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base<T>' being compiled
                with
                [
                    T=std::shared_ptr<torch::jit::Graph>
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(427): note: see reference to alias template instantiation 'c10::OptionalBase<T>' being compiled
                with
                [
                    T=std::shared_ptr<torch::jit::Graph>
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\torch/csrc/jit/api/function_impl.h(124): note: see reference to class template instantiation 'c10::optional<std::shared_ptr<torch::jit::Graph>>' being compiled
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(395): warning C4624: 'c10::trivially_copyable_optimization_optional_base<T>': destructor was implicitly defined as deleted
                with
                [
                    T=std::shared_ptr<torch::jit::Graph>
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(183): warning C4624: 'c10::constexpr_storage_t<T>': destructor was implicitly defined as deleted
                with
                [
                    T=torch::jit::Method
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(367): note: see reference to class template instantiation 'c10::constexpr_storage_t<T>' being compiled
                with
                [
                    T=torch::jit::Method
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(427): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base<T>' being compiled
                with
                [
                    T=torch::jit::Method
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(427): note: see reference to alias template instantiation 'c10::OptionalBase<T>' being compiled
                with
                [
                    T=torch::jit::Method
                ]
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\torch/csrc/jit/api/object.h(41): note: see reference to class template instantiation 'c10::optional<torch::jit::Method>' being compiled
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\include\c10/util/Optional.h(395): warning C4624: 'c10::trivially_copyable_optimization_optional_base<T>': destructor was implicitly defined as deleted
                with
                [
                    T=torch::jit::Method
                ]
        "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.2\bin\nvcc" -c "D:\Computer Vision\detectron2-computer-vision\detectron2\layers\csrc\ROIAlignRotated\ROIAlignRotated_cuda.cu" -o "build\temp.win-amd64-cpython-38\Release\Computer Vision\detectron2-computer-vision\detectron2\layers\csrc\ROIAlignRotated\ROIAlignRotated_cuda.obj" "-ID:\Computer Vision\detectron2-computer-vision\detectron2\layers\csrc" -ID:\anaconda3\envs\detectron2\lib\site-packages\torch\include -ID:\anaconda3\envs\detectron2\lib\site-packages\torch\include\torch\csrc\api\include -ID:\anaconda3\envs\detectron2\lib\site-packages\torch\include\TH -ID:\anaconda3\envs\detectron2\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.2\include" -ID:\anaconda3\envs\detectron2\include -ID:\anaconda3\envs\detectron2\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.34.31933\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-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\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\shared" "-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" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcompiler /EHsc -Xcompiler /wd4190 -Xcompiler /wd4018 -Xcompiler /wd4275 -Xcompiler /wd4267 -Xcompiler /wd4244 -Xcompiler /wd4251 -Xcompiler /wd4819 -Xcompiler /MD -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -O3 -DCUDA_HAS_FP16=1 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=compute_75 -gencode=arch=compute_75,code=sm_75 --use-local-env
        C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.2\include\crt/host_config.h(160): fatal error C1189: #error:  -- unsupported Microsoft Visual Studio version! Only the versions between 2017 and 2019 (inclusive) are supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.
        ROIAlignRotated_cuda.cu
        D:\anaconda3\envs\detectron2\lib\site-packages\setuptools\command\easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
          warnings.warn(
        D:\anaconda3\envs\detectron2\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
          warnings.warn(
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\utils\cpp_extension.py:370: 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.'))
        D:\anaconda3\envs\detectron2\lib\site-packages\torch\utils\cpp_extension.py:305: 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}')
        error: command 'C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.2\\bin\\nvcc.exe' failed with exit code 2
        [end of output]

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

I have installed visual studio compiler installed, Is it because of CUDA 11.2? I haven't tried updating my CUDA drivers because on my other environment I am using tensorflow-2.10.

System config: GPU:- GTX 1650 RAM:- 8GB CUDA 11.2 Python = 3.9

github-actions[bot] commented 1 year ago

You've chosen to report an unexpected problem or bug. Unless you already know the root cause of it, please include details about it by filling the issue template. The following information is missing: "Instructions To Reproduce the Issue and Full Logs";

Achraf1-1 commented 1 year ago

Had already the same issue, try to see this: https://blog.csdn.net/m0_56192771/article/details/123194532

tkhe commented 1 year ago

I think this may be because your VS version is too new, you can try to modify setup.py by adding -allow-unsupported-compiler.

extra_compile_args["nvcc"] = [
    "-O3",
    "-DCUDA_HAS_FP16=1",
    "-D__CUDA_NO_HALF_OPERATORS__",
    "-D__CUDA_NO_HALF_CONVERSIONS__",
    "-D__CUDA_NO_HALF2_OPERATORS__",
    "-allow-unsupported-compiler",
]