dpp icon indicating copy to clipboard operation
dpp copied to clipboard

Why you did w = pospowbias(x/xn) instead of w = pospowbias(x) as your paper did

Open shizenglin opened this issue 5 years ago • 1 comments

Hi, I'm confused about this code in positive bias.py, why did you do x/xn before geting w, I can't see this in your paper, in which you did w = pospowbias(x) instead of w = pospowbias(x/xn) It = F.upsample(F.avg_pool2d(I, 2), scale_factor=2, mode='nearest') x = ((I-It)**2)+1e-3 xn = F.upsample(F.avg_pool2d(x, 2), scale_factor=2, mode='nearest') w = pospowbias(x/xn) kp = F.avg_pool2d(w, 2) Iw = F.avg_pool2d(I*w, 2)

shizenglin avatar May 08 '19 12:05 shizenglin

normalizing "x"s is done for increased numerical stability.

farazsaeedan avatar Jun 17 '19 12:06 farazsaeedan