SamuZai
NerdyRodent
NerdyRodent

patreon


Flux.1 - Faster Upscaling

video - https://youtu.be/PRiqTnP3no8

Thanks to the increased resolution, up-scaling takes much longer than generating the initial image... if only there was a way to speed that up a bit?

Well, it looks like Hyper-SD also works great when up-scaling too, and combined with the Euler CFG PP sampler, a latent multiply, some noise injection and a de-noising upscaler (because why not?) you can get some pretty decent images when using just 4 steps in the upscale stage!

Going up to 8 steps does give more detail, but can sometimes be a bit too much. There may even be something like a 2, 4 or 6-step Hyper-SD lora soon too, which would speed things up even more ;)

I've included both the normal & GGUF loader options as it works great with either, and the switch seems to load only the 1 model at a time.

Latent multiply seems to act as a quick and easy built-in node way to reduce (or increase) the colour saturation, while the WAS Nodes noise injection can add some details.

They can also easily be added to any existing up-scaling workflow.

In ComfyUI Manager, the custom nodes installed are:

As usual, I ran "update all" in manager to make sure everything has the current version.

Attachment info

Flux_Dev_TXT2IMG_HyperSD_MultiLora_NoisyHRF_CFGPP_Compare_v1.json - Loads of nodes. Just used for running a lot of things at once to compare

Flux_Dev_TXT2IMG_HyperSD_MultiLora_NoisyHRF_CFGPP_Basic_v1.json - The basic upscaler, no model loader option

Flux_Dev_TXT2IMG_HyperSD_MultiLora_NoisyHRF_CFGPP_BasicPlus_v1.json - The basic upscaler, including upscale model loader option

As a side note, I'll be away until next week so will answer any questions upon my return!

(update: I'm back! :)

Update - 11/9/2024

Just some minor updates to the new "Flux_Dev_TXT2IMG_HyperSD_MultiLora_NoisyHRF_CFGPP_BasicPlus_LowCFGXtraHiRes_v6.json" file:

Example image showing the workflow results:

Initial Image from the example:

Example 2048x2048 Upscaled Image:

Example 8192x8192 Upscaled Image:

Update 2 - IMG2IMG

Now also attached an IMG2IMG version ;)

Example image showing img2img result:

 

Update 3 - IMG2IMG + LLM

Now also attached an IMG2IMG + LLM version. Same as above, but LLM powered. See https://www.patreon.com/posts/ai-enhanced-flux-109665789 for more info on LLM party.

Example image showing the workflow results:

Example output:

Other example things for LLMs:

Input an image like this, along with the prompt "do this as a lego character instead"...

... to get a result like this:

It even works with animals too!

Plus text can be included as well!

The really tricky thing is wondering what you're going to re-imagine... ;)

 

Flux.1 - Faster Upscaling Flux.1 - Faster Upscaling Flux.1 - Faster Upscaling

Comments

Simply re-enable again :)

Nerdy Rodent

Yes, that's a good option, thanks. But what if I decide I do like the generated image and want to upscale it afterwards? Is there an easy solution for that?

Ruud

In ComfyUI it's easy to bypass groups by using the right mouse button and selecting "bypass"

Nerdy Rodent

I'm running this on a 3070 with 8GB VRAM. I don't want all images to automatically upscale. How can I make it optional to upscale after checking the first result? Would it be possible to get a workflow where I can load the image to upscale separately? Thanks

Ruud

Nope. Me blind for not seeing it wasn't attached ;) It's there now though!

Nerdy Rodent

hmm am I blind? I don't seem to see a IMG2IMG + LLM flow

Jacob Broms Engblom

Sure ;)

Nerdy Rodent

sounds like my ex wife

NetDude

Haven't tried myself as yet, but I'd guess the loras won't work... though schnell can do 4 steps anyway so no biggie there! Everything else should be fine!

Nerdy Rodent

The GGUF files are smaller (so less VRAM), but slower.

Nerdy Rodent

What's the difference with GGUF models ? Speed but quality ?

Guillaume C.

Thanks!

Case

any chance you can upload an img2img workflow for this?

V V

Hi! Does it work on flux schnell too?

Cris DM

Sweet

Clayfacer


More Creators