InsightFace中MTCNN的版本使用

InsightFace在人脸检测中使用了MTCNN,但未明确版本。经研究,MTCNN v2对比v1仅在stage3对landmark做了精确回归。然而,在InsightFace的MTCNN stage3代码中未发现landmark regression的实现,因此推测InsightFace采用的是MTCNN v1。若要增加regression功能,预计并不复杂。
摘要由CSDN通过智能技术生成

InsightFace中在人脸检测使用了MTCNN,那使用的版本是v1还是v2没有提及,搜索未果。

自己查询了MTCNN源码发现v1和v2的区别就在于v2是对v1的一个扩充

原文如下:

'MTCNNv1' is an implementation of our 'Joint Face Detection and Alignment using Multi-task Cascaded Convolutional Neural Networks' paper.
'MTCNNv2' is an extended version (using iamge patch around each landmark outputted from stage 3 to make a precise regression).

v2只是v1的基础上在stage3对landmark作了一个精确回归,具体在MTCNNv2的bbrg.m中实现

function [boundingbox] = bbreg(boundingbox,reg)
	%calibrate bouding boxes
	if size(reg,2)==1
		reg=reshape(reg,[size(reg,3) size(reg,4)])';
	end
	w=[boundingbox(:,3)-boundingbox(:,1)]+1;
	h=[boundingbox(:,4)-boundingbox(:,2)]+1;
	boundingbox(:,1:4)=[boundingbox(:,1)+reg(:,1).*w boundingbox(:,2)+reg(:,2).*h boundingbox(:,3)+reg(:,3).*w boundingbox(:,4)+reg(:,4).*h];
end
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值