detectron2 windows 安装

这篇博客详细记录了在Windows上安装detectron2的过程,由于官方未提供Windows安装教程,作者参照了第三方资源并分享了安装步骤,包括安装VS2019/2017、解决依赖问题以及修改代码和重新安装pywin32。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

detectron2 windows 安装

https://github.com/facebookresearch/detectron2官方目前暂时没有提供官方的windows安装教程,这里记录使用中碰到的坑

1. 主要参考

https://github.com/conansherry/detectron2

2. 安装依赖

  1. 安装已有的包

    conda create -n detectron2 python=3.8
    
    conda activate detectron2
    
    conda install pytorch torchvision cudatoolkit=10.2 -c pytorch
    
    pip install cython pycocotools-windows fvcore pydot future tensorboard tqdm mock matplotlib cloudpickle tabulate yacs Pillow termcolor opencv-python
    
  2. 安装vs2019或者2017,然后执行如下
    2019版本执行
    set DISTUTILS_USE_SDK=1 set MAX_JOBS=5 "H:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
    2017版本执行
    set DISTUTILS_USE_SDK=1 set MAX_JOBS

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值