Auto Crop -> CCSR -> SUPIR -> UltimateSDupscale -> High quality upscale
5.0
5 reviewsDescription
This workflow is not meant to be fast, but aim for a VERY HIGH quality output. It outperform anything I know about upscale. Better than Topaz. Better than Magnific. But it have a down side, it is heavy on hardware when using the full workflow with large output size.
👉What it do:
It upscale a poor image into something mind-blowing while conserving integrity of the picture.
👉How it work:
The workflow look very big at first but is very simple to use. You can start by checking if you have all models in the workflow and can by tested directly. If you have problem, you can try to activate 1 group node at the time and see how it goes before going to next step.
1- We crop the image at a SDXL most closest size. This is done with my custom nodes attached in files. Copy FRED_AutoCropImage_SDXL_Ratio.py inside your \ComfyUI\custom_nodes.
2- We first upscale the image and clean it before it reach SUPIR. This is very important as SUPIR work best with a clean image, and simple upscale with model or upscale by node doesn't work well all the time. To do that, I use a CCSR upscale method. That upscale the image and keep it integrity and clean it. This mostly work good for noisy picture, with lots of artifacts, but is very hardware dependant and take sometime to load model for the first run.
3- If the CCSR upscale didn't worked to clean the picture, we can use StableSR group. Usually not necessary.
4- When the image is enough big (around 2x a SDXL standard), SUPIR will do it's magic. Adding skin texture and imperfections, adding detail to a landscape. It have its flaw, like adding hair where there isn't. To work around, we lower the CFGs but the common settings I finely found work very good.
5- Don't worry if there was too much skin imperfections as they will be finetune in ultimateSDupscale. I do another 2x here and using realvisXL30Turbo with the upscaler 4xNMKD-Superscale0SP_178000_G it add skin detail at a micro level.
6- Saving the picture in 2 different format, 1 with only a watermark at the bottom, and 1 with a compare of the original with automatic text placement. There is also a BEEP sound when the process end.
👉Where it work the best:
This workflow work so good for portrait image of humain on image around 512x512. So old SD1.5 image here we are for the upscale.
It work great on other pictures too, some tweeking maybe required.
👉More infos in workflow.
This workflow contains around 250 nodes but you can all find them in comfyui_manager except for my custom node that is attached in a zip file. Put it in folder mentionned earlier. You need numpy, cv2, PIL and Torch to run, but most of you will all have that already. If not, then do a pip install numpy, and the other one.
It also take a lot of ressouces but the result is worth it. For a normal upscale, it take around 8min/image upscaled on my RTX4090.
🔥Help me improving this workflow. If you find a better way to parse data or a better model, please share.
🔥Most install problem is not due to the workflow by itself but missing dependency or missing custom nodes or models. Be sur you're all set before posting a bug in the comments.
PaintShop was used ONLY to convert image to jpg as the result is around 33mb. No modification was done within that tool.
I hope you gonna have fun as much as I have to upscale pictures using this workflow.
Discussion
(No comments yet)
Loading...
Resources (1)
Reviews
No reviews yet
Versions (1)
- latest (9 months ago)
Node Details
Primitive Nodes (51)
Any Switch (rgthree)
ApplyStableSRUpscaler
Context (rgthree)
Context Big (rgthree)
Display Any (rgthree)
FRED_AutoCropImage_SDXL_Ratio
Fast Groups Bypasser (rgthree)
Get resolution [Crystools]
GetNode
Image Comparer (rgthree)
Note
Primitive float [Crystools]
Primitive integer [Crystools]
PrimitiveNode
Reroute
SetNode
Switch any [Crystools]
Switch image [Crystools]
Custom Nodes (63)
- JDC_ResizeFactor
- CR Simple Text Watermark
- CR Multi Upscale Stack
- CR Apply Multi Upscale
- CR Image Panel
- CR Image Border
- CR Overlay Text
- CR Load Image List
- CR Batch Process Switch
ComfyUI
- CheckpointLoaderSimple
- VAEEncode
- SaveImage
- ControlNetApply
- ControlNetLoader
- PreviewImage
- LoadImage
- UpscaleModelLoader
- CLIPTextEncodeSDXLRefiner
- CLIPTextEncode
- KSampler
- VAEDecode
- ImageResize+
ComfyUI_tinyterraNodes
- ttN text7BOX_concat
- AV_ControlNetPreprocessor
- CCSR_Model_Select
- CCSR_Upscale
- ResizeImageMixlab
- TextInput_
- SUPIR_model_loader_v2
- SUPIR_conditioner
- SUPIR_first_stage
- SUPIR_decode
- SUPIR_sample
- ColorMatch
- MathExpression|pysssss
- CheckpointLoader|pysssss
- PlaySound|pysssss
- LoraLoader|pysssss
- ShowText|pysssss
- ReActorRestoreFace
- Seed Generator
- UltimateSDUpscale
- JWImageResize
Model Details
Checkpoints (3)
realvisxlV30Turbo_v30Bakedvae.safetensors
stablesr_768v_000139.ckpt
wowXL420_v420.safetensors
LoRAs (1)
DetailedEyes_V3.safetensors