Fanghua-Yu / SUPIR

SUPIR aims at developing Practical Algorithms for Photo-Realistic Image Restoration In the Wild. Our new online demo is also released at suppixel.ai.
http://supir.xpixel.group/
Other
4.38k stars 384 forks source link

Full Tutorial + 1 Click 12 GB VRAM Installer + Batch Upscale + Comparison With Magnific - SUPIR Starts A New Era #38

Closed FurkanGozukara closed 7 months ago

FurkanGozukara commented 8 months ago

I have dedicated several days, working over 12 hours each day, on SUPIR (Scaling-UP Image Restoration), a cutting-edge image enhancement and upscaling model introduced in the paper Scaling Up to Excellence: Practicing Model Scaling for Photo-Realistic Image Restoration In the Wild.

This model is simply mind-blowing. At the bottom of this post, you will see side-by-side comparisons of SUPIR versus the extremely expensive online service, Magnific AI. Magnific is known to be the best among the community. However, SUPIR is by far superior. SUPIR also significantly outperforms Topaz AI upscale. SUPIR manages to remain faithful to the original image almost 100% while adding details and achieving super upscaling with the best realism.

I made a full 33-minute tutorial, fully chaptered with manually written captions. The chapter's info is posted at the very bottom.

You can watch the video here: SUPIR: New SOTA Open Source Image Upscaler & Enhancer Model Better Than Magnific & Topaz AI Tutorial

SUPIR: New SOTA Open Source Image Upscaler & Enhancer Model Better Than Magnific & Topaz AI Tutorial

image

You can join our 6500+ member Discord for any help & discussion: https://discord.com/servers/software-engineering-courses-secourses-772774097734074388

Original repo of SUPIR: https://github.com/Fanghua-Yu/SUPIR

I have worked hard to make a 1-click installer for Windows & RunPod. RunPod uses Linux, thus if you are a Linux user you can use RunPod files to install locally on Linux as well with a 1-click install.

Full instructions are shared in this post along with the scripts: https://www.patreon.com/posts/supir-1-click-99176057

Here are the installer files:

image

The installer works with Python 3.10.11. It generates a new pip venv and installs everything there. So you don't need Conda. Since it will generate its own VENV, it will not affect any other installations on your system.

The installer installs xFormers and Triton (we are using a pre-compiled wheel) and Pytorch 2.2.0 automatically for you on Windows and Linux.

The Gradio app launching interface is shown below:

image

Currently, with the newest optimizations, the SUPIR app works great on RTX 3060 without LLaVA. I have tested it on my 12 GB single RTX 3060 GPU. So if you have a GPU that has 12GB or more VRAM, you can use it.

The installer downloads all models automatically as well. Also, I changed the base SDXL model with Juggernaut XL - V9 since it works better.

You can simply use any SDXL model. Instructions are on the Patreon post.

I also greatly improved the base Gradio APP. I made the interface more usable.

I added the number of images and randomized seed features. I made the image upscale scaler 0.1 precision.

Moreover, I have added a batch upscale feature as well.

You can see the improved advanced Gradio app interface below.

All the images the app generates will be automatically saved under the outputs folder. You can define the batch image processing outputs folder as well.

image

Here is the content of the Patreon post:

image

The chapters of the tutorial are as follows:

SUPIR vs MAGNIFIC AI

Carefully look at the how much SUPIR can be loyal to the original image vs Magnific can be loyal to original image

base_ali

magnific_ali

supir_ali

base_dino

dino_magnific

dino_supir

base_family

magnific_family

supir_family

base_camel

magnific_camel

supir_camel

base_vampire

magnific_vampire

supir_vampire

base_dragon

magnific_dragon

supir_dragon

base_arnold

magnific_arnold

supir_arnold

base_predator

magnific_predator

supir_predator

base_charlie

magnific_charlie

supir_charlie

base_monster

magnific_monster

supir_monster

zelenooki87 commented 8 months ago

You deserve ban for posting your "premium" sh**y stuff here. Everything can be done with following authors readme file.

Revln9 commented 8 months ago

Can you please ban this guy ?

JasonGUTU commented 8 months ago

Hello and thanks for your work! You made a great video and your results are very important to us. Maybe someone else thinks it's inappropriate to post this as an issue. We can make it better and find you a better place to share your thoughts!

FurkanGozukara commented 8 months ago

Hello and thanks for your work! You made a great video and your results are very important to us. Maybe someone else thinks it's inappropriate to post this as an issue. We can make it better and find you a better place to share your thoughts!

Thank you so much. I will hopefully make more people to know this Model. It is not getting the attention it deserves.

friendlyFriend4000 commented 8 months ago

https://github.com/Fanghua-Yu/SUPIR

no paywall, one click installer

Akarity commented 8 months ago

I tried to install, based on the readme, but got a bunch of errors when installing requirements.

2024-02-28 22_47_26-Anaconda Prompt

FurkanGozukara commented 8 months ago

@Akarity I made it installed via Python 3.10.11 venv. I really don't like Conda

OoAnikioO commented 8 months ago

https://github.com/Fanghua-Yu/SUPIR

no paywall, one click installer

there is no one click installer on this page

FurkanGozukara commented 8 months ago

New updates added to our Gradio. I keep adding features requested by the supporters

https://www.patreon.com/posts/99176057

image

image metadata

updated interface

image

csatoshii commented 8 months ago

people would have less of a problem with this he didn't put it behind a paywall. this isn't helping anyone but his own pockets. Sure people need to make money, but it's done in such a sh*tty and spammy way - everywhere!

FurkanGozukara commented 8 months ago

Just updated to V19

image

image

image

FurkanGozukara commented 8 months ago

We updated to V21 and we got some SUPIR improvements

new updates

new options

show off

metadata

FurkanGozukara commented 8 months ago

We just made a new big update V22

Auto generate comparison video

https://github.com/Fanghua-Yu/SUPIR/assets/19240467/60b9f4e1-f968-4d26-8333-553739f7b8a5

v22

alcoartist commented 8 months ago

GitHub policy isn't working here? Ban this patreon $$ "developer", please. He is spamming everywhere.

PierrunoYT commented 8 months ago

How can I use it inside Pinokio?

FurkanGozukara commented 8 months ago

We have been working non stop and added so many features

You can download and use from here standalone fully auto installer including download models : https://www.patreon.com/posts/supir-1-click-99176057

@PierrunoYT

https://github.com/Fanghua-Yu/SUPIR/assets/19240467/fa10341f-9f07-4d9c-8926-1f73ebe1bdaa

new features

image

image

FurkanGozukara commented 8 months ago

We are now version 41 : https://www.patreon.com/posts/99176057

Here look at all the features we brought

Displaying full status of upscale

image

image

Auto make comparison video

https://github.com/Fanghua-Yu/SUPIR/assets/19240467/81787dd7-5f1a-4f6b-83f4-259d02726750

Look all the options and changelogs

image

We now have even process video input automatically

image

image