From 278e32450fc40b60b8e7b2a56840110b1677ed7e Mon Sep 17 00:00:00 2001 From: Rhys Yang Date: Mon, 15 Jul 2024 23:51:33 +0800 Subject: [PATCH] Fix the `Parameter Generator` unable to choose standard resolutions #82 --- nodes.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nodes.py b/nodes.py index b233525..3ac446a 100644 --- a/nodes.py +++ b/nodes.py @@ -357,11 +357,11 @@ class SDPromptSaver: "lora_name": any_type, "width": ( "INT", - {"default": 1, "min": 1, "max": MAX_RESOLUTION, "step": 8}, + {"default": 1, "min": 1, "max": MAX_RESOLUTION, "step": 1}, ), "height": ( "INT", - {"default": 1, "min": 1, "max": MAX_RESOLUTION, "step": 8}, + {"default": 1, "min": 1, "max": MAX_RESOLUTION, "step": 1}, ), "positive": ("STRING", {"default": "", "multiline": True}), "negative": ("STRING", {"default": "", "multiline": True}), @@ -788,11 +788,11 @@ class SDParameterGenerator: ), "width": ( "INT", - {"default": 512, "min": 1, "max": MAX_RESOLUTION, "step": 8}, + {"default": 512, "min": 16, "max": MAX_RESOLUTION, "step": 8}, ), "height": ( "INT", - {"default": 512, "min": 1, "max": MAX_RESOLUTION, "step": 8}, + {"default": 512, "min": 16, "max": MAX_RESOLUTION, "step": 8}, ), "batch_size": ( "INT",