PSPNet icon indicating copy to clipboard operation
PSPNet copied to clipboard

auxiliary loss

Open lds92 opened this issue 7 years ago • 4 comments

Hello! I am trying to create my own training script for PSPNet, and I do not understand how to apply the auxiliary loss. I have to do another pyramid pooling for res4b22, then softmax and sum them???? If someone can help me, I will appreciate it :)

lds92 avatar Sep 14 '17 14:09 lds92

After reading the paper, I found the loss function has two softmax loss functions addedup together with the weight of 0.4. Take pspnet101_VOC2012_473.prototxt as an example, I guess the loss function should be added to conv6(not conv6_interp ) and conv4_23 * 0.4, L= conv6 + 0.4*conv4_23, then softmax with the label.

krishvishal avatar Sep 25 '17 18:09 krishvishal

@krishnavishalv @hszhao What's the label here? it will be the segmentation map or a class in pre-train stage?

zhipeng-fan avatar Dec 05 '17 04:12 zhipeng-fan

Can you also explain why is it necessary?

dheerajpai avatar Jul 12 '18 07:07 dheerajpai

@krishnavishalv @hszhao What's the label here? it will be the segmentation map or a class in pre-train stage?

aux layer和最后的output layer的feature size大小都是相同的,因此也是经过softmax之后与最后的label进行比较,具体可以参见gluoncv中PSPNet的实现方法。

littletomatodonkey avatar Nov 03 '18 07:11 littletomatodonkey