凡是想在windows下从源码编译detectron2的,没有深厚的c++功底, 我劝你还是放弃吧. 改用Ubuntu 去编译轻松又方便.
昨天还能编译成功的, 今天就编译不成功了.
编译命令如下
git clone https://github.com/facebookresearch/detectron2.git
python -m pip install -e detectron2
结果报了一大堆的错误… 而且怎么都搜不到解决方案…
ERROR: Command errored out with exit status 1:
command: 'D:\Anaconda3\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'F:\\PySlowFast\\pyslowfast\\detectron2_repo\\setup.py'"'"'; __file__='"'"'F:\\PySlowFast\\pyslowfast\\detectron2_repo\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps
cwd: F:\PySlowFast\pyslowfast\detectron2_repo\
Complete output (47 lines):
No CUDA runtime is found, using CUDA_HOME='C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2'
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
adding license file 'LICENSE' (matched pattern 'LICEN[CS]E*')
reading manifest file 'detectron2.egg-info\SOURCES.txt'
writing manifest file 'detectron2.egg-info\SOURCES.txt'
running build_ext
buil

博主尝试在Windows下从源码编译detectron2,过程中状况不断,编译命令报错且难寻解决方案,即便解决编译问题,运行识别命令仍找不到包。尝试多种方法后仍无法解决,最终因detectron2对Windows支持不佳,且自身C++功底不足,放弃在Windows编译,建议改用Ubuntu。
最低0.47元/天 解锁文章
167

被折叠的 条评论
为什么被折叠?



