matlab faster-rcnn 测试与训练

本文详细介绍Faster R-CNN的编译配置、测试及训练流程。包括如何编译mex文件、设置环境变量、下载预训练模型及数据集等步骤,并提供了运行脚本和模型下载链接。

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

编译与准备测试

(1)运行faster_rcnn_build.m。这是编译了nms和nms_gpu的mex,nvmex.m中的所有环境变量、VS是安装路径要和自己的一致:

这里写图片描述

(2)运行startup.m,这是设置基本环境。

测试demo

(1)运行fetch_data/fetch_faster_rcnn_final_model.m,下载训练好的模型。如果onedrive用不了或者太慢,去百度云。下载好以后把它解压到faster_rcnn-master文件夹下,可以看到是5个图片和output文件夹。 
(2)运行experiments/script_faster_rcnn_demo.m测试单张图像。(注意,要在faster_rcnn-master文件夹下运行。我的GTX770对于VGG16网络完全不行,ZF网络还可以,但是屏幕闪的很厉害,而且好像用光了所有显存,电脑显示变得卡顿。)速度的确很快:

这里写图片描述

训练网络

(1)运行fetch_data/fetch_model_ZF.m下载在ImageNet上预训练好的ZF网络,运行fetch_data/fetch_model_VGG16.m下载在ImageNet上预训练好的VGG-16网络。解压后与faster_rcnn-master中的models文件夹合并。 
(2)下载VOC 2007和VOC 2012数据到./datasets中。 
(3)运行experiments/script_faster_rcnn_VOC2007_ZF.m训练ZF网络模型,它会运行如下四步: 

Resources

Note: This documentation may contain links to third party websites, which are provided for your convenience only. Such third party websites are not under Microsoft’s control. Microsoft does not endorse or make any representation, guarantee or assurance regarding any third party website, content, service or product. Third party websites may be subject to the third party’s terms, conditions, and privacy statements.

  1. Experiment logs: OneDriveDropBoxBaiduYun
  2. Regions proposals of our trained RPN:

If the automatic "fetch_data" fails, you may manually download resouces from:

  1. Pre-complied caffe mex:
  2. ImageNet-pretrained networks:
  3. Final RPN+FastRCNN models: OneDriveDropBoxBaiduYun

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值