From f7a331f273056ba4ce4ac59ca7eeaa6a44a82127 Mon Sep 17 00:00:00 2001 From: Extraltodeus Date: Thu, 30 May 2024 04:57:13 +0200 Subject: [PATCH] added dynamic scale as float node to help for any model --- nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodes.py b/nodes.py index 63210b6..3985d42 100644 --- a/nodes.py +++ b/nodes.py @@ -198,7 +198,7 @@ class temperatureForScaleAsFloat: def simple_output(self, base_resolution,target_width,target_height,multiply_value_by,shift_value_by,print_value): dsa = ((base_resolution / (target_width*target_height) ** 0.5) ** 0.5) * multiply_value_by + shift_value_by if print_value: - print(f"Dynamic scale attention is {dsa}") + print(f"\nDynamic scale attention is {dsa}\n") return (dsa,) UnetTemperaturePatchSDXL = type("Unet Temperature SDXL", (UnetTemperaturePatch,), {"TOGGLES": layers_SDXL,"MODEL_NAME":"SDXL","ANY_MODEL": True})