Closed AIconfig closed 7 months ago
@AIconfig Comment out the 'metric' part. Cannot calculate the psnr/ssim metrics for non-reference single image.
@AIconfig Comment out the 'metric' part. Cannot calculate the psnr/ssim metrics for non-reference single image.
Thank you so much! I confirm it works after commenting out metric
part.
I tried to run HAT and it seems that
HAT-L_SRx4_ImageNet-pretrain.yml
test throws an exception. However, I don't understand it enough to find any clues on what it could mean. Thus, I'm posting it here in hopes someone had this issue before and could fix it somehow.Steps to reproduce:
Download and place models into
./experiments
folder.Make test copy:
cp options/test/HAT_SRx4_ImageNet-pretrain.yml options/test/HAT_SRx4_ImageNet-pretrain_custom.yml
. ChangeHAT_SRx4_ImageNet-pretrain_custom.yml
to include following (I need it because I have only 16 GB VRAM and it seems withouttile_size: 256
I get OOM, but withtile_size: 256
it works):Execute test:
python hat/test.py -opt options/test/HAT-L_SRx4_ImageNet-pretrain_custom.yml
In my case it results in the following error:
In anyone has any tips on how can it be fixed (maybe by installing different pytorch version or something else), please, share you findings. Thank you so much!