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.59k stars 7.5k forks source link

Install Detectron2 #5395

Open sizhongzhang1 opened 4 days ago

sizhongzhang1 commented 4 days ago
  D:\conda\envs\openmmlab\lib\site-packages\torch\include\c10/util/Optional.h(187): warning C4624: “c10::constexpr_storage_t<T>”: 已将析构函数隐式定义为“已删除”
          with
          [
              T=std::vector<double,std::allocator<double>>
          ]
  D:\conda\envs\openmmlab\lib\site-packages\torch\include\c10/util/Optional.h(187): note: 模板实例化上下文(最早的实例化 上下文)为
  D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/options/upsampling.h(26): note: 查看对正在编译的 类 模板 实例化“c10::optional<std::vector<T,std::allocator<T>>>”的引用
          with
          [
              T=double
          ]
  D:\conda\envs\openmmlab\lib\site-packages\torch\include\c10/util/Optional.h(540): note: 查看对正在编译的 别名 模板 实 例化“c10::OptionalBase<T>”的引用
          with
          [
              T=std::vector<double,std::allocator<double>>
          ]
  D:\conda\envs\openmmlab\lib\site-packages\torch\include\c10/util/Optional.h(528): note: 查看对正在编译的 类 模板 实例 化“c10::trivially_copyable_optimization_optional_base<T>”的引用
          with
          [
              T=std::vector<double,std::allocator<double>>
          ]
  D:\conda\envs\openmmlab\lib\site-packages\torch\include\c10/util/Optional.h(397): note: 查看对正在编译的 类 模板 实例 化“c10::constexpr_storage_t<T>”的引用
          with
          [
              T=std::vector<double,std::allocator<double>>
          ]
  D:\conda\envs\openmmlab\lib\site-packages\torch\include\c10/util/Optional.h(395): warning C4624: “c10::trivially_copyable_optimization_optional_base<T>”: 已将析构函数隐式定义为“已删除”
          with
          [
              T=std::vector<double,std::allocator<double>>
          ]
  注意: 包含文件:      D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/functional/vision.h
  注意: 包含文件:       D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/options/vision.h
  注意: 包含文件:      D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/functional/instancenorm.h
  注意: 包含文件:       D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/options/instancenorm.h
  注意: 包含文件:     D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/init.h
  注意: 包含文件:     D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules.h
  注意: 包含文件:      D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/common.h
  注意: 包含文件:      D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/container/any.h
  注意: 包含文件:      D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/container/functional.h
  注意: 包含文件:      D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/container/moduledict.h
  注意: 包含文件:      D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/container/modulelist.h
  注意: 包含文件:      D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/container/named_any.h
  注意: 包含文件:      D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/container/sequential.h
  注意: 包含文件:      D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/container/parameterdict.h
  注意: 包含文件:      D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/container/parameterlist.h
  注意: 包含文件:      D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/adaptive.h
  注意: 包含文件:       D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/linear.h
  注意: 包含文件:       D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/options/adaptive.h
  注意: 包含文件:      D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/batchnorm.h
  注意: 包含文件:      D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/instancenorm.h
  注意: 包含文件:      D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/conv.h
  注意: 包含文件:       D:\conda\envs\openmmlab\lib\site-packages\torch\include\c10/util/overloaded.h
  注意: 包含文件:      D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/dropout.h
  注意: 包含文件:      D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/distance.h
  注意: 包含文件:      D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/embedding.h
  注意: 包含文件:      D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/fold.h
  注意: 包含文件:      D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/loss.h
  注意: 包含文件:      D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/padding.h
  注意: 包含文件:      D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/pooling.h
  注意: 包含文件:      D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h
  注意: 包含文件:       D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/options/rnn.h
  注意: 包含文件:       D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/utils/rnn.h
  D:\conda\envs\openmmlab\lib\site-packages\torch\include\c10/util/Optional.h(187): warning C4624: “c10::constexpr_storage_t<T>”: 已将析构函数隐式定义为“已删除”
          with
          [
              T=std::tuple<at::Tensor,at::Tensor>
          ]
  D:\conda\envs\openmmlab\lib\site-packages\torch\include\c10/util/Optional.h(187): note: 模板实例化上下文(最早的实例化 上下文)为
  D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(155): note: 查看对正在编译的 类 模板 实例化“c10::optional<std::tuple<at::Tensor,at::Tensor>>”的引用
  D:\conda\envs\openmmlab\lib\site-packages\torch\include\c10/util/Optional.h(540): note: 查看对正在编译的 别名 模板 实 例化“c10::OptionalBase<T>”的引用
          with
          [
              T=std::tuple<at::Tensor,at::Tensor>
          ]
  D:\conda\envs\openmmlab\lib\site-packages\torch\include\c10/util/Optional.h(528): note: 查看对正在编译的 类 模板 实例 化“c10::trivially_copyable_optimization_optional_base<T>”的引用
          with
          [
              T=std::tuple<at::Tensor,at::Tensor>
          ]
  D:\conda\envs\openmmlab\lib\site-packages\torch\include\c10/util/Optional.h(397): note: 查看对正在编译的 类 模板 实例 化“c10::constexpr_storage_t<T>”的引用
          with
          [
              T=std::tuple<at::Tensor,at::Tensor>
          ]
  D:\conda\envs\openmmlab\lib\site-packages\torch\include\c10/util/Optional.h(395): warning C4624: “c10::trivially_copyable_optimization_optional_base<T>”: 已将析构函数隐式定义为“已删除”
          with
          [
              T=std::tuple<at::Tensor,at::Tensor>
          ]
  注意: 包含文件:      D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/pixelshuffle.h
  注意: 包含文件:      D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/upsampling.h
  注意: 包含文件:      D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/activation.h
  注意: 包含文件:      D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/normalization.h
  注意: 包含文件:       D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/_functions.h
  注意: 包含文件:        D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch/csrc/autograd/custom_function.h
  注意: 包含文件:         D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch/csrc/autograd/function.h
  注意: 包含文件:          D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch/csrc/autograd/anomaly_mode.h
  注意: 包含文件:          D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch/csrc/autograd/saved_variable.h
  注意: 包含文件:           D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch/csrc/autograd/saved_variable_hooks.h
  注意: 包含文件:          D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch/csrc/autograd/input_metadata.h
  注意: 包含文件:      D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/transformerlayer.h
  注意: 包含文件:       D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/options/transformerlayer.h
  注意: 包含文件:      D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/transformercoder.h
  注意: 包含文件:       D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/options/transformercoder.h
  注意: 包含文件:      D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/modules/transformer.h
  注意: 包含文件:       D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/options/transformer.h
  注意: 包含文件:     D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/options.h
  注意: 包含文件:     D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/utils.h
  注意: 包含文件:      D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/utils/clip_grad.h
  注意: 包含文件:      D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/nn/utils/convert_parameters.h
  注意: 包含文件:    D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim.h
  注意: 包含文件:     D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/adagrad.h
  注意: 包含文件:      D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/optimizer.h
  注意: 包含文件:      D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/serialize.h
  注意: 包含文件:     D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/adam.h
  注意: 包含文件:     D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/adamw.h
  注意: 包含文件:     D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/lbfgs.h
  D:\conda\envs\openmmlab\lib\site-packages\torch\include\c10/util/Optional.h(187): warning C4624: “c10::constexpr_storage_t<T>”: 已将析构函数隐式定义为“已删除”
          with
          [
              T=std::vector<at::Tensor,std::allocator<at::Tensor>>
          ]
  D:\conda\envs\openmmlab\lib\site-packages\torch\include\c10/util/Optional.h(187): note: 模板实例化上下文(最早的实例化 上下文)为
  D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/lbfgs.h(46): note: 查看对正在编译的 类 模板 实例化“c10::optional<std::vector<at::Tensor,std::allocator<at::Tensor>>>”的引用
  D:\conda\envs\openmmlab\lib\site-packages\torch\include\c10/util/Optional.h(540): note: 查看对正在编译的 别名 模板 实 例化“c10::OptionalBase<T>”的引用
          with
          [
              T=std::vector<at::Tensor,std::allocator<at::Tensor>>
          ]
  D:\conda\envs\openmmlab\lib\site-packages\torch\include\c10/util/Optional.h(528): note: 查看对正在编译的 类 模板 实例 化“c10::trivially_copyable_optimization_optional_base<T>”的引用
          with
          [
              T=std::vector<at::Tensor,std::allocator<at::Tensor>>
          ]
  D:\conda\envs\openmmlab\lib\site-packages\torch\include\c10/util/Optional.h(397): note: 查看对正在编译的 类 模板 实例 化“c10::constexpr_storage_t<T>”的引用
          with
          [
              T=std::vector<at::Tensor,std::allocator<at::Tensor>>
          ]
  D:\conda\envs\openmmlab\lib\site-packages\torch\include\c10/util/Optional.h(395): warning C4624: “c10::trivially_copyable_optimization_optional_base<T>”: 已将析构函数隐式定义为“已删除”
          with
          [
              T=std::vector<at::Tensor,std::allocator<at::Tensor>>
          ]
  注意: 包含文件:     D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/rmsprop.h
  注意: 包含文件:     D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/sgd.h
  注意: 包含文件:     D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/schedulers/lr_scheduler.h
  注意: 包含文件:     D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/optim/schedulers/step_lr.h
  注意: 包含文件:    D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/sparse.h
  注意: 包含文件:    D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/special.h
  注意: 包含文件:    D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/autograd.h
  注意: 包含文件:     D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch/csrc/autograd/autograd.h
  注意: 包含文件:     D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch/csrc/autograd/autograd_not_implemented_fallback.h
  注意: 包含文件:    D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/version.h
  注意: 包含文件:   D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch\csrc\api\include\torch/python.h
  注意: 包含文件:    D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch/csrc/Device.h
  注意: 包含文件:     D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch/csrc/python_headers.h
  注意: 包含文件:      D:\conda\envs\openmmlab\include\Python.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\patchlevel.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\pyconfig.h
  注意: 包含文件:        C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\io.h
  注意: 包含文件:         C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\corecrt_io.h
  注意: 包含文件:        C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared\basetsd.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\pymacconfig.h
  注意: 包含文件:       C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\assert.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\pyport.h
  注意: 包含文件:        C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\math.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\pymacro.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\pymath.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\pytime.h
  注意: 包含文件:        D:\conda\envs\openmmlab\include\object.h
  注意: 包含文件:         D:\conda\envs\openmmlab\include\pymem.h
  注意: 包含文件:          D:\conda\envs\openmmlab\include\cpython/pymem.h
  注意: 包含文件:         D:\conda\envs\openmmlab\include\cpython/object.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\objimpl.h
  注意: 包含文件:        D:\conda\envs\openmmlab\include\cpython/objimpl.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\typeslots.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\pyhash.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\pydebug.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\bytearrayobject.h
  注意: 包含文件:        C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.42.34433\include\stdarg.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\bytesobject.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\unicodeobject.h
  注意: 包含文件:        D:\conda\envs\openmmlab\include\cpython/unicodeobject.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\longobject.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\longintrepr.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\boolobject.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\floatobject.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\complexobject.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\rangeobject.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\memoryobject.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\tupleobject.h
  注意: 包含文件:        D:\conda\envs\openmmlab\include\cpython/tupleobject.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\listobject.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\dictobject.h
  注意: 包含文件:        D:\conda\envs\openmmlab\include\cpython/dictobject.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\odictobject.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\enumobject.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\setobject.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\methodobject.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\moduleobject.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\funcobject.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\classobject.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\fileobject.h
  注意: 包含文件:        D:\conda\envs\openmmlab\include\cpython/fileobject.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\pycapsule.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\traceback.h
  注意: 包含文件:        D:\conda\envs\openmmlab\include\cpython/traceback.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\sliceobject.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\cellobject.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\iterobject.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\genobject.h
  注意: 包含文件:        D:\conda\envs\openmmlab\include\pystate.h
  注意: 包含文件:         D:\conda\envs\openmmlab\include\pythread.h
  注意: 包含文件:         D:\conda\envs\openmmlab\include\cpython/pystate.h
  注意: 包含文件:          D:\conda\envs\openmmlab\include\cpython/initconfig.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\descrobject.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\warnings.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\weakrefobject.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\structseq.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\namespaceobject.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\picklebufobject.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\codecs.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\pyerrors.h
  注意: 包含文件:        D:\conda\envs\openmmlab\include\cpython/pyerrors.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\context.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\pyarena.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\modsupport.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\compile.h
  注意: 包含文件:        D:\conda\envs\openmmlab\include\code.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\pythonrun.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\pylifecycle.h
  注意: 包含文件:        D:\conda\envs\openmmlab\include\cpython/pylifecycle.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\ceval.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\sysmodule.h
  注意: 包含文件:        D:\conda\envs\openmmlab\include\cpython/sysmodule.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\osmodule.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\intrcheck.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\import.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\abstract.h
  注意: 包含文件:        D:\conda\envs\openmmlab\include\cpython/abstract.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\bltinmodule.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\eval.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\pyctype.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\pystrtod.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\pystrcmp.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\dtoa.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\fileutils.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\pyfpe.h
  注意: 包含文件:       D:\conda\envs\openmmlab\include\tracemalloc.h
  注意: 包含文件:    D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch/csrc/Dtype.h
  注意: 包含文件:    D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch/csrc/DynamicTypes.h
  注意: 包含文件:    D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch/csrc/utils/pybind.h
  注意: 包含文件:     D:\conda\envs\openmmlab\lib\site-packages\torch\include\pybind11/pybind11.h
  注意: 包含文件:      D:\conda\envs\openmmlab\lib\site-packages\torch\include\pybind11\attr.h
  注意: 包含文件:       D:\conda\envs\openmmlab\lib\site-packages\torch\include\pybind11\cast.h
  注意: 包含文件:        D:\conda\envs\openmmlab\lib\site-packages\torch\include\pybind11\pytypes.h
  注意: 包含文件:         D:\conda\envs\openmmlab\lib\site-packages\torch\include\pybind11\detail/common.h
  D:\conda\envs\openmmlab\lib\site-packages\torch\include\pybind11\detail/common.h(108): warning C4005: “HAVE_SNPRINTF”: 宏重定义
  D:\conda\envs\openmmlab\include\pyerrors.h(315): note: 参见“HAVE_SNPRINTF”的前一个定义
  注意: 包含文件:          D:\conda\envs\openmmlab\include\frameobject.h
  注意: 包含文件:         D:\conda\envs\openmmlab\lib\site-packages\torch\include\pybind11\buffer_info.h
  注意: 包含文件:        D:\conda\envs\openmmlab\lib\site-packages\torch\include\pybind11\detail/typeid.h
  注意: 包含文件:        D:\conda\envs\openmmlab\lib\site-packages\torch\include\pybind11\detail/descr.h
  注意: 包含文件:        D:\conda\envs\openmmlab\lib\site-packages\torch\include\pybind11\detail/internals.h
  注意: 包含文件:      D:\conda\envs\openmmlab\lib\site-packages\torch\include\pybind11\options.h
  注意: 包含文件:      D:\conda\envs\openmmlab\lib\site-packages\torch\include\pybind11\detail/class.h
  注意: 包含文件:      D:\conda\envs\openmmlab\lib\site-packages\torch\include\pybind11\detail/init.h
  注意: 包含文件:     D:\conda\envs\openmmlab\lib\site-packages\torch\include\pybind11/stl.h
  注意: 包含文件:      C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.42.34433\include\valarray
  注意: 包含文件:     D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch/csrc/autograd/python_variable.h
  注意: 包含文件:      D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch/csrc/Exceptions.h
  注意: 包含文件:       D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch/csrc/utils/auto_gil.h
  注意: 包含文件:       D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch/csrc/utils/cpp_stacktraces.h
  注意: 包含文件:       D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch/csrc/jit/runtime/jit_exception.h
  注意: 包含文件:       D:\conda\envs\openmmlab\lib\site-packages\torch\include\ATen/detail/FunctionTraits.h
  注意: 包含文件:     D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch/csrc/utils/python_tuples.h
  注意: 包含文件:      D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch/csrc/utils/object_ptr.h
  注意: 包含文件:      D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch/csrc/utils/python_numbers.h
  注意: 包含文件:       D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch/csrc/jit/frontend/tracer.h
  注意: 包含文件:       D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch/csrc/utils/tensor_numpy.h
  注意: 包含文件:     D:\conda\envs\openmmlab\lib\site-packages\torch\include\torch/csrc/Generator.h
  注意: 包含文件:  C:\Users\27227\AppData\Local\Temp\pip-req-build-_y0t9pkx\detectron2\layers\csrc\ROIAlignRotated/ROIAlignRotated.h
  注意: 包含文件:  C:\Users\27227\AppData\Local\Temp\pip-req-build-_y0t9pkx\detectron2\layers\csrc\box_iou_rotated/box_iou_rotated.h
  注意: 包含文件:  C:\Users\27227\AppData\Local\Temp\pip-req-build-_y0t9pkx\detectron2\layers\csrc\cocoeval/cocoeval.h
  注意: 包含文件:   D:\conda\envs\openmmlab\lib\site-packages\torch\include\pybind11/numpy.h
  注意: 包含文件:    D:\conda\envs\openmmlab\lib\site-packages\torch\include\pybind11\complex.h
  注意: 包含文件:   D:\conda\envs\openmmlab\lib\site-packages\torch\include\pybind11/stl_bind.h
  注意: 包含文件:    D:\conda\envs\openmmlab\lib\site-packages\torch\include\pybind11\operators.h
  注意: 包含文件:  C:\Users\27227\AppData\Local\Temp\pip-req-build-_y0t9pkx\detectron2\layers\csrc\deformable/deform_conv.h
  注意: 包含文件:  C:\Users\27227\AppData\Local\Temp\pip-req-build-_y0t9pkx\detectron2\layers\csrc\nms_rotated/nms_rotated.h
  ninja: build stopped: subcommand failed.
  Traceback (most recent call last):
    File "D:\conda\envs\openmmlab\lib\site-packages\torch\utils\cpp_extension.py", line 1808, in _run_ninja_build
      subprocess.run(
    File "D:\conda\envs\openmmlab\lib\subprocess.py", line 516, in run
      raise CalledProcessError(retcode, process.args,
  subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.

  The above exception was the direct cause of the following exception:

  Traceback (most recent call last):
    File "<string>", line 2, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File "C:\Users\27227\AppData\Local\Temp\pip-req-build-_y0t9pkx\setup.py", line 151, in <module>
      setup(
    File "D:\conda\envs\openmmlab\lib\site-packages\setuptools\__init__.py", line 87, in setup
      return distutils.core.setup(**attrs)
    File "D:\conda\envs\openmmlab\lib\site-packages\setuptools\_distutils\core.py", line 185, in setup
      return run_commands(dist)
    File "D:\conda\envs\openmmlab\lib\site-packages\setuptools\_distutils\core.py", line 201, in run_commands
      dist.run_commands()
    File "D:\conda\envs\openmmlab\lib\site-packages\setuptools\_distutils\dist.py", line 968, in run_commands
      self.run_command(cmd)
    File "D:\conda\envs\openmmlab\lib\site-packages\setuptools\dist.py", line 1217, in run_command
      super().run_command(command)
    File "D:\conda\envs\openmmlab\lib\site-packages\setuptools\_distutils\dist.py", line 987, in run_command
      cmd_obj.run()
    File "D:\conda\envs\openmmlab\lib\site-packages\setuptools\command\install.py", line 68, in run
      return orig.install.run(self)
    File "D:\conda\envs\openmmlab\lib\site-packages\setuptools\_distutils\command\install.py", line 698, in run
      self.run_command('build')
    File "D:\conda\envs\openmmlab\lib\site-packages\setuptools\_distutils\cmd.py", line 319, in run_command
      self.distribution.run_command(command)
    File "D:\conda\envs\openmmlab\lib\site-packages\setuptools\dist.py", line 1217, in run_command
      super().run_command(command)
    File "D:\conda\envs\openmmlab\lib\site-packages\setuptools\_distutils\dist.py", line 987, in run_command
      cmd_obj.run()
    File "D:\conda\envs\openmmlab\lib\site-packages\setuptools\_distutils\command\build.py", line 132, in run
      self.run_command(cmd_name)
    File "D:\conda\envs\openmmlab\lib\site-packages\setuptools\_distutils\cmd.py", line 319, in run_command
      self.distribution.run_command(command)
    File "D:\conda\envs\openmmlab\lib\site-packages\setuptools\dist.py", line 1217, in run_command
      super().run_command(command)
    File "D:\conda\envs\openmmlab\lib\site-packages\setuptools\_distutils\dist.py", line 987, in run_command
      cmd_obj.run()
    File "D:\conda\envs\openmmlab\lib\site-packages\setuptools\command\build_ext.py", line 84, in run
      _build_ext.run(self)
    File "D:\conda\envs\openmmlab\lib\site-packages\Cython\Distutils\old_build_ext.py", line 186, in run
      _build_ext.build_ext.run(self)
    File "D:\conda\envs\openmmlab\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 346, in run
      self.build_extensions()
    File "D:\conda\envs\openmmlab\lib\site-packages\torch\utils\cpp_extension.py", line 765, in build_extensions
      build_ext.build_extensions(self)
    File "D:\conda\envs\openmmlab\lib\site-packages\Cython\Distutils\old_build_ext.py", line 195, in build_extensions
      _build_ext.build_ext.build_extensions(self)
    File "D:\conda\envs\openmmlab\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 466, in build_extensions
      self._build_extensions_serial()
    File "D:\conda\envs\openmmlab\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 492, in _build_extensions_serial
      self.build_extension(ext)
    File "D:\conda\envs\openmmlab\lib\site-packages\setuptools\command\build_ext.py", line 246, in build_extension
      _build_ext.build_extension(self, ext)
    File "D:\conda\envs\openmmlab\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 547, in build_extension
      objects = self.compiler.compile(
    File "D:\conda\envs\openmmlab\lib\site-packages\torch\utils\cpp_extension.py", line 738, in win_wrap_ninja_compile
      _write_ninja_file_and_compile_objects(
    File "D:\conda\envs\openmmlab\lib\site-packages\torch\utils\cpp_extension.py", line 1487, in _write_ninja_file_and_compile_objects
      _run_ninja_build(
    File "D:\conda\envs\openmmlab\lib\site-packages\torch\utils\cpp_extension.py", line 1824, in _run_ninja_build
      raise RuntimeError(message) from e
  RuntimeError: Error compiling objects for extension
  [end of output]

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

× Encountered error while trying to install package. ╰─> detectron2

note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure. I encountered the above problem when installing Detectron2 in Window, how can I solve it Package Version Editable project location


absl-py 1.3.0 adal 1.2.7 addict 2.4.0 aiofiles 23.2.1 aiohttp 3.8.4 aiosignal 1.3.1 annotated-types 0.7.0 antlr4-python3-runtime 4.9.3 anyio 3.6.2 appdirs 1.4.4 argcomplete 3.5.0 argon2-cffi 21.3.0 argon2-cffi-bindings 21.2.0 asttokens 2.2.0 astunparse 1.6.3 async-timeout 4.0.2 attrs 22.1.0 audioread 3.0.0 azure-common 1.1.28 azure-core 1.30.2 azure-graphrbac 0.61.1 azure-mgmt-authorization 4.0.0 azure-mgmt-containerregistry 10.3.0 azure-mgmt-core 1.4.0 azure-mgmt-keyvault 10.3.1 azure-mgmt-network 26.0.0 azure-mgmt-resource 23.1.1 azure-mgmt-storage 21.2.1 azureml-core 1.57.0 backcall 0.2.0 backports.tempfile 1.0 backports.weakref 1.0.post1 bcrypt 4.2.0 beautifulsoup4 4.11.1 black 22.12.0 bleach 5.0.1 brotlipy 0.7.0 cachetools 5.2.0 calplot 0.1.7.5 certifi 2023.7.22 cffi 1.15.1 charset-normalizer 2.0.4 chex 0.1.6 click 8.1.3 cloudpickle 2.2.1 cmdstanpy 1.1.0 colorama 0.4.6 commonmark 0.9.1 ConfigArgParse 1.5.3 contextlib2 21.6.0 contourpy 1.0.6 convertdate 2.4.0 cryptography 38.0.1 cycler 0.11.0 Cython 0.29.32 dash 2.7.1 dash-core-components 2.0.0 dash-html-components 2.0.0 dash-table 5.0.0 dearpygui 1.8.0 debugpy 1.6.4 decorator 5.1.1 defusedxml 0.7.1 Deprecated 1.2.14 descartes 1.1.0 dimod 0.12.6 diskcache 5.6.1 dlib 19.24.0 dm-pix 0.4.0 dm-tree 0.1.8 docker 7.1.0 docker-pycreds 0.4.0 dwave-cloud-client 0.10.5 dwave-greedy 0.3.0 dwave-hybrid 0.6.10 dwave-inspector 0.4.2 dwave-neal 0.6.0 dwave-networkx 0.8.14 dwave-ocean-sdk 6.4.0 dwave-preprocessing 0.5.4 dwave-samplers 1.0.0 dwave-system 1.19.0 dwave-tabu 0.5.0 dwavebinarycsp 0.2.0 easyocr 1.6.2 einops 0.7.0 entrypoints 0.4 ephem 4.1.4 et-xmlfile 1.1.0 ete3 3.1.3 etils 1.0.0 exceptiongroup 1.0.4 executing 1.2.0 fastapi 0.115.4 fastdtw 0.3.4 fasteners 0.18 fastjsonschema 2.16.2 ffmpy 0.4.0 filelock 3.9.0 fire 0.5.0 flake8 6.0.0 Flask 2.2.2 flatbuffers 2.0.7 flax 0.3.3 flit_core 3.6.0 fontmeta 1.6.1 fonttools 4.38.0 frozenlist 1.3.3 fsspec 2024.9.0 functorch 1.13.1 future 1.0.0 fvcore 0.1.5.post20221221 gast 0.4.0 gdown 4.6.4 geomdl 5.3.1 gin 0.1.6 gin-config 0.5.0 gitdb 4.0.7 GitPython 3.1.30 google-auth 2.15.0 google-auth-oauthlib 0.4.6 google-pasta 0.2.0 gradio 4.44.1 gradio_client 1.3.0 grpcio 1.51.1 h11 0.14.0 h5py 3.8.0 holidays 0.29 homebase 1.0.1 httpcore 1.0.6 httpx 0.27.2 huggingface-hub 0.24.6 humanfriendly 10.0 hydra-core 1.3.2 idna 3.4 imageio 2.22.4 imageio-ffmpeg 0.4.8 importlib-metadata 6.8.0 importlib-resources 5.10.0 iniconfig 1.1.1 install 1.3.5 iopath 0.1.9 ipykernel 6.17.1 ipython 8.7.0 ipython-genutils 0.2.0 ipywidgets 8.0.2 isodate 0.6.1 itsdangerous 2.1.2 jax 0.4.1 jaxlib 0.3.25 jedi 0.18.2 jeepney 0.8.0 Jinja2 3.1.2 jmespath 1.0.1 joblib 1.3.2 jsonpickle 3.3.0 jsonschema 4.17.3 jupyter 1.0.0 jupyter_client 7.4.7 jupyter-console 6.4.4 jupyter_core 5.1.0 jupyter-server 1.23.3 jupyterlab-pygments 0.2.2 jupyterlab-widgets 3.0.3 keras 2.7.0 Keras-Preprocessing 1.1.2 kiwisolver 1.4.4 knack 0.11.0 libclang 15.0.6.1 librosa 0.9.2 lightgbm 4.3.0 lightning-utilities 0.7.1 llvmlite 0.40.1 LunarCalendar 0.0.9 lyft-dataset-sdk 0.0.8 Markdown 3.4.1 MarkupSafe 2.1.1 matplotlib 3.6.2 matplotlib-inline 0.1.6 mccabe 0.7.0 mediapy 1.1.6 minorminer 0.2.11 mistune 2.0.4 mkl-fft 1.3.1 mkl-random 1.2.2 mkl-service 2.4.0 mmcls 0.25.0 mmcv-full 1.7.0 mmsegmentation 0.29.1 mock 5.1.0 model-index 0.1.11 more-itertools 9.1.0 mplfonts 0.0.8 msal 1.30.0 msal-extensions 1.2.0 msgpack 1.0.4 msrest 0.7.1 msrestazure 0.6.4.post1 multidict 6.0.4 munkres 1.1.4 mypy-extensions 0.4.3 nbclassic 0.4.8 nbclient 0.7.2 nbconvert 7.2.5 nbformat 5.5.0 ndg-httpsclient 0.5.1 nest-asyncio 1.5.6 networkx 2.8.8 ninja 1.11.1 nose 1.3.7 notebook 6.5.2 notebook_shim 0.2.2 numba 0.57.1 numpy 1.23.4 nuscenes-devkit 1.1.9 oauthlib 3.2.2 omegaconf 2.3.0 open3d 0.16.0 opencv-contrib-python 4.6.0.66 opencv-python 4.6.0.66 openmim 0.3.3 openpyxl 3.0.10 opt-einsum 3.3.0 ordered-set 4.1.0 orjson 3.10.11 packaging 22.0 pandas 1.5.2 pandocfilters 1.5.0 paramiko 3.4.1 parso 0.8.3 pathspec 0.10.3 pathtools 0.1.2 patsy 0.5.3 penaltymodel 1.0.2 pickleshare 0.7.5 Pillow 9.2.0 pip 22.2.2 piqa 1.2.2 pkginfo 1.11.1 pkgutil_resolve_name 1.3.10 platformdirs 2.5.4 plotly 5.11.0 plucky 0.4.3 pluggy 1.0.0 plyfile 0.7.4 pooch 1.6.0 portalocker 2.10.1 prettytable 3.5.0 prometheus-client 0.15.0 prompt-toolkit 3.0.33 prophet 1.1.4 protobuf 3.20.3 psutil 5.9.4 pure-eval 0.2.2 pyasn1 0.4.8 pyasn1-modules 0.2.8 pyclipper 1.3.0.post4 pycocotools 2.0.6 pycodestyle 2.10.0 pycparser 2.21 pydantic 2.9.2 pydantic_core 2.23.4 pydot 3.0.2 pydub 0.25.1 pyflakes 3.0.1 pygame 2.1.2 Pygments 2.13.0 PyJWT 2.9.0 PyMeeus 0.5.12 PyNaCl 1.5.0 PyOpenGL 3.1.6 pyOpenSSL 22.0.0 pyparsing 3.0.9 pyproject-toml 0.0.11 pyquaternion 0.9.9 pyqubo 1.4.0 pyreadline3 3.4.1 pyrsistent 0.19.2 PySocks 1.7.1 pystan 2.19.1.1 pytest 7.2.0 python-bidi 0.4.2 python-dateutil 2.8.2 python-multipart 0.0.17 python-speech-features 0.6 pytorch-lightning 1.9.3 pyts 0.13.0 pytz 2022.6 PyWavelets 1.4.1 pywin32 305 pywinpty 2.0.9 PyYAML 6.0 pyzbar 0.1.9 pyzmq 24.0.1 qtconsole 5.4.0 QtPy 2.3.0 rawpy 0.18.0 rectangle-packer 2.0.1 regex 2022.10.31 requests 2.32.3 requests-oauthlib 1.3.1 resampy 0.4.2 rich 12.6.0 rsa 4.9 ruff 0.7.3 safetensors 0.4.4 scikit-image 0.19.3 scikit-learn 1.3.0 scipy 1.9.3 seaborn 0.12.2 SecretStorage 3.3.3 semantic-version 2.10.0 Send2Trash 1.8.0 sentry-sdk 1.9.0 setproctitle 1.2.2 setuptools 65.5.0 setuptools-git 1.2 Shapely 1.8.5.post1 shellingham 1.5.4 six 1.16.0 smmap 4.0.0 sniffio 1.3.0 soundfile 0.11.0 soupsieve 2.3.2.post1 stack-data 0.6.2 starlette 0.41.2 statsmodels 0.14.0 tabulate 0.9.0 tenacity 8.1.0 tensorboard 2.11.0 tensorboard-data-server 0.6.1 tensorboard-plugin-wit 1.8.1 tensorboardX 2.5.1 tensorflow-estimator 2.7.0 tensorflow-gpu 2.7.0 tensorflow-io-gcs-filesystem 0.31.0 tensorflow-probability 0.7.0 termcolor 2.1.1 terminado 0.17.0 terminaltables 3.1.10 texttable 1.6.7 threadpoolctl 3.2.0 tifffile 2022.10.10 tinycss2 1.2.1 tokenizers 0.19.1 toml 0.10.2 tomli 2.0.1 tomlkit 0.12.0 toolz 0.12.0 torch 1.12.1 torch-cluster 1.6.0+pt112cu113 torch-efficient-distloss 0.1.3 torch-ema 0.3 torch-geometric 2.2.0 torch-scatter 2.1.0+pt112cu113 torch-sparse 0.6.16+pt112cu113 torch-spline-conv 1.2.1+pt112cu113 torchaudio 0.12.1 torchmetrics 0.11.1 torchvision 0.13.1 tornado 6.2 tqdm 4.64.1 traitlets 5.6.0 transformers 4.44.2 trimesh 2.35.39 tslearn 0.6.1 tsod 0.1.4 typer 0.13.0 typing_extensions 4.12.2 unicodedata2 15.0.0 urllib3 2.2.3 uvicorn 0.32.0 wandb 0.13.10 wcwidth 0.2.5 webencodings 0.5.1 websocket-client 1.4.2 websockets 12.0 Werkzeug 2.2.2 wheel 0.37.1 widgetsnbextension 4.0.3 win-inet-pton 1.1.0 wincertstore 0.2 wrapt 1.15.0 xlrd 2.0.1 yacs 0.1.8 yapf 0.32.0 yarl 1.8.2 zipp 3.16.2

github-actions[bot] commented 4 days 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";

lezasantaizi commented 2 days ago
      name: linux_gpu_tests_pytorch2.1.1
      pytorch_version: "2.1.1"
      torchvision_version: "0.16.1"
      cuda_version: "12.1"
      python_version: "3.11"
      pytorch_index: "https://download.pytorch.org/whl/nightly/cu121"