Add FLUX.2 architecture model
Browse files
core/pipelines/workflow_recipes/_partials/conditioning/flux2.yaml
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
nodes:
|
| 2 |
+
unet_loader:
|
| 3 |
+
class_type: UNETLoader
|
| 4 |
+
title: "Load Diffusion Model"
|
| 5 |
+
params:
|
| 6 |
+
weight_dtype: "default"
|
| 7 |
+
clip_loader:
|
| 8 |
+
class_type: CLIPLoader
|
| 9 |
+
title: "Load CLIP"
|
| 10 |
+
params:
|
| 11 |
+
type: "flux2"
|
| 12 |
+
device: "default"
|
| 13 |
+
vae_loader:
|
| 14 |
+
class_type: VAELoader
|
| 15 |
+
title: "Load VAE"
|
| 16 |
+
|
| 17 |
+
pos_prompt:
|
| 18 |
+
class_type: CLIPTextEncode
|
| 19 |
+
title: "CLIP Text Encode (Positive)"
|
| 20 |
+
neg_prompt:
|
| 21 |
+
class_type: CLIPTextEncode
|
| 22 |
+
title: "CLIP Text Encode (Negative)"
|
| 23 |
+
|
| 24 |
+
connections:
|
| 25 |
+
- from: "unet_loader:0"
|
| 26 |
+
to: "ksampler:model"
|
| 27 |
+
- from: "clip_loader:0"
|
| 28 |
+
to: "pos_prompt:clip"
|
| 29 |
+
- from: "clip_loader:0"
|
| 30 |
+
to: "neg_prompt:clip"
|
| 31 |
+
- from: "vae_loader:0"
|
| 32 |
+
to: "vae_decode:vae"
|
| 33 |
+
- from: "vae_loader:0"
|
| 34 |
+
to: "vae_encode:vae"
|
| 35 |
+
|
| 36 |
+
- from: "pos_prompt:0"
|
| 37 |
+
to: "ksampler:positive"
|
| 38 |
+
- from: "neg_prompt:0"
|
| 39 |
+
to: "ksampler:negative"
|
| 40 |
+
|
| 41 |
+
dynamic_conditioning_chains:
|
| 42 |
+
conditioning_chain:
|
| 43 |
+
ksampler_node: "ksampler"
|
| 44 |
+
clip_source: "clip_loader:0"
|
| 45 |
+
|
| 46 |
+
ui_map:
|
| 47 |
+
unet_name: "unet_loader:unet_name"
|
| 48 |
+
clip_name: "clip_loader:clip_name"
|
| 49 |
+
vae_name: "vae_loader:vae_name"
|
| 50 |
+
positive_prompt: "pos_prompt:text"
|
| 51 |
+
negative_prompt: "neg_prompt:text"
|
yaml/file_list.yaml
CHANGED
|
@@ -8,3 +8,18 @@ file:
|
|
| 8 |
source: "hf"
|
| 9 |
repo_id: "stable-diffusion-v1-5/stable-diffusion-v1-5"
|
| 10 |
repository_file_path: "v1-5-pruned-emaonly.safetensors"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
source: "hf"
|
| 9 |
repo_id: "stable-diffusion-v1-5/stable-diffusion-v1-5"
|
| 10 |
repository_file_path: "v1-5-pruned-emaonly.safetensors"
|
| 11 |
+
diffusion_models:
|
| 12 |
+
- filename: "flux2_dev_fp8mixed.safetensors"
|
| 13 |
+
source: "hf"
|
| 14 |
+
repo_id: "Comfy-Org/flux2-dev"
|
| 15 |
+
repository_file_path: "split_files/diffusion_models/flux2_dev_fp8mixed.safetensors"
|
| 16 |
+
text_encoders:
|
| 17 |
+
- filename: "mistral_3_small_flux2_fp8.safetensors"
|
| 18 |
+
source: "hf"
|
| 19 |
+
repo_id: "Comfy-Org/flux2-dev"
|
| 20 |
+
repository_file_path: "split_files/text_encoders/mistral_3_small_flux2_fp8.safetensors"
|
| 21 |
+
vae:
|
| 22 |
+
- filename: "flux2-vae.safetensors"
|
| 23 |
+
source: "hf"
|
| 24 |
+
repo_id: "Comfy-Org/flux2-dev"
|
| 25 |
+
repository_file_path: "split_files/vae/flux2-vae.safetensors"
|
yaml/model_architectures.yaml
CHANGED
|
@@ -1,8 +1,12 @@
|
|
| 1 |
architecture_order:
|
|
|
|
| 2 |
- "SDXL"
|
| 3 |
- "SD1.5"
|
| 4 |
|
| 5 |
architectures:
|
|
|
|
|
|
|
|
|
|
| 6 |
"SDXL":
|
| 7 |
model_type: "sdxl"
|
| 8 |
controlnet_key: "SDXL"
|
|
|
|
| 1 |
architecture_order:
|
| 2 |
+
- "FLUX.2"
|
| 3 |
- "SDXL"
|
| 4 |
- "SD1.5"
|
| 5 |
|
| 6 |
architectures:
|
| 7 |
+
"FLUX.2":
|
| 8 |
+
model_type: "flux2"
|
| 9 |
+
controlnet_key: "FLUX.2"
|
| 10 |
"SDXL":
|
| 11 |
model_type: "sdxl"
|
| 12 |
controlnet_key: "SDXL"
|
yaml/model_defaults.yaml
CHANGED
|
@@ -1,4 +1,11 @@
|
|
| 1 |
defaults:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
SDXL:
|
| 3 |
width: 1024
|
| 4 |
height: 1024
|
|
|
|
| 1 |
defaults:
|
| 2 |
+
FLUX.2:
|
| 3 |
+
width: 1024
|
| 4 |
+
height: 1024
|
| 5 |
+
num_inference_steps: 28
|
| 6 |
+
guidance_scale: 3.5
|
| 7 |
+
sampler: "Euler"
|
| 8 |
+
schedule_type: "Default"
|
| 9 |
SDXL:
|
| 10 |
width: 1024
|
| 11 |
height: 1024
|
yaml/model_list.yaml
CHANGED
|
@@ -1,4 +1,12 @@
|
|
| 1 |
Checkpoint:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
SDXL:
|
| 3 |
latent_type: latent
|
| 4 |
models:
|
|
|
|
| 1 |
Checkpoint:
|
| 2 |
+
FLUX.2:
|
| 3 |
+
latent_type: flux2_latent
|
| 4 |
+
models:
|
| 5 |
+
- display_name: "Comfy-Org/flux2-dev"
|
| 6 |
+
components:
|
| 7 |
+
unet: "flux2_dev_fp8mixed.safetensors"
|
| 8 |
+
clip: "mistral_3_small_flux2_fp8.safetensors"
|
| 9 |
+
vae: "flux2-vae.safetensors"
|
| 10 |
SDXL:
|
| 11 |
latent_type: latent
|
| 12 |
models:
|
yaml/private_file_list.yaml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
file:
|
| 2 |
+
diffusion_models:
|
| 3 |
+
# FLUX.2-klein-9B
|
| 4 |
+
- filename: "flux-2-klein-9b-fp8.safetensors"
|
| 5 |
+
source: "hf"
|
| 6 |
+
repo_id: "black-forest-labs/FLUX.2-klein-9b-fp8"
|
| 7 |
+
repository_file_path: "flux-2-klein-9b-fp8.safetensors"
|
| 8 |
+
# FLUX.2-klein-base-9B
|
| 9 |
+
- filename: "flux-2-klein-base-9b-fp8.safetensors"
|
| 10 |
+
source: "hf"
|
| 11 |
+
repo_id: "black-forest-labs/FLUX.2-klein-base-9b-fp8"
|
| 12 |
+
repository_file_path: "flux-2-klein-base-9b-fp8.safetensors"
|