FLUX Comfyui Adding Details and Upscaling Techniques for Perfect Images
Howto & Style
Introduction
In this guide, we will explore how to make your FLUX image generations more appealing by utilizing a simple upscale method. This process will allow you to enhance your Fluxx images by adding extra details while saving you several hours on rendering, even with low-end GPUs. Let’s dive into the step-by-step process of setting up this workflow using ComfyUI.
Step-by-Step Workflow Setup
1. Setting Up ComfyUI
First, open ComfyUI and load the workflow from a previous video that utilizes FLUX and ControlNet. If you are unfamiliar with the setup, I recommend watching the earlier video for a complete breakdown of installing all custom nodes and necessary models.
2. Loading Your Image
Start by dragging and dropping your reference image into the Load Image node within the ControlNet group. Zoom out for a better view of the pre-processor. Here, use the Depth Anything V2 model from the list. The resolution should remain set at 512 for the Load Fluxx ControlNet node, which we will also keep on flag ST.
For the ControlNet model, select the Flag Step V3 model from XLabs. The Apply Flux ControlNet settings can be adjusted to 0.5, allowing it to be less restrictive to the ControlNet reference, hence giving the model more creative freedom.
3. Reviewing the Reference Image
Utilize the Preview Node to examine the outcomes of the reference image. Before proceeding, right-click to bypass the text-to-image group.
4. Crafting Your Prompt
Next, create a positive prompt. Activate the text-to-image group and select the GGF Model as the checkpoint to speed up FLUX processing while still maintaining remarkable results. Use the Dual Clip Loader, set to FP8 for low VRAM, and choose FLUX as the type.
For your prompt, a creative example is “A tree growing in reverse into a Lotus position,” which will be guided by ControlNet. Set the image size to 512x768 and the batch size to 4, then upscale to a 4K resolution.
5. Upscaling Images
Once you have generated the images, select your favorite one. As you zoom in, you may notice that the resolution appears noisy and pixelated. Let’s enhance this to a 4K resolution using the same workflow.
To do this, ensure you have the correct nodes installed. Go to the Node Manager, click on Custom Nodes, and search for Ultimate SD App Scale. If you haven't installed it yet, do so now. Also, download the necessary upscale models.
After closing the model manager, refresh your server and go back to your workflow. Add a new node, select Image, then Upscaling, and choose the Ultimate SD Upscale Node.
6. Connecting Nodes
Connect the nodes accordingly:
- The VAE goes into the input image part of the SD node.
- The model node connects to the upscale model you’ve chosen.
- Link the positive prompt to the Positive input and negative to Negative.
- Connect the VAE for FLUX to the VAE input here.
Once connected, drag the upscale port out and select the load upscale model node where you’ll apply 4X Ultra Shar. Set the images to upscale by 2, ensuring to use the same seed as the sampler node.
7. Finalizing the Workflow
Adjust the CFG value to 1 and the denoise to 0.2, then match the width and height with the original resolution. After everything is set, connect the save image node, increase its size, and use the Q Prompt to finalize the upscale.
8. Comparing Results
When you’ve upscaled the images, compare them by adding an RG3 Image Compare Node. Connect the low batch size image and the upscale node for direct comparison. Utilize the sliding feature in the comparison tool to visually assess the detail recovery.
Finally, check the image sizes for both versions. The original will show 512x768, while the upscaled version will reflect 1024x1536.
Conclusion
By following this comprehensive guide, you can significantly improve the quality of your FLUX images through strategic prompting and upscaling techniques, all while leveraging the capabilities of ComfyUI.
Keywords
- FLUX
- ComfyUI
- Upscaling
- ControlNet
- Depth Model
- Image Generation
- VAE
- RG3 Image Compare Node
FAQ
Q1: What is FLUX?
A1: FLUX refers to an image generation process that utilizes models like ControlNet to enhance visuals and add details.
Q2: How do I install custom nodes in ComfyUI?
A2: You can install custom nodes by visiting the Node Manager, selecting Custom Nodes, and searching for the desired node.
Q3: What does the Ultimate SD Upscale Node do?
A3: The Ultimate SD Upscale Node improves the resolution of images, allowing for enhanced details and quality.
Q4: Can I use low-end GPUs for this process?
A4: Yes, the entire process is optimized for use with low-end GPUs, saving rendering time and improving image quality.
Q5: Where can I find more information on creating workflows in ComfyUI?
A5: For a comprehensive breakdown, watch previous tutorial videos or consult the ComfyUI documentation.