conansherry / detectron2

detectron2 windows build
Apache License 2.0
224 stars 55 forks source link

fatal error C1083: Cannot open compiler generated file: '': Invalid argument #32

Open wyhinton opened 2 years ago

wyhinton commented 2 years ago

I tried putting the whole log in, but it was too long. Here's the ending error message:

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\detectron2\detectron2\layers\csrc\box_iou_rotated\box_iou_rotated_cpu.cpp : fatal error C1083: Cannot open compiler generated file: '': Invalid argument
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30037\\bin\\HostX86\\x64\\cl.exe' failed with exit status 1

with: python -m detectron2.utils.collect_env

sys.platform           win32
Python                 3.6.13 |Anaconda, Inc.| (default, Mar 16 2021, 11:37:27) [MSC v.1916 64 bit (AMD64)]
Numpy                  1.19.2
detectron2._C          failed to import
DETECTRON2_ENV_MODULE  <not set>
PyTorch                1.3.1
PyTorch Debug Build    False
torchvision            0.4.2
CUDA available         True
GPU 0                  NVIDIA GeForce RTX 2070
CUDA_HOME              C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7
NVCC                   Not Available
Pillow                 8.3.1
cv2                    4.6.0

Researching around, some peole seem to get this issue when the build path is too long? Notes;