Skip to content

Commit cd49408

Browse files
authored
fix(flux): Set CFG=1 so that prompts are followed (#5378)
The recommendation with Flux is to set CFG to 1 as shown in the stablediffusion-cpp README. Signed-off-by: Richard Palethorpe <[email protected]>
1 parent 3033845 commit cd49408

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

gallery/flux-ggml.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ config_file: |
1010
- "t5xxl_path:t5xxl_fp16.safetensors"
1111
- "vae_path:ae.safetensors"
1212
- "sampler:euler"
13+
14+
cfg_scale: 1

gallery/flux.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ config_file: |
1212
enable_parameters: num_inference_steps
1313
pipeline_type: FluxPipeline
1414
15-
cfg_scale: 0
15+
cfg_scale: 1

0 commit comments

Comments
 (0)