Instructions to use geceff/Krea2TurboFp32 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use geceff/Krea2TurboFp32 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/Krea2TurboFp32", 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 K2-i2ieditor-API.json from geceff/Krea2TurboFp32: direct link, hf CLI and curl.
- Browser
- Download file 6.99 kB
-
https://huggingface.co/geceff/Krea2TurboFp32/resolve/main/K2-i2ieditor-API.json
- Command line
-
hf download hf://geceff/Krea2TurboFp32/K2-i2ieditor-API.json
-
curl -L -o K2-i2ieditor-API.json https://huggingface.co/geceff/Krea2TurboFp32/resolve/main/K2-i2ieditor-API.json
6.99 kB
| { | |
| "137": { | |
| "inputs": { | |
| "value": "" | |
| }, | |
| "class_type": "PrimitiveStringMultiline", | |
| "_meta": { | |
| "title": "Text String (User Prompt)True" | |
| } | |
| }, | |
| "139": { | |
| "inputs": { | |
| "image": "745811972_1632791088552330_4827906805542911722_n.jpg" | |
| }, | |
| "class_type": "LoadImage", | |
| "_meta": { | |
| "title": "Load Image" | |
| } | |
| }, | |
| "141": { | |
| "inputs": { | |
| "switch": false, | |
| "on_false": [ | |
| "151", | |
| 0 | |
| ], | |
| "on_true": [ | |
| "137", | |
| 0 | |
| ] | |
| }, | |
| "class_type": "ComfySwitchNode", | |
| "_meta": { | |
| "title": "If/Else Switch" | |
| } | |
| }, | |
| "142": { | |
| "inputs": { | |
| "prompt": [ | |
| "145", | |
| 0 | |
| ], | |
| "max_length": 512, | |
| "sampling_mode": "on", | |
| "sampling_mode.temperature": 0.7, | |
| "sampling_mode.top_k": 64, | |
| "sampling_mode.top_p": 0.05, | |
| "sampling_mode.min_p": 0.75, | |
| "sampling_mode.repetition_penalty": 1.05, | |
| "sampling_mode.seed": 1, | |
| "sampling_mode.presence_penalty": 0.01, | |
| "thinking": false, | |
| "use_default_template": true, | |
| "clip": [ | |
| "143", | |
| 1 | |
| ] | |
| }, | |
| "class_type": "TextGenerate", | |
| "_meta": { | |
| "title": "Generate Text" | |
| } | |
| }, | |
| "143": { | |
| "inputs": { | |
| "lora_01": "loras/krea2_identity_edit_v1_2.safetensors", | |
| "strength_01": 0.7, | |
| "lora_02": "None", | |
| "strength_02": 0, | |
| "lora_03": "None", | |
| "strength_03": 0, | |
| "lora_04": "None", | |
| "strength_04": 0, | |
| "model": [ | |
| "153:102", | |
| 0 | |
| ], | |
| "clip": [ | |
| "153:79", | |
| 0 | |
| ] | |
| }, | |
| "class_type": "Lora Loader Stack (rgthree)", | |
| "_meta": { | |
| "title": "Lora Loader Stack (rgthree)" | |
| } | |
| }, | |
| "144": { | |
| "inputs": { | |
| "samples": [ | |
| "159", | |
| 0 | |
| ], | |
| "vae": [ | |
| "153:80", | |
| 0 | |
| ] | |
| }, | |
| "class_type": "VAEDecode", | |
| "_meta": { | |
| "title": "VAE Decode" | |
| } | |
| }, | |
| "145": { | |
| "inputs": { | |
| "string_a": "", | |
| "string_b": [ | |
| "151", | |
| 0 | |
| ], | |
| "delimiter": "" | |
| }, | |
| "class_type": "StringConcatenate", | |
| "_meta": { | |
| "title": "Concatenate Text" | |
| } | |
| }, | |
| "146": { | |
| "inputs": { | |
| "aspect_ratio": "16:9 (Widescreen)", | |
| "megapixels": 1, | |
| "multiple": 8 | |
| }, | |
| "class_type": "ResolutionSelector", | |
| "_meta": { | |
| "title": "Resolution Selector" | |
| } | |
| }, | |
| "147": { | |
| "inputs": { | |
| "switch": [ | |
| "152", | |
| 0 | |
| ], | |
| "on_false": [ | |
| "141", | |
| 0 | |
| ], | |
| "on_true": [ | |
| "142", | |
| 0 | |
| ] | |
| }, | |
| "class_type": "ComfySwitchNode", | |
| "_meta": { | |
| "title": "If/Else Switch" | |
| } | |
| }, | |
| "148": { | |
| "inputs": { | |
| "prompt": [ | |
| "158", | |
| 0 | |
| ], | |
| "clip": [ | |
| "153:79", | |
| 0 | |
| ], | |
| "vae": [ | |
| "153:80", | |
| 0 | |
| ], | |
| "image1": [ | |
| "139", | |
| 0 | |
| ] | |
| }, | |
| "class_type": "TextEncodeQwenImageEditPlus", | |
| "_meta": { | |
| "title": "TextEncodeQwenImageEditPlus" | |
| } | |
| }, | |
| "151": { | |
| "inputs": { | |
| "value": "a subject sit on sofa full-body of view winter of same view" | |
| }, | |
| "class_type": "PrimitiveStringMultiline", | |
| "_meta": { | |
| "title": "Text String (User Prompt)+AI GENTEXT" | |
| } | |
| }, | |
| "152": { | |
| "inputs": { | |
| "value": false | |
| }, | |
| "class_type": "PrimitiveBoolean", | |
| "_meta": { | |
| "title": "Boolean (Refine Prompt?)" | |
| } | |
| }, | |
| "154": { | |
| "inputs": { | |
| "conditioning": [ | |
| "155", | |
| 0 | |
| ] | |
| }, | |
| "class_type": "ConditioningZeroOut", | |
| "_meta": { | |
| "title": "Conditioning Zero Out" | |
| } | |
| }, | |
| "155": { | |
| "inputs": { | |
| "reference_latents_method": "index", | |
| "conditioning": [ | |
| "148", | |
| 0 | |
| ] | |
| }, | |
| "class_type": "FluxKontextMultiReferenceLatentMethod", | |
| "_meta": { | |
| "title": "Edit Model Reference Method" | |
| } | |
| }, | |
| "156": { | |
| "inputs": { | |
| "filename_prefix": "ComfyUI", | |
| "format": "png", | |
| "format.bit_depth": "16-bit", | |
| "format.input_color_space": "sRGB", | |
| "images": [ | |
| "144", | |
| 0 | |
| ] | |
| }, | |
| "class_type": "SaveImageAdvanced", | |
| "_meta": { | |
| "title": "Save Image (Advanced)" | |
| } | |
| }, | |
| "158": { | |
| "inputs": { | |
| "source": [ | |
| "147", | |
| 0 | |
| ] | |
| }, | |
| "class_type": "PreviewAny", | |
| "_meta": { | |
| "title": "Preview as Text" | |
| } | |
| }, | |
| "159": { | |
| "inputs": { | |
| "noise": [ | |
| "157:98", | |
| 0 | |
| ], | |
| "guider": [ | |
| "157:92", | |
| 0 | |
| ], | |
| "sampler": [ | |
| "157:94", | |
| 0 | |
| ], | |
| "sigmas": [ | |
| "157:95", | |
| 0 | |
| ], | |
| "latent_image": [ | |
| "157:96", | |
| 0 | |
| ] | |
| }, | |
| "class_type": "SamplerCustomAdvanced", | |
| "_meta": { | |
| "title": "SamplerCustomAdvanced" | |
| } | |
| }, | |
| "153:102": { | |
| "inputs": { | |
| "unet_name": "diffusion_models/pornmasterKrea2_v2TurboFP8.safetensors", | |
| "weight_dtype": "default" | |
| }, | |
| "class_type": "UNETLoader", | |
| "_meta": { | |
| "title": "Load Diffusion Model" | |
| } | |
| }, | |
| "153:79": { | |
| "inputs": { | |
| "clip_name": "text_encoders_comfy/Huihui-Qwen3-VL-4B-Instruct-abliterated.safetensors", | |
| "type": "krea2", | |
| "device": "default" | |
| }, | |
| "class_type": "CLIPLoader", | |
| "_meta": { | |
| "title": "Load CLIP" | |
| } | |
| }, | |
| "153:80": { | |
| "inputs": { | |
| "vae_name": "vae/Krea_2_bf16_vae.safetensors" | |
| }, | |
| "class_type": "VAELoader", | |
| "_meta": { | |
| "title": "Load VAE" | |
| } | |
| }, | |
| "157:99": { | |
| "inputs": { | |
| "max_shift": 1.05, | |
| "base_shift": 0.5, | |
| "width": [ | |
| "146", | |
| 0 | |
| ], | |
| "height": [ | |
| "146", | |
| 1 | |
| ], | |
| "model": [ | |
| "143", | |
| 0 | |
| ] | |
| }, | |
| "class_type": "ModelSamplingFlux", | |
| "_meta": { | |
| "title": "ModelSamplingFlux" | |
| } | |
| }, | |
| "157:98": { | |
| "inputs": { | |
| "noise_seed": 349392674793297 | |
| }, | |
| "class_type": "RandomNoise", | |
| "_meta": { | |
| "title": "RandomNoise" | |
| } | |
| }, | |
| "157:92": { | |
| "inputs": { | |
| "cfg": 1, | |
| "model": [ | |
| "157:99", | |
| 0 | |
| ], | |
| "positive": [ | |
| "155", | |
| 0 | |
| ], | |
| "negative": [ | |
| "154", | |
| 0 | |
| ] | |
| }, | |
| "class_type": "CFGGuider", | |
| "_meta": { | |
| "title": "CFG Guider" | |
| } | |
| }, | |
| "157:94": { | |
| "inputs": { | |
| "sampler_name": "euler" | |
| }, | |
| "class_type": "KSamplerSelect", | |
| "_meta": { | |
| "title": "KSamplerSelect" | |
| } | |
| }, | |
| "157:95": { | |
| "inputs": { | |
| "scheduler": "simple", | |
| "steps": 8, | |
| "denoise": 1, | |
| "model": [ | |
| "157:99", | |
| 0 | |
| ] | |
| }, | |
| "class_type": "BasicScheduler", | |
| "_meta": { | |
| "title": "BasicScheduler" | |
| } | |
| }, | |
| "157:96": { | |
| "inputs": { | |
| "width": [ | |
| "146", | |
| 0 | |
| ], | |
| "height": [ | |
| "146", | |
| 1 | |
| ], | |
| "batch_size": 1 | |
| }, | |
| "class_type": "EmptyLatentImage", | |
| "_meta": { | |
| "title": "Empty Latent Image" | |
| } | |
| } | |
| } |