Methodforward
Args:
pred (Tensor): of shape (N, C, H, W). Predicted tensor.
target (Tensor): of shape (N, C, H, W). Ground truth
basicsr/losses/basic_loss.py:73
Methodforward
Args:
pred (Tensor): of shape (N, C, H, W). Predicted tensor.
target (Tensor): of shape (N, C, H, W). Ground truth
basicsr/losses/basic_loss.py:136
Functionrandom_add_jpg_compressionRandomly add JPG compression artifacts.
Args:
img (Numpy array): Input image, shape (h, w, c), range [0, 1], float32.
quality
basicsr/data/degradations.py:750