0

I’m trying to install detectron2 on my local machine. A cpp_extension.py located in

C:\Users\Username\miniconda3\envs\pytorch_env\lib\site-packages\torch\utils\cpp_extension.py

fails to compile and throws a

raise RuntimeError(message) from e RuntimeError: Error compiling objects for extension

I just finished installing the tensorflow object detection API so I have pycocotools and other c++ build tools required. Are there more extensions of c++ tools I would have to install?

  • OS: windows 10, no GPU

  • Visual Studio tools installed: 2015 and 2019 build tools, windows 10 sdk, windows universal crt and crt sdk

  • pytorch version: 1.12.1

command leading to error:

python -m pip install -e detectron2
MT0
  • 143,790
  • 11
  • 59
  • 117
Sillette
  • 13
  • 1
  • 5

2 Answers2

0

You can look into this raised GitHub issue:

https://github.com/facebookresearch/maskrcnn-benchmark/issues/1236

It most likely is a Pytorch version(compatibility) problem.

barvin04
  • 1
  • 2
0

Try PyTorch ≥ 1.6 and <1.9.