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

Detectron预训练模型下载中断导致无法运行

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

Detectron预训练模型下载中断导致无法运行

因为要训练自己的数据集(我的是coco格式),再把一些配置修改完成后,运行

 python tools/train_net.py --cfg configs/12_2017_baselines/e2e_faster_rcnn_R-50-FPN_1x.yaml OUTPUT_DIR out_dir

要使用Faster Rcnn,所以在terminal中运行的时候,会显示在下载R-50.pkl

下不下来,速度太慢,报的错:意思就是下不下来

AssertionError: Target URL https://dl.fbaipublicfiles.com/detectron/ImageNetPretrained/MSRA/R-50.pkl appears to be downloaded to the local cache file /tmp/detectron-download-cache/ImageNetPretrained/MSRA/R-50.pkl, but the md5 hash of the local file does not match the reference (actual: a4041c4526ff960b0f18057f8d7502a4 vs. expected: b19105fdd7baafb40480251377de18f2). You may wish to delete the cached file and try again to trigger automatic download.


解决方案:
我是把对应的预训练模型下载下来,
那么问题来了:应该放在哪?怎么放

没错我超菜,最起码我明白下本地,但是看了很多博客,不知道放在哪里。

1.下载到本地后,
2.修改对应的配置文件,下面这个是我需要修改的,你自己对应自己的模型修改对应的 .yaml

3.把红色笔记圈出来的部分进行修改,改成你预训练模型下载的位置

4.再去运行

 python tools/train_net.py --cfg configs/12_2017_baselines/e2e_faster_rcnn_R-50-FPN_1x.yaml OUTPUT_DIR out_dir

就好了。

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/498897.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

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

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