Why not calculating TVloss during forward pass?
kaca0083 opened this issue · comments
Haozhi Huang commented
Hi. Comparing TVLoss:updateOutput(input) with TextureLoss:updateOutput(input), I found that the code didn't calculate TVLoss during forward pass but only calculate the gradient of TVLoss during backward pass. Any idea why?
Yubin Wang commented
in fact the TV Loss is used to keeping the result image smooth. It only affect the input image, not affect the conv layers.