Text-to-Image
Diffusers
Safetensors
English
Chinese
Thai
Flux2KleinPipeline
flux.2
comfyui
image-to-image
image-editor
Instructions to use geceff/Flux2Klein9B-comfyui with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use geceff/Flux2Klein9B-comfyui with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("geceff/Flux2Klein9B-comfyui", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Download workflow/Flux2image-reference-api-3image.json from geceff/Flux2Klein9B-comfyui: direct link, hf CLI and curl.
- Browser
- Download file 9.42 kB
-
https://huggingface.co/geceff/Flux2Klein9B-comfyui/resolve/main/workflow/Flux2image-reference-api-3image.json
- Command line
-
hf download hf://geceff/Flux2Klein9B-comfyui/workflow/Flux2image-reference-api-3image.json
-
curl -L -o Flux2image-reference-api-3image.json https://huggingface.co/geceff/Flux2Klein9B-comfyui/resolve/main/workflow/Flux2image-reference-api-3image.json
9.42 kB
| { | |
| "1": { | |
| "inputs": { | |
| "text": "", | |
| "clip": [ | |
| "2", | |
| 1 | |
| ] | |
| }, | |
| "class_type": "CLIPTextEncode", | |
| "_meta": { | |
| "title": "CLIP Text Encode (Prompt)" | |
| } | |
| }, | |
| "2": { | |
| "inputs": { | |
| "lora_name": "fulx2vbase-lora-master.safetensors", | |
| "strength_model": 1, | |
| "strength_clip": 1, | |
| "model": [ | |
| "6", | |
| 0 | |
| ], | |
| "clip": [ | |
| "5", | |
| 0 | |
| ] | |
| }, | |
| "class_type": "LoraLoader", | |
| "_meta": { | |
| "title": "Load LoRA (Model and CLIP)" | |
| } | |
| }, | |
| "3": { | |
| "inputs": { | |
| "image": "example.png" | |
| }, | |
| "class_type": "LoadImage", | |
| "_meta": { | |
| "title": "Load Image" | |
| } | |
| }, | |
| "5": { | |
| "inputs": { | |
| "clip_name": "qwen-3-8b-flux-klein.safetensors", | |
| "type": "flux2", | |
| "device": "default" | |
| }, | |
| "class_type": "CLIPLoader", | |
| "_meta": { | |
| "title": "Load CLIP" | |
| } | |
| }, | |
| "6": { | |
| "inputs": { | |
| "unet_name": "diffusion_models/Flux2Klein_base-bf16_master_v4.safetensors", | |
| "weight_dtype": "default" | |
| }, | |
| "class_type": "UNETLoader", | |
| "_meta": { | |
| "title": "Load Diffusion Model" | |
| } | |
| }, | |
| "7": { | |
| "inputs": { | |
| "lora_name": "flux-2-klein-9b_extracted_lora_rank_128-fp32.safetensors", | |
| "strength_model": 0.75, | |
| "model": [ | |
| "2", | |
| 0 | |
| ] | |
| }, | |
| "class_type": "LoraLoaderModelOnly", | |
| "_meta": { | |
| "title": "Load LoRA" | |
| } | |
| }, | |
| "8": { | |
| "inputs": { | |
| "lora_name": "bfs_head_v1_flux-klein_9b_step3500_rank128.safetensors", | |
| "strength_model": 0.75, | |
| "model": [ | |
| "7", | |
| 0 | |
| ] | |
| }, | |
| "class_type": "LoraLoaderModelOnly", | |
| "_meta": { | |
| "title": "Load LoRA" | |
| } | |
| }, | |
| "10": { | |
| "inputs": { | |
| "vae_name": "fulx2vae-master.safetensors" | |
| }, | |
| "class_type": "VAELoader", | |
| "_meta": { | |
| "title": "Load VAE" | |
| } | |
| }, | |
| "18": { | |
| "inputs": { | |
| "noise": [ | |
| "19", | |
| 0 | |
| ], | |
| "guider": [ | |
| "98", | |
| 0 | |
| ], | |
| "sampler": [ | |
| "20", | |
| 0 | |
| ], | |
| "sigmas": [ | |
| "105", | |
| 0 | |
| ], | |
| "latent_image": [ | |
| "32", | |
| 0 | |
| ] | |
| }, | |
| "class_type": "SamplerCustomAdvanced", | |
| "_meta": { | |
| "title": "SamplerCustomAdvanced" | |
| } | |
| }, | |
| "19": { | |
| "inputs": { | |
| "noise_seed": 513383871972281 | |
| }, | |
| "class_type": "RandomNoise", | |
| "_meta": { | |
| "title": "RandomNoise" | |
| } | |
| }, | |
| "20": { | |
| "inputs": { | |
| "sampler_name": "euler" | |
| }, | |
| "class_type": "KSamplerSelect", | |
| "_meta": { | |
| "title": "KSamplerSelect" | |
| } | |
| }, | |
| "23": { | |
| "inputs": { | |
| "samples": [ | |
| "18", | |
| 0 | |
| ], | |
| "vae": [ | |
| "10", | |
| 0 | |
| ] | |
| }, | |
| "class_type": "VAEDecode", | |
| "_meta": { | |
| "title": "VAE Decode" | |
| } | |
| }, | |
| "24": { | |
| "inputs": { | |
| "images": [ | |
| "23", | |
| 0 | |
| ] | |
| }, | |
| "class_type": "PreviewImage", | |
| "_meta": { | |
| "title": "Preview Image" | |
| } | |
| }, | |
| "30": { | |
| "inputs": { | |
| "image": "example.png" | |
| }, | |
| "class_type": "LoadImage", | |
| "_meta": { | |
| "title": "Load Image" | |
| } | |
| }, | |
| "32": { | |
| "inputs": { | |
| "width": [ | |
| "91", | |
| 0 | |
| ], | |
| "height": [ | |
| "91", | |
| 1 | |
| ], | |
| "batch_size": 1 | |
| }, | |
| "class_type": "EmptyLatentImage", | |
| "_meta": { | |
| "title": "Empty Latent Image" | |
| } | |
| }, | |
| "34": { | |
| "inputs": { | |
| "text": "text.UI.HUD.logo,watermark,bad anatomy,bad finger,artifact,blurry,censored,", | |
| "clip": [ | |
| "5", | |
| 0 | |
| ] | |
| }, | |
| "class_type": "CLIPTextEncode", | |
| "_meta": { | |
| "title": "CLIP Text Encode (Prompt)" | |
| } | |
| }, | |
| "44": { | |
| "inputs": { | |
| "shift": 3, | |
| "model": [ | |
| "8", | |
| 0 | |
| ] | |
| }, | |
| "class_type": "ModelSamplingAuraFlow", | |
| "_meta": { | |
| "title": "ModelSamplingAuraFlow" | |
| } | |
| }, | |
| "50": { | |
| "inputs": { | |
| "image": "example.png" | |
| }, | |
| "class_type": "LoadImage", | |
| "_meta": { | |
| "title": "Load Image" | |
| } | |
| }, | |
| "91": { | |
| "inputs": { | |
| "aspect_ratio": "16:9 (Widescreen)", | |
| "megapixels": 1, | |
| "multiple": 16 | |
| }, | |
| "class_type": "ResolutionSelector", | |
| "_meta": { | |
| "title": "Resolution Selector" | |
| } | |
| }, | |
| "98": { | |
| "inputs": { | |
| "cfg": 2, | |
| "start_percent": 0, | |
| "end_percent": 0.9, | |
| "model": [ | |
| "44", | |
| 0 | |
| ], | |
| "positive": [ | |
| "37:51", | |
| 0 | |
| ], | |
| "negative": [ | |
| "37:46", | |
| 0 | |
| ] | |
| }, | |
| "class_type": "ScheduledCFGGuidance", | |
| "_meta": { | |
| "title": "Scheduled CFG Guidance" | |
| } | |
| }, | |
| "105": { | |
| "inputs": { | |
| "scheduler": "simple", | |
| "steps": 4, | |
| "denoise": 1, | |
| "model": [ | |
| "44", | |
| 0 | |
| ] | |
| }, | |
| "class_type": "BasicScheduler", | |
| "_meta": { | |
| "title": "BasicScheduler" | |
| } | |
| }, | |
| "42:13": { | |
| "inputs": { | |
| "clip_name": "clip_vision_g.safetensors" | |
| }, | |
| "class_type": "CLIPVisionLoader", | |
| "_meta": { | |
| "title": "Load CLIP Vision" | |
| } | |
| }, | |
| "42:27": { | |
| "inputs": { | |
| "crop": "none", | |
| "clip_vision": [ | |
| "42:13", | |
| 0 | |
| ], | |
| "image": [ | |
| "30", | |
| 0 | |
| ] | |
| }, | |
| "class_type": "CLIPVisionEncode", | |
| "_meta": { | |
| "title": "CLIP Vision Encode1" | |
| } | |
| }, | |
| "37:36": { | |
| "inputs": { | |
| "pixels": [ | |
| "30", | |
| 0 | |
| ], | |
| "vae": [ | |
| "10", | |
| 0 | |
| ] | |
| }, | |
| "class_type": "VAEEncode", | |
| "_meta": { | |
| "title": "VAE Encode1" | |
| } | |
| }, | |
| "42:48": { | |
| "inputs": { | |
| "crop": "none", | |
| "clip_vision": [ | |
| "42:13", | |
| 0 | |
| ], | |
| "image": [ | |
| "50", | |
| 0 | |
| ] | |
| }, | |
| "class_type": "CLIPVisionEncode", | |
| "_meta": { | |
| "title": "CLIP Vision Encode2" | |
| } | |
| }, | |
| "37:45": { | |
| "inputs": { | |
| "pixels": [ | |
| "50", | |
| 0 | |
| ], | |
| "vae": [ | |
| "10", | |
| 0 | |
| ] | |
| }, | |
| "class_type": "VAEEncode", | |
| "_meta": { | |
| "title": "VAE Encode2" | |
| } | |
| }, | |
| "42:16": { | |
| "inputs": { | |
| "crop": "none", | |
| "clip_vision": [ | |
| "42:13", | |
| 0 | |
| ], | |
| "image": [ | |
| "3", | |
| 0 | |
| ] | |
| }, | |
| "class_type": "CLIPVisionEncode", | |
| "_meta": { | |
| "title": "CLIP Vision Encode" | |
| } | |
| }, | |
| "37:35": { | |
| "inputs": { | |
| "pixels": [ | |
| "3", | |
| 0 | |
| ], | |
| "vae": [ | |
| "10", | |
| 0 | |
| ] | |
| }, | |
| "class_type": "VAEEncode", | |
| "_meta": { | |
| "title": "VAE Encode" | |
| } | |
| }, | |
| "42:43": { | |
| "inputs": { | |
| "conditioning": [ | |
| "34", | |
| 0 | |
| ] | |
| }, | |
| "class_type": "ConditioningZeroOut", | |
| "_meta": { | |
| "title": "Conditioning Zero Out" | |
| } | |
| }, | |
| "37:40": { | |
| "inputs": { | |
| "conditioning": [ | |
| "42:43", | |
| 0 | |
| ], | |
| "latent": [ | |
| "37:35", | |
| 0 | |
| ] | |
| }, | |
| "class_type": "ReferenceLatent", | |
| "_meta": { | |
| "title": "Set Reference Latent" | |
| } | |
| }, | |
| "42:17": { | |
| "inputs": { | |
| "strength": 0.5, | |
| "noise_augmentation": 0, | |
| "conditioning": [ | |
| "1", | |
| 0 | |
| ], | |
| "clip_vision_output": [ | |
| "42:16", | |
| 0 | |
| ] | |
| }, | |
| "class_type": "unCLIPConditioning", | |
| "_meta": { | |
| "title": "unCLIPConditioning" | |
| } | |
| }, | |
| "37:41": { | |
| "inputs": { | |
| "conditioning": [ | |
| "37:40", | |
| 0 | |
| ], | |
| "latent": [ | |
| "37:36", | |
| 0 | |
| ] | |
| }, | |
| "class_type": "ReferenceLatent", | |
| "_meta": { | |
| "title": "Set Reference Latent1" | |
| } | |
| }, | |
| "42:28": { | |
| "inputs": { | |
| "strength": 0.5, | |
| "noise_augmentation": 0, | |
| "conditioning": [ | |
| "42:17", | |
| 0 | |
| ], | |
| "clip_vision_output": [ | |
| "42:27", | |
| 0 | |
| ] | |
| }, | |
| "class_type": "unCLIPConditioning", | |
| "_meta": { | |
| "title": "unCLIPConditioning" | |
| } | |
| }, | |
| "37:46": { | |
| "inputs": { | |
| "conditioning": [ | |
| "37:41", | |
| 0 | |
| ], | |
| "latent": [ | |
| "37:45", | |
| 0 | |
| ] | |
| }, | |
| "class_type": "ReferenceLatent", | |
| "_meta": { | |
| "title": "Set Reference Latent2" | |
| } | |
| }, | |
| "42:49": { | |
| "inputs": { | |
| "strength": 0.5, | |
| "noise_augmentation": 0, | |
| "conditioning": [ | |
| "42:28", | |
| 0 | |
| ], | |
| "clip_vision_output": [ | |
| "42:48", | |
| 0 | |
| ] | |
| }, | |
| "class_type": "unCLIPConditioning", | |
| "_meta": { | |
| "title": "unCLIPConditioning" | |
| } | |
| }, | |
| "37:38": { | |
| "inputs": { | |
| "conditioning": [ | |
| "42:49", | |
| 0 | |
| ], | |
| "latent": [ | |
| "37:35", | |
| 0 | |
| ] | |
| }, | |
| "class_type": "ReferenceLatent", | |
| "_meta": { | |
| "title": "Set Reference Latent" | |
| } | |
| }, | |
| "37:39": { | |
| "inputs": { | |
| "conditioning": [ | |
| "37:38", | |
| 0 | |
| ], | |
| "latent": [ | |
| "37:36", | |
| 0 | |
| ] | |
| }, | |
| "class_type": "ReferenceLatent", | |
| "_meta": { | |
| "title": "Set Reference Latent1" | |
| } | |
| }, | |
| "37:47": { | |
| "inputs": { | |
| "conditioning": [ | |
| "37:39", | |
| 0 | |
| ], | |
| "latent": [ | |
| "37:45", | |
| 0 | |
| ] | |
| }, | |
| "class_type": "ReferenceLatent", | |
| "_meta": { | |
| "title": "Set Reference Latent5" | |
| } | |
| }, | |
| "37:51": { | |
| "inputs": { | |
| "reference_latents_method": "index", | |
| "conditioning": [ | |
| "37:47", | |
| 0 | |
| ] | |
| }, | |
| "class_type": "FluxKontextMultiReferenceLatentMethod", | |
| "_meta": { | |
| "title": "Edit Model Reference Method" | |
| } | |
| } | |
| } |