[Fix] Remove `,` in multi-line F-string in `crop.py`
* Update crop.py
fix a ValueError's display error
* [Fix] Remove , in multi-line F-string in crop.py
@@ -371,11 +371,11 @@ class PairedRandomCrop:
if h_gt != h_lq * scale or w_gt != w_lq * scale:
raise ValueError(
- f'Scale mismatches. GT ({h_gt}, {w_gt}) is not {scale}x ',
+ f'Scale mismatches. GT ({h_gt}, {w_gt}) is not {scale}x '
f'multiplication of LQ ({h_lq}, {w_lq}).')
if h_lq < lq_patch_size or w_lq < lq_patch_size:
raise ValueError(
- f'LQ ({h_lq}, {w_lq}) is smaller than patch size ',
+ f'LQ ({h_lq}, {w_lq}) is smaller than patch size '
f'({lq_patch_size}, {lq_patch_size}). Please check '
f'{results["lq_path"][0]} and {results["gt_path"][0]}.')
