简体   繁体   English

Pytorch fastrcnn resnet50 fpn 损失函数

[英]Pytorch fasterrcnn resnet50 fpn loss functions

I am using a pretrained model from this tutorial.我正在使用本教程中的预训练模型。 https://pytorch.org/tutorials/intermediate/torchvision_tutorial.html#defining-your-model https://pytorch.org/tutorials/intermediate/torchvision_tutorial.html#defining-your-model

The model is pytorch's Faster RCNN ResNet 50 FPN model.模型是pytorch的Faster RCNN ResNet 50 FPN模型。 Does anyone know what the classification loss, loss, and objectness loss functions are (ie Cross Entropy or?).有谁知道分类损失、损失和对象损失函数是什么(即交叉熵或?)。 Thanks in advance, Sriram A.提前致谢,斯里拉姆 A。

Objectness is a binary cross entropy loss term over 2 classes (object/not object) associated with each anchor box in the first stage (RPN), and classication loss is normal cross-entropy term over C classes.对象性是与第一阶段 (RPN) 中的每个锚框相关联的 2 个类(对象/非对象)上的二元交叉熵损失项,而分类损失是 C 类上的正常交叉熵项。 Both first stage region proposals and second stage bounding boxes are also penalized with a smooth L1 loss term.第一阶段区域提议和第二阶段边界框也受到平滑 L1 损失项的惩罚。

It should also be noted that the authors train the first and second stage alternately since both rely on the same features computed with convolutional layers + FPN to aid in training convergence.还应该注意的是,作者交替训练第一阶段和第二阶段,因为两者都依赖于使用卷积层 + FPN 计算的相同特征来帮助训练收敛。

Not a very clear description?不是很清楚的描述? I'd recommend reading the original Faster-RCNN paper as it is pretty foundational and will probably do a better job describing the loss terms than me.我建议阅读原始的Faster-RCNN 论文,因为它非常基础,并且可能比我在描述损失项方面做得更好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM