Is your feature request related to a problem? Please describe.
When evaluating performance of image2image models it's a common practice to not include border pixels into similarity computation. This is done, because on edges due to incorrect padding or model architecture appear strong artefacts, which do not influence overall image perceptual quality, but can decrease metric values.
Describe the solution you'd like
Add a parameter like crop_border: int = 0 which crops an image boundary by integer number of pixels from all sides (top, bottom, left and right) before metric computation.
Describe alternatives you've considered
Leave everything as is, so that anyone interested in this implements it by himself.
Is your feature request related to a problem? Please describe. When evaluating performance of image2image models it's a common practice to not include border pixels into similarity computation. This is done, because on edges due to incorrect padding or model architecture appear strong artefacts, which do not influence overall image perceptual quality, but can decrease metric values.
Describe the solution you'd like Add a parameter like
crop_border: int = 0
which crops an image boundary by integer number of pixels from all sides (top, bottom, left and right) before metric computation.Describe alternatives you've considered Leave everything as is, so that anyone interested in this implements it by himself.