I have a ComfyUI workflow for Stable Diffusion 3.5 image generation and upscale. The…
- User
I have a ComfyUI workflow for Stable Diffusion 3.5 image generation and upscale. The initial image generated is 1280 x 720 pixels (let's call it initial prompt, initial image). Because SD can't directly generate images more than around 1 megapixel, I have to use some tricks. It also have an upscaler which contains : the upscale model itself - I use "4x Real SSDIR DAT GAN" (4xReal_SSDIR_DAT_GAN) - it shows better results than the popular "nmkd superscale", it's set to upscale the image by 2x, so the image is upscaled to 2560 x 1440, then it splits into 4 images grid (with 64 pixel overlap, it contains the part itself AND 64 pixels of the next image, so the edges WILL be consistent and won't be even noticed when reconstructing the image back), after that each image (1280 x 720) goes into LLM model recognition (currently I use Meta Llama 3.1 8b) with simple prompt "describe the image in formal tone within 100 words" - because the image is splitted it no longer contains ALL of the elements described in the generation prompt, so the new prompt is needed (new prompt 1 - 4 , new image 1 - 4). After that each of the splitted images with a text prompt describing it goes into Stable Diffusion module that is doing the image generation, with a denoise factor around 0.2 - so it will create a "new" image based on new prompts and images. Then all 4 generated images are split back into one 2560 x 1440. I've tried the "faster" ways without LLM, but I was not satisfied with the quality at all. I have 128 Gb of RAM and RTX 4080 GPU - the hardware won't be upgraded in any time soon. Generation time: around 45 seconds for SD image (initial one and for each of the 4 splitted), around 25 seconds for first upscale (SSDIR DAT GAN model), 90 seconds for the LLM work. So, that's around 6 minutes for 2560 x 1440 image. It can be scaled up (3 x 3 grid, 3840 x 2160 output, 9 images in split with 45 sec generation time + LLM work, or 4 x 4 grid - 5120 x 2880 , 16 images in split etc). Now the question to you: the LLM upscaler works fine, but I wonder if there are some quality improvements (speed is not necessary).
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.