diff --git a/README.md b/README.md index 8c44800..dbbebda 100644 --- a/README.md +++ b/README.md @@ -2,9 +2,17 @@ A custom node for Stable Diffusion [ComfyUI](https://github.com/comfyanonymous/ComfyUI) to enable easy selection of image resolutions for SDXL SD15 SD21 -- Select base SDXL resolution, width and height are returned as INT values which can be connected to latent image inputs or other inputs such as the `CLIPTextEncodeSDXL` `width, height, target_width, target_height`. -- If using older model SD 1.5 or SD 2.1 use the base adjustment dropdown. This will adjust (reduce) the base_resolution to suit the model. ie. base_resolution 1024 (SDXL) will equal 768 in SD21 and 512 in SD15. +- Select base SDXL resolution, width and height are returned as `INT` values which can be connected to latent image inputs or other inputs such as the `CLIPTextEncodeSDXL` `width, height, target_width, target_height`. - Resolution list based off what is currently being used in the [Fooocus SDXL Web UI](https://github.com/lllyasviel/Fooocus). +- If using older models such as SD 1.5 or SD 2.1 use the `base_adjustment` dropdown. This will reduce the returned width and height values to suit the selected model whilst maintaining the image aspect ratio. + +```terminal +# Example +SDXL base_resolution 1024x1024 +SD21 adjustment returns 768x768 +SD15 adjustment returns 512x512 +``` + ### Installation diff --git a/resolution_selector.py b/resolution_selector.py index fa258d7..ccdda09 100644 --- a/resolution_selector.py +++ b/resolution_selector.py @@ -1,6 +1,6 @@ # Define resolution presets -# Resolutions which appear to work well for SDXL as used in https://github.com/lllyasviel/Fooocus +# Resolution list based off what is currently being used in the Fooocus SDXL Web UI (https://github.com/lllyasviel/Fooocus) BASE_RESOLUTIONS = [ (1024, 1024), (704, 1408),