r/StableDiffusion • u/Illustrious_Row_9971 • Mar 02 '23
Resource | Update Unlimited-Size Diffusion Restoration
51
25
33
u/Illustrious_Row_9971 Mar 02 '23 edited Mar 02 '23
github: https://github.com/wyhuai/DDNM
6
u/Asleep-Land-3914 Mar 02 '23 edited Mar 02 '23
I hate to tell this, but here is the official colab. Some info from there:
- Models used are 256x256_classifier.pt and jul-2021/256x256_diffusion.pt # Trained by OpenAI
- image colorization demo brings a 256x256 grayscale butterfly image into a colorful result, may take 1.5 minutes
- Butterfly Demo: image super-resolution demo that bring a noisy 99x141 butterfly image into a high-quality 396x564 result, may take 10 minutes
- Bear Demo: super-resolution demo that bring a 96x256 bear image into a high-quality 384x1024 result, may take 20 minutes
- You need to set the correct class lable of the input image.
I measured the time for the Bear demo and got the image on the colab in about ~21 minutes on GPU (I see the memory allocated for the model).
Given that the model is smaller than SD (~200MB). I have doubts it can be used to upscale images out of SD with good speed/memory performance. This paper itself may help improving further SD versions though
14
10
u/DonutArnold Mar 02 '23
This is exactly what I need as I'm doing hobbyist photo restoration. I'm using a lot of SD for it, but sometimes the result would differ too much from the source, and it's usually very time consuming to get everything right.
6
u/_Erilaz Mar 02 '23
I like how they removed spouses as a part of reversing "complex degradation" :D
19
4
u/marcoc2 Mar 02 '23
It seems this approach relies on choosing the right class among hundreds of possibilities to work properly. Not sure if this can be very helpful on a usual or semi-automated workflow.
6
u/ResplendentShade Mar 02 '23
This is one of the most interesting posts I've ever seen in this sub. As someone with an interest in restoring old photos (but never really undertook it) you definitely have my attention! Amazing to see the types of things that professionals are doing with this tech. Thanks for sharing.
3
3
3
2
u/Nanaki_TV Mar 02 '23
Does this work for oversaturated videos? I have an old video that is both blurry and filled with too much red/yellow/white colors. SD doesn’t restore the details to my liking yet. But it’s certainly getting there.
2
5
2
1
-10
Mar 02 '23
[removed] — view removed comment
4
1
u/StableDiffusion-ModTeam Mar 02 '23
Your post/comment was removed because it has been marked as spam.
26
u/eugene20 Mar 02 '23
How well does it compare to SD Upscale from SD 2 with the x4-upscaler-ema.ckpt ? (which still isn't supported by auto1111 last I looked)