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

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

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

就好了。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/zaji/5491017.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-12-12
下一篇2022-12-13

发表评论

登录后才能评论

评论列表(0条)

    保存