BasicSR icon indicating copy to clipboard operation
BasicSR copied to clipboard

Why EDVR use 'sum' as the loss reduction method?

Open hcwang95 opened this issue 5 years ago • 0 comments

I am thinking using sum will let the loss magnitude change if we change the batch size or input resolution. Is there any reason to use 'sum' instead of 'mean'? Thanks a lot!

Reference config: train_EDVR_M_x4_SR_REDS.yml:

  # losses
  pixel_opt:
    type: CharbonnierLoss
    loss_weight: 1.0
    reduction: sum

hcwang95 avatar Jan 22 '21 16:01 hcwang95