What Is Image Restoration? How AI Gets a Clean Picture Back
Image restoration, the short answer: image restoration is the job of getting a clean image back from a damaged one, by removing blur, noise, compression blocks, low resolution or the wear of an old print. Modern AI image restoration does this in one pass and works out by itself what went wrong, which researchers call blind restoration. The result is always a best estimate, not the lost original: where detail is truly gone, the AI fills in something believable.

What is image restoration?
Image restoration starts from a simple story: a clean scene went through something that damaged it. A shaky hand added blur, a small sensor in dim light added noise, a chat app squeezed the file. Restoration tries to run that story backwards and estimate the clean image.
The catch is that many different clean photos would turn into the same blurry, blocky file, so the damaged image alone cannot say which one you started with. Every method adds an assumption about what real photos look like. That is why image restoration is a careful estimate, not a recovery: a good one keeps everything the damaged image still shows and fills the gaps with something plausible.
What kinds of damage does image restoration fix?
Five kinds of damage cover most real photos:
- Blur: camera shake, a moving subject or missed focus. Edges smear into their neighbors.
- Noise and grain: speckles of random brightness and color, from small sensors in low light or from film.
- Compression: JPEG saves space by simplifying the picture in blocks of 8 by 8 pixels. Save it hard, or re-save it often, and you get visible blocks, smeared color and halos around edges.
- Low resolution: too few pixels to begin with, or an image shrunk for a thumbnail or a chat app.
- Old-print damage: fading, color casts, dust, fine scratches and paper texture.
In real photos these rarely come alone. A phone snapshot of a 1960s print can carry all five: the print faded and got scratched, the phone added blur and noise, and a chat app shrank and compressed it.
Models trained on one tidy kind of damage often fail on real photos, so researchers adapted. Real-ESRGAN (2021) trains on pictures damaged twice over: blur, resizing, noise and JPEG compression applied in a chain, then the whole chain run again, to imitate how real images get worn down.


Blind vs non-blind image restoration: do you have to say what's wrong?
Non-blind restoration means you tell the method what went wrong and how badly. Classic deblurring often needs the exact blur pattern, such as the path the camera took during a shake, and many older denoisers ask for a noise level. When that description is right, non-blind methods can be very accurate. When it is wrong, they can make the picture worse.
Blind image restoration means the method works it out by itself. It does not ask whether the problem is blur, noise or compression, or how much of each. That is harder, but it is the only practical option for real photos, where nobody knows the exact damage and several kinds are mixed.
DiffBIR's paper title, "Towards Blind Image Restoration with Generative Diffusion Prior", names this goal directly, and the project covers blind super-resolution, blind face restoration and blind denoising.
A short history of image restoration in three steps
1. Classic filters and deconvolution
For decades, restoration was math written by hand. Smoothing filters averaged noise away, along with some fine detail. Deconvolution described blur as a known pattern that spreads each point of light, then tried to undo it. These methods are fast and predictable, but they cannot invent lost texture, and strong settings leave ringing halos around edges.
2. Deep networks that learn from examples
Next, researchers showed neural networks many pairs of damaged and clean images and let them learn the way from one to the other. SRCNN, posted to arXiv at the end of 2014 by Chao Dong and colleagues, was an early network that learned to turn low-resolution images into high-resolution ones.
By 2021 the networks were far stronger. Real-ESRGAN, by Xintao Wang and colleagues, targeted real photos with unknown damage. SwinIR, by Jingyun Liang and colleagues, used a Transformer and reported top results on super-resolution, denoising and JPEG artifact removal. On heavy damage, though, a network trained to match the clean image pixel by pixel tends to look waxy: when many answers are possible, their average scores best, and an average looks soft.
3. Diffusion models that generate missing detail
The newest methods borrow from image generators. A diffusion model such as Stable Diffusion has learned what real skin, rope, fabric and leaves look like, so a restoration model built on it can draw one believable version of the missing detail instead of averaging.
DiffBIR, by Xinqi Lin and colleagues, first appeared on arXiv in August 2023, was published at ECCV 2024 and is built on Stable Diffusion 2.1. SUPIR, by Fanghua Yu and colleagues (CVPR 2024), scaled the idea up on SDXL. In July 2025 the DiffBIR authors released HYPIR (SIGGRAPH 2025), which they say "significantly outperforms DiffBIR" and is "tens of times faster". For how the best-known two differ, see SUPIR vs DiffBIR.
One name runs through the last two steps: Chao Dong is an author of SRCNN, Real-ESRGAN, DiffBIR, SUPIR and HYPIR.
Sources: SRCNN, Real-ESRGAN, SwinIR, DiffBIR paper and DiffBIR on GitHub, SUPIR paper and SUPIR on GitHub, HYPIR paper and HYPIR on GitHub, checked November 2026.
How does DiffBIR restore an image? Clean first, then rebuild detail
DiffBIR splits restoration into two steps, because the two halves of the job pull in different directions: removing damage needs caution, rebuilding texture needs imagination.
Step 1: remove the damage. A conventional restoration network takes out noise, compression blocks and blur, and upscales. DiffBIR uses existing models from other papers here: BSRNet for super-resolution, SwinIR-Face for faces and SCUNet-PSNR for denoising. The output is faithful but soft, like the middle panel below.
Step 2: rebuild the detail. A second part called IRControlNet, running on Stable Diffusion 2.1, takes that clean but soft image as a guide and generates realistic texture on top: single hairs, threads in a net, grain in wood. Because its guide is already clean, the generator is less likely to mistake leftover damage for detail. This step stays the same for every task; only the step 1 model changes.

