Skip to content

jiexiaou/ShuffleFormer

Repository files navigation

Random Shuffle Transformer for Image Restoration (ICML 2023)

Jie Xiao, Xueyang Fu, Man Zhou, Hongjian Liu, Zheng-Jun Zha

Paper: Link

Method Overview

Training Strategy

Testing Strategy

Pretrained Model

train

python train/train_motiondeblur.py --arch ShuffleFormer_B --gpu '0,1,2,3' --batch_size 16 --train_ps 256 --train_dir GoPro/train --embed_dim 32 --warmup --nepoch 600 --save_dir save_dir --val_dir GoPro/val --train_workers 4 --weight_decay 0.0 --optimizer adam

test

# denoise
python test_sidd.py --arch ShuffleFormer_B --gpu '0' --val_dir data_path --pretrain_weights model_path --result_dir save_dir --repeat_num 16
# deblur&derain
python test.py --arch ShuffleFormer_B --gpu '0' --val_dir data_path --pretrain_weights model_path --result_dir save_dir --repeat_num 16
# evaluate: test/eval_spa.m eval_gopro.m(gopro&hide) eval_realblur.py(RealBlurR&RealBlurJ) evaluation code is borrowed from Restormer(https://github.com/swz30/Restormer)

Acknowledgement

We refer to Uformer and Restormer. Thanks for sharing.

Contact

Please contact us if there is any question(ustchbxj@mail.ustc.edu.cn).

About

Official repository for the paper "Random Shuffle Transformer for Image Restoration".

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published