Train the FFTFormer model
mainTo start the training process, execute the provided shell script from the root directory.
bash train.shrepository·main·Indexed 18 days ago
https://github.com/kkkls/fftformerAn efficient frequency domain-based Transformer implementation for high-quality image deblurring based on the CVPR 2023 paper. It features a Frequency Domain-based Self-Attention Solver (FSAS) and a Discriminative Frequency Domain-based FFN (DFFN) to enhance restoration quality.
To start the training process, execute the provided shell script from the root directory.
bash train.shTo run inference/testing, follow these steps:
results/model_name/dataset_name/ directory.Note: PSNR measurements are performed using the official RealBlur test code.
bash test.shTo use FFTFormer, ensure you have the following Python packages installed:
The repository provides source code for generating representative figures used in the project. These scripts can be modified to suit specific visualization needs.
Note that these scripts rely on utility functions defined in the basicsr/utils/plot_util.py module (from the BasicSR library), such as:
read_data_from_tensorboard: To ingest data from TensorBoard logs.smooth_data: To apply smoothing to data series.read_data_from_txt_2v: To read data from text files.One available script is model_complexity_cmp_bsrn.py, which compares model complexity (based on the BSRN paper).