Image-to-Image
danifei commited on
Commit
816f38e
·
verified ·
1 Parent(s): 0635c2f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +73 -3
README.md CHANGED
@@ -1,3 +1,73 @@
1
- ---
2
- license: cc-by-nc-sa-4.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-sa-4.0
3
+ pipeline_tag: image-to-image
4
+ ---
5
+
6
+ # Towards Unified Image Deblurring using a Mixture-of-Experts Decoder
7
+ [![Hugging Face](https://img.shields.io/badge/Demo-%F0%9F%A4%97%20Hugging%20Face-blue)](https://huggingface.co/spaces/Cidaut/DeMoE)
8
+ [![paper](https://img.shields.io/badge/arXiv-Paper-<COLOR>.svg)](https://arxiv.org/abs/2508.06228)
9
+
10
+
11
+ **[Daniel Feijoo](https://scholar.google.com/citations?hl=en&user=hqbPn4YAAAAJ), [Paula Garrido-Mellado](https://scholar.google.com/citations?user=YXE2fY4AAAAJ&hl=en&oi=ao), [Jaesung Rim](https://scholar.google.com/citations?user=Bsvwoq8m0e8C&hl=en&oi=ao), [Alvaro Garcia](https://scholar.google.com/citations?hl=en&user=c6SJPnMAAAAJ), [Marcos V. Conde](https://scholar.google.com/citations?user=NtB1kjYAAAAJ&hl=en)** (CIDAUT AI, POSTECH and University of Wuerzburg)
12
+
13
+ **TLDR.** We present the first all-in-one deblurring method, enabled by the strong similarity we observed in the network weights for handling different blur degradations.
14
+
15
+ > This is the official implementation of DeMoE. Code will be updated upon acceptance.
16
+
17
+ <details>
18
+ <summary> <b> ABSTRACT </b> </summary>
19
+ Image deblurring, removing blurring artifacts from images, is a fundamental task in computational photography and low-level computer vision. Existing approaches focus on specialized solutions tailored to particular blur types, thus, these solutions lack generalization. This limitation in current methods implies requiring multiple models to cover several blur types, which is not practical in many real scenarios. In this paper, we introduce the first all-in-one deblurring method capable of efficiently restoring images affected by diverse blur degradations, including global motion, local motion, blur in low-light conditions, and defocus blur. We propose a mixture-of-experts (MoE) decoding module, which dynamically routes image features based on the recognized blur degradation, enabling precise and efficient restoration in an end-to-end manner. Our unified approach not only achieves performance comparable to dedicated task-specific models, but also shows promising generalization to unseen blur scenarios, particularly when leveraging appropriate expert selection.
20
+ </details>
21
+
22
+ ![add](https://github.com/cidautai/DeMoE/raw/main/assets/teaser_demoe.png)
23
+
24
+ ## Network Architecture
25
+
26
+ ![add](https://github.com/cidautai/DeMoE/raw/main/assets/demoe_scheme.png)
27
+
28
+ ## Dependencies and Installation
29
+
30
+ - Python == 3.10.12
31
+ - PyTorch == 2.5.1
32
+ - CUDA == 12.4
33
+ - Other required packages in `requirements.txt`
34
+
35
+ ```
36
+ # git clone this repository
37
+ git clone https://github.com/cidautai/DeMoE.git
38
+ cd DeMoE
39
+
40
+ # create python environment
41
+ python3 -m venv venv_DeMoE
42
+ source venv_DeMoE/bin/activate
43
+
44
+ # install python dependencies
45
+ pip install -r requirements.txt
46
+ ```
47
+
48
+ ## Inference
49
+
50
+ First download the weights of the model from [OneDrive](https://cidautes-my.sharepoint.com/:u:/g/personal/alvgar_cidaut_es/EV2qVhGiwahKmnaTEQriziwBGAYB4DO89yFOmg5iF0aqag?e=znBKH1) and put them in `models/`. Then you can restore a whole set of images in a folder by running:
51
+
52
+ ```sh inference.sh```
53
+
54
+ Restored images will be saved in `./images/results`.
55
+
56
+ This will run a torchrun command with the `inference.py` script. If you need to add any other configuration to the script --such as the input folder or the checkpoints loaded--, modify directly the `inference.sh`.
57
+
58
+ > For manually selecting the deblurring task, add the -t argument in the script before running, otherwise the model will select the best expert to be used.
59
+
60
+ ## Citation and Acknowledgement
61
+
62
+ ```
63
+ @article{feijoo2025towards,
64
+ title={Towards Unified Image Deblurring using a Mixture-of-Experts Decoder},
65
+ author={Feijoo, Daniel and Garrido-Mellado, Paula and Rim, Jaesung and Garcia, Alvaro and Conde, Marcos V},
66
+ journal={arXiv preprint arXiv:2508.06228},
67
+ year={2025}
68
+ }
69
+ ```
70
+
71
+ ## Contact
72
+
73
+ For any questions, please contact danfei@cidaut.es and marcos.conde@uni-wuerzburg.de