Damaged input

Step 1: damage removed

Step 2: detail rebuilt
Look at the beard, the rope and the net: clean but painted-looking after step 1, full of strands and twists after step 2. Those strands were not in the damaged input. They are new, believable detail, which leads to the main trade-off.
Fidelity vs realism: why more detail means more invention
Fidelity means staying close to what the damaged image actually shows. Realism means looking like a real, sharp photo. In image restoration you cannot max out both at once.
Yochai Blau and Tomer Michaeli proved a version of this in The Perception-Distortion Tradeoff (CVPR 2018): past a certain point, being closer to the true image on average and looking more like a real photo are at odds. A soft, averaged result is the safest guess. A crisp, realistic one commits to details that may not match the original scene.
Diffusion restorers turn this into a dial. The DiffBIR paper adds a guidance setting that balances realism and fidelity when you run it, without retraining. SUPIR has a setting, s_stage2, where 1.0 gives higher fidelity and 0.93 gives higher visual quality with lower fidelity.
A practical rule: for a face you know, a document or a product label, lean toward fidelity. For a landscape or artwork, where nobody checks each leaf, more generated detail usually looks better.
What image restoration cannot do
- It cannot truly recover lost detail. If a sign is a few pixels tall, the real letters are gone. A model can draw sharp letters, but they are a guess and may be different characters, so never use restoration to read a number you could not read before.
- It does not fill missing pieces. A torn-off corner, a hole or a large stain needs inpainting, which paints new content into an empty area.
- It gains little on sharp photos. A clean image has little damage to remove, and strong settings can make it look over-processed.
- It can shift faces. With a lot of generated detail, small facial features can change.
For blur in particular, how to unblur a picture walks through the options.
Image restoration vs upscaling, enhancement, inpainting and colorization
| Term | What it does | Starts from | Example |
|---|---|---|---|
| Image restoration | What it doesRemoves damage and estimates the clean picture | Starts fromA damaged image | ExampleA grainy, blocky phone photo cleaned up |
| Upscaling (super-resolution) | What it doesAdds pixels so the image is bigger and sharper | Starts fromA small image | ExampleA 500-pixel thumbnail made 2,000 pixels wide |
| Enhancement | What it doesChanges the look: brightness, contrast, color, sharpening | Starts fromAny image | ExampleA dull sunset made more vivid |
| Inpainting | What it doesPaints new content into a missing area | Starts fromAn image with a hole | ExampleA torn-off corner filled in |
| Colorization | What it doesAdds plausible color to a black-and-white image | Starts fromA grayscale image | ExampleA 1940s portrait shown in color |
The terms overlap: super-resolution is often counted as a restoration task (DiffBIR lists it as one of its three). The useful difference is that restoration tries to stay faithful to what was there, enhancement changes the look on purpose, and inpainting and colorization add information that was never in the file.
Trying AI image restoration on DiffBIR.com
DiffBIR.com is an independent online tool for AI image restoration. It is not affiliated with the DiffBIR authors or XPixelGroup, and it does not claim to run the DiffBIR model or code.
Upload a photo and the tool fixes blur, noise and grain, JPEG blocks, low resolution and old-print damage in one pass, without asking what's wrong. It works on the whole image, not only faces. A Faithful / Balanced / Detailed setting picks your spot on the fidelity vs realism scale: Faithful changes the least (faces you know, documents, product shots), Detailed rebuilds the most texture (landscapes, artwork).
You get 1 free image a day without an account, at standard (1K) size and with no watermark. One-time credit packs (no subscription, see pricing) add more images, 2K and 4K output and commercial use. It accepts JPG, PNG or WEBP up to 30 MB and usually takes 1 to 3 minutes in any browser, phones included. Images are private and never used to train AI. The limits above apply here too: unreadable text stays a guess, and torn-off pieces are not filled in.
FAQ
Is image restoration the same as upscaling?
Not quite. Upscaling, also called super-resolution, makes an image bigger, while image restoration removes damage such as blur, noise and compression. Many restoration tools do both at once, which is why the terms get mixed up.
What does blind image restoration mean?
It means the method works out by itself what is wrong with the image. You do not have to say whether the problem is blur, noise or compression, or how strong it is.
Can AI image restoration recover details that were never captured?
No. When detail is truly lost, AI image restoration draws a believable version of it. That is fine for hair or grass, but it is not evidence of what a face, a sign or a number really looked like.
Is DiffBIR.com the same as DiffBIR?
No. DiffBIR is an open-source research model by Xinqi Lin and colleagues, published at ECCV 2024 under the Apache-2.0 license. DiffBIR.com is an independent website, not affiliated with the DiffBIR authors, and it does not claim to run the DiffBIR code.
Will image restoration change how a face looks?
It can. Settings that generate a lot of detail may shift small features such as eyes or teeth, so for a face you know well, choose the most faithful setting and compare the result with the original.

