stable-diffusion-webui-forge icon indicating copy to clipboard operation
stable-diffusion-webui-forge copied to clipboard

Distilled CFG is not counted in Scripts: X/Y/Z Plot

Open ptits opened this issue 1 year ago • 3 comments

Not possible to select Distilled CFG for making grids

ptits avatar Aug 14 '24 18:08 ptits

+1

Degio64 avatar Aug 16 '24 14:08 Degio64

Would be great to have that. It's a really powerful parameter from what I can see

acezard avatar Aug 17 '24 08:08 acezard

Adding in a line for the option worked for me.


--- a/scripts/xyz_grid.py
+++ b/scripts/xyz_grid.py
@@ -243,6 +243,7 @@ axis_options = [
     AxisOption("Steps", int, apply_field("steps")),
     AxisOptionTxt2Img("Hires steps", int, apply_field("hr_second_pass_steps")),
     AxisOption("CFG Scale", float, apply_field("cfg_scale")),
+    AxisOption("Distilled CFG Scale", float, apply_field("distilled_cfg_scale")),^M
     AxisOptionImg2Img("Image CFG Scale", float, apply_field("image_cfg_scale")),
     AxisOption("Prompt S/R", str, apply_prompt, format_value=format_value),
     AxisOption("Prompt order", str_permutations, apply_order, format_value=format_value_join_list),

davidastgtciv avatar Aug 18 '24 16:08 davidastgtciv