XPixelGroup / HAT

CVPR2023 - Activating More Pixels in Image Super-Resolution Transformer Arxiv - HAT: Hybrid Attention Transformer for Image Restoration
Apache License 2.0
1.14k stars 134 forks source link

HAT_SRx2.yml,Image shapes are different #143

Closed yang-yee closed 1 month ago

yang-yee commented 1 month ago

Why did I encounter image size mismatch during the testing process of HATSRx2.yml? Do I need to modify anything? Thanks.

File " /media/lab512-dell/Data2/yjq/HAT-nain/basicsr /metrics/psnr_ssin.py",line 28,in calculate_psnrassert ing.shape == ing2.shape,(f 'Image shapes are different:{ing. shape},{ing2.shape}. ") AssertionError: Inage shapes are different: (682,1024,3),(680,1024,3).