https://arxiv.org/abs/2502.03500
Recent advances in generative image restoration (IR) have demonstrated impressive results. However, these methods are hindered by their substantial size and computational demands, rendering them unsuitable for deployment on edge devices. This work introduces ELIR, an Efficient Latent Image Restoration method. ELIR addresses the distortion-perception trade-off within the latent space and produces high-quality images using a latent consistency flow-based model. In addition, ELIR introduces an efficient and lightweight architecture. Consequently, ELIR is 4x smaller and faster than stateof- the-art diffusion and flow-based approaches for blind face restoration, enabling a deployment on resource-constrained devices. Comprehensive evaluations of various image restoration tasks and datasets show that ELIR achieves competitive performance compared to state-of-the-art methods, effectively balancing distortion and perceptual quality metrics while significantly reducing model size and computational cost.



To install the necessary dependencies, run the following commands:
git clone https://github.com/yourusername/ELIR.git
cd ELIR
pip install -r requirements.txt
FFHQ contains 70k high-quality PNG face images at 1024x1024 resolution, diverse in age, ethnicity, and background.
ImageNet-1K contains 1.2M general-contnet images at different shapes.
Synthesised and in-the-wild face images.
Synthesised and real-world imges.
Evaluation is done by Image Quality Assessment (IQA) toolbox for pytorch taken from https://github.com/chaofengc/IQA-PyTorch
out_dir to your desired output directory.train_dataset to your training dataset path.val_dataset to your validation dataset path.python train.py -y configs/elir_train_bfr.yaml
python train.py -y configs/elir_train_sr.yaml
python train.py -y configs/elir_train_denoising.yaml
python train.py -y configs/elir_train_inpainting.yaml
python train.py -y configs/elir_train_bsr.yaml
| Task | Model Weight |
|---|---|
| blind face restoration | elir_bfr.pth |
| super resolution | elir_sr.pth |
| denoising | elir_denoising.pth |
| inpainting | elir_inpainting.pth |
| blind super resolution | elir_bsr.pth |
path to the path of the trained model.val_dataset to your validation dataset path.python eval.py -y configs/elir_infer_bfr.yaml
python eval.py -y configs/elir_infer_sr.yaml
python eval.py -y configs/elir_infer_denoising.yaml
python eval.py -y configs/elir_infer_inpainting.yaml
python eval.py -y configs/elir_infer_bsr.yaml
path to the path of the trained model.in_folder and out_folder to the directory containing your low-quality images and for output.python infer.py -y configs/elir_infer_bfr.yaml
python infer.py -y configs/elir_infer_sr.yaml
python infer.py -y configs/elir_infer_denoising.yaml
python infer.py -y configs/elir_infer_inpainting.yaml
python infer.py -y configs/elir_infer_bsr.yaml
If you find this project useful, please consider cite:
@article{cohen2025efficient,
title={Efficient Image Restoration via Latent Consistency Flow Matching},
author={Cohen, Elad and Achituve, Idan and Diamant, Idit and Netzer, Arnon and Habi, Hai Victor},
journal={arXiv preprint arXiv:2502.03500},
year={2025}
}
Tiny AutoEncoder for Stable Diffusion: https://github.com/madebyollin/taesd
7 commits
2 commits
Python
100.0%
https://arxiv.org/abs/2502.03500
Recent advances in generative image restoration (IR) have demonstrated impressive results. However, these methods are hindered by their substantial size and computational demands, rendering them unsuitable for deployment on edge devices. This work introduces ELIR, an Efficient Latent Image Restoration method. ELIR addresses the distortion-perception trade-off within the latent space and produces high-quality images using a latent consistency flow-based model. In addition, ELIR introduces an efficient and lightweight architecture. Consequently, ELIR is 4x smaller and faster than stateof- the-art diffusion and flow-based approaches for blind face restoration, enabling a deployment on resource-constrained devices. Comprehensive evaluations of various image restoration tasks and datasets show that ELIR achieves competitive performance compared to state-of-the-art methods, effectively balancing distortion and perceptual quality metrics while significantly reducing model size and computational cost.



To install the necessary dependencies, run the following commands:
git clone https://github.com/yourusername/ELIR.git
cd ELIR
pip install -r requirements.txt
FFHQ contains 70k high-quality PNG face images at 1024x1024 resolution, diverse in age, ethnicity, and background.
ImageNet-1K contains 1.2M general-contnet images at different shapes.
Synthesised and in-the-wild face images.
Synthesised and real-world imges.
Evaluation is done by Image Quality Assessment (IQA) toolbox for pytorch taken from https://github.com/chaofengc/IQA-PyTorch
out_dir to your desired output directory.train_dataset to your training dataset path.val_dataset to your validation dataset path.python train.py -y configs/elir_train_bfr.yaml
python train.py -y configs/elir_train_sr.yaml
python train.py -y configs/elir_train_denoising.yaml
python train.py -y configs/elir_train_inpainting.yaml
python train.py -y configs/elir_train_bsr.yaml
| Task | Model Weight |
|---|---|
| blind face restoration | elir_bfr.pth |
| super resolution | elir_sr.pth |
| denoising | elir_denoising.pth |
| inpainting | elir_inpainting.pth |
| blind super resolution | elir_bsr.pth |
path to the path of the trained model.val_dataset to your validation dataset path.python eval.py -y configs/elir_infer_bfr.yaml
python eval.py -y configs/elir_infer_sr.yaml
python eval.py -y configs/elir_infer_denoising.yaml
python eval.py -y configs/elir_infer_inpainting.yaml
python eval.py -y configs/elir_infer_bsr.yaml
path to the path of the trained model.in_folder and out_folder to the directory containing your low-quality images and for output.python infer.py -y configs/elir_infer_bfr.yaml
python infer.py -y configs/elir_infer_sr.yaml
python infer.py -y configs/elir_infer_denoising.yaml
python infer.py -y configs/elir_infer_inpainting.yaml
python infer.py -y configs/elir_infer_bsr.yaml
If you find this project useful, please consider cite:
@article{cohen2025efficient,
title={Efficient Image Restoration via Latent Consistency Flow Matching},
author={Cohen, Elad and Achituve, Idan and Diamant, Idit and Netzer, Arnon and Habi, Hai Victor},
journal={arXiv preprint arXiv:2502.03500},
year={2025}
}
Tiny AutoEncoder for Stable Diffusion: https://github.com/madebyollin/taesd
7 commits
2 commits
Python
100.0%