/Clustering_SwinIR

Primary LanguagePythonMIT LicenseMIT

Code optimization target

models/network_onlyattnnoir_gumbel_compensate2_simple2.py

Measure test result / time of ICASR and SwinIR

Install Pytorch and other stuffs (please refer to requirements.txt).

Get DIV2K validation dataset for measuring the runtime

Download Pretrained models to report PSNR and SSIM

Don't need to download pretrained models if not measuring PSNR, SSIM

Change dataset path in 'main_test_clustertransformer.py' (Line 35-49)

Move to file 'clustertest.sh'

  • Use Line 2 to test ICASR (Simplified version)
  • Erase '--model_path ~~~' if only need to check runtime.
  • add '--bs ' for increasing batch size, '--cpu' for cpu testing

Run code by 'sh clustertest.sh'