ComfyUI beginner friendly Flux.2 Klein 9B GGUF Simple Cloth Swap Workflow by Sarcastic TOFU
8
6
3
Verified: 4 days ago
Other
The FLUX.1 [dev] Model is licensed by Black Forest Labs. Inc. under the FLUX.1 [dev] Non-Commercial License. Copyright Black Forest Labs. Inc.
IN NO EVENT SHALL BLACK FOREST LABS, INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH USE OF THIS MODEL.
This is a very simple ComfyUI beginner friendly Flux.2 Klein 9B GGUF Simple Cloth Swap Workflow that will work with very simple text editing instructions in natural language to swap cloth of your desired target image's subject. With this workflow I demonstrated two scenarios of cloth swapping - #1. in the primary scenario you simply isolate and extract the clothing from clothing reference image (Picture 2) and just swap the clothing of your target image (Picture 1) keeping everything else (lighting, environment, face, pose and background) as it is; this works very well [ look for Flux.2_Klein9B_CLOTH_SWAP_v1.0 (Default Dimensions).json file ] and in #2. not only you extract and swap cloths but you also perform other modifications on the output (lighting, environment, footwear, background and image aspect ratio of output) [ look for Flux.2_Klein9B_CLOTH_SWAP_v1.0 (Custom Dimensions).json file ].
I used a Flux.2 Klein 9B Q2 Model that works well with my 8GB VRAM AMD GPU (or even with any system with only 6GB VRAM). But you can swap the model with Full Flux.2 Klein 9B model or higher Q models on better systems (systems with 12GB / 16GB / 28GB / 32GB GPUs or their equivalent Unified Memories on Mac Systems).
This workflow also helps you to save your Simple Cloth Swap Generation Data into a human readable .txt file. This will automatically get and write your metadata to the .txt file. You will find all the saved prompt files that it generated with the images inside the Archive (.Zip) that has the workflow, I also provided all input images that has been used on the examples provided and some extra resources. Look for "Generations" and "References" folders. Also with the Image Saver Simple node used you may embed the workflow itself with each saved image or save the image and workflow for your work separately. In this way a readable .txt file for each run of this workflow will be generated (matching Automatic1111 / EasyDiffusion's .txt outputs).
This workflow can not be modified to be used for Flux.2 Klein 4B models as it has a hard dependancy for a Flux.2 Klein 9B LORA (unless you have a similar LORA), but if you want to or you are forced to use Flux.2 Klein 4B model you can use my older, slightly faster but bit more inefficient Flux.2 Klein 4B GGUF Simple Cloth Swap Workflow (you can use that one for 9B too but on very newer versions of ComfyUI people have informed me they have issues with SAM3 node used on that) that you can find on my profile. Also prompt writing styles of both of these workflows are very different so you have to follow each workflow's own prompt writing style. Follow the example prompts and do your modifications where necessary, your good results will greatly depend on your qualities of your prompts. You can also modify this workflow to add more reference images but for the sake of simplicity and performance I have used just two images.. A target image (Picture 1) where the changes will occur and a clothing reference image (Picture 2).
You need a Hugging Face account to download your necessary files (Details are mentioned below). Make sure you install GGUF addon for ComfyUI using ComfyUI manager or any other missing nodes you may have and place the correct files in correct places. Also check out my other workflows for SD 1.5 + SDXL 1.0, WAN 2.1, WAN 2.2, MagicWAN Image v2, QWEN, HunyuanImage-2.1, HiDream, KREA, Kontet, Chroma, AuraFlow, Z-Image Turbo, Flux.1 Dev, Flux.2 Klein 4B and 9B. Feel free to toss some yellow Buzz on stuffs you like.
How to use this -
#1. Just select your desired Flux.2 Klein 9B GGUF (or swap it with full model) models first and now
#2. now select your images for editing - on the very left target image (Picture 1) & then a clothing reference image on the right (Picture 2)
#3. on next step enter your image editing instructions. (be very precise & targeted, like examples given)
#4. then select how many output images you want (Change the number besides the "Run" button)
#5. after this select image sampling methods, CFG, steps etc. settings (you may wanna stay with defaults)
#5. finally press the run button to generate. That's it..
** This workflow
Required Files
================
Flux.2 Klein 9B Models ( If you are using 6GB or 8GB VRAM GPU )-
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
### Download Link for Flux.2 Klein 9B GGUF Models
--------------------------------------------------
Only for this workflow I used Flux.2 Klein 9B Q2 GGUF Model (lowest Quant for 9B), but usually I use
Get the Q2 Model from here (One used in this workflow that helped me reduce system power usage) -
https://huggingface.co/unsloth/FLUX.2-klein-9B-GGUF/resolve/main/flux-2-klein-9b-Q2_K.gguf
Get the Q4 Model from here (One used in my all other Flux.2 Klein 9B workflows, it offers better performance & results ) -
https://huggingface.co/unsloth/FLUX.2-klein-9B-GGUF/resolve/main/flux-2-klein-9b-Q4_K_M.gguf
### Download Link for Flux.2 Klein 9B Text Encoder
---------------------------------------------------
Flux.2 Klein Common VAE Model -
++++++++++++++++++++++++++++++
### Download Link for Flux.2 Klein VAE (Workes on both 4B and 9B)
------------------------------------------------------------------
https://huggingface.co/Comfy-Org/flux2-dev/resolve/main/split_files/vae/flux2-vae.safetensors
LORA used on this workflow -
+++++++++++++++++++++++++++
### Download Link for Flux.2 Klein 9B TryOn LORA
-------------------------------------------------

