栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

metaRCNN安装指南

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

metaRCNN安装指南

  1. 首先从GITHUB上下载程序 www.github.com/ucbdrive/few-shot-object-detection
  2. 根据README.md配置 Conda 环境,其中python =3.6
  3. 安装torch cuda 1.6 with (your cuda version)
  4. 卸载掉本机的pycocotools (重要)
    S1 :python -m pip install --upgrade pip
    S2: 查看pycocotool本机地址: pip install pycocotools
    S3: 根据pycocotools 地址sudo rm -rf files:
sudo rm -rf /home/xxx/.local/lib/python3.6/site-packages/pycocotools
sudo rm -rf /home/xxx/.local/lib/python3.6/site-packages/pycocotools-2.0-py3.7.egg-info
 

只有删除掉pycocotools才能执行接下来的安装命令,非常重要!

  1. 安装 detectron2,这里注意,需要指定detectron2 版本为==0.2.1,否则在训练时就会有如下错误。(重要)
"Predicted boxes or scores contain Inf/NaN. Training has diverged.
FloatingPointError: Predicted boxes or scores contain Inf/NaN. Training has diverged."
  1. 安装完成,测试训练代码。
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/276169.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号