thomasasfk / sd-webui-aspect-ratio-helper

Simple extension to easily maintain aspect ratio while changing dimensions. Install via the extensions tab on the AUTOMATIC1111 webui.
https://github.com/thomasasfk/sd-webui-aspect-ratio-helper.git
415 stars 66 forks source link

[Bug] - Unable to add 8:11 as an Aspect Ratio to the drop-down / Keeps reverting to 11:8 regardless of settings (May happen w/ other ratios where H/W flip in spite of settings) #67

Closed CCpt5 closed 1 year ago

CCpt5 commented 1 year ago

Hello and thanks again for a fantastic extension.

I'm having a problem at the moment trying to add the ratio of 8:11 to the drop-down. I use the resolution 512x704 often for poster size / vertical images. I've tried multiple attempts to add 8:11 to the dropdown menu of selectable ARs via the settings page, but each time it somehow reverts to 11:8 or 704x512 (I toggle that over with the height/width swap button).

I'm curious if maybe I'm doing something wrong or if this is in fact a bug that others can reproduce. I've put 8:11 all over the settings list, and even on the list alone, and regardless of where it is, or if it's on there twice/both ways (11:8 & 8:11) it'll always end up w/ only 11:8 on the list after using it a time or two after reloading the UI (switching to IMG2IMG opening pulldown, going back to txt2img opening pulldown usually is enough to notice the flip).

Update: I did just try adding 6:11 and it seems like the same thing happens for me w/ that ratio where after a short moment that 6:11 appears on the dropdown after Reloading UI, it flips over to 11:6 which remains until adjustments are made in settings and resaved.

Thanks for any insight!

aspect-retry-stilllisted-as-8-11-only apect-retry-img2img-reversted -reverted-on-txt2imgnowjpg apect-retry-img2img-reversted aspect-retry 64414 aspect2 aspect1

My Sys info from settings:

"Platform": "Windows-10-10.0.19045-SP0", "Python": "3.10.9", "Version": "v1.4.0-RC", "Commit": "3b11f17a374520e493e120e7f47443acd97393c8", "Script path": "D:\Stable-Diffusion-Webui-Dev\stable-diffusion-webui", "Data path": "D:\Stable-Diffusion-Webui-Dev\stable-diffusion-webui", "Extensions dir": "D:\Stable-Diffusion-Webui-Dev\stable-diffusion-webui\extensions", "Checksum": "8e714c80b289f8ba4bebbb32eeefb099cc1dc91749e7d2e81d214f52e00808a1", "Commandline": [ "launch.py", "--opt-sdp-attention", "--no-half-vae", "--opt-channelslast", "--skip-torch-cuda-test", "--skip-version-check", "--ckpt-dir", "e:\Stable Diffusion Checkpoints" ], "Torch env info": { "torch_version": "2.0.1+cu118", "is_debug_build": "False", "cuda_compiled_version": "11.8", "gcc_version": null, "clang_version": null, "cmake_version": null, "os": "Microsoft Windows 10 Pro", "libc_version": "N/A", "python_version": "3.10.9 | packaged by Anaconda, Inc. | (main, Mar 1 2023, 18:18:15) [MSC v.1916 64 bit (AMD64)] (64-bit runtime)", "python_platform": "Windows-10-10.0.19045-SP0", "is_cuda_available": "True", "cuda_runtime_version": "11.8.89\r", "cuda_module_loading": "LAZY", "nvidia_driver_version": "531.68", "nvidia_gpu_models": "GPU 0: NVIDIA GeForce RTX 4090", "cudnn_version": null, "pip_version": "pip3", "pip_packages": [ "numpy==1.23.5", "open-clip-torch==2.7.0", "pytorch-lightning==1.9.4", "torch==2.0.1+cu118", "torchdiffeq==0.2.3", "torchmetrics==0.11.4", "torchsde==0.2.5", "torchvision==0.15.2+cu118" ], "conda_packages": null, "hip_compiled_version": "N/A", "hip_runtime_version": "N/A", "miopen_runtime_version": "N/A", "caching_allocator_config": "", "is_xnnpack_available": "True", "cpu_info": [ "Architecture=9", "CurrentClockSpeed=3000", "DeviceID=CPU0", "Family=207", "L2CacheSize=16384", "L2CacheSpeed=", "Manufacturer=GenuineIntel", "MaxClockSpeed=3000", "Name=13th Gen Intel(R) Core(TM) i9-13900K", "ProcessorType=3", "Revision=" ] }, "Exceptions": [], "CPU": { "model": "Intel64 Family 6 Model 183 Stepping 1, GenuineIntel", "count logical": 32, "count physical": 24 }, "RAM": { "total": "64GB", "used": "15GB", "free": "49GB" }, "Extensions": [ { "name": "a1-sd-dynamic-thresholding", "path": "D:\Stable-Diffusion-Webui-Dev\stable-diffusion-webui\extensions\a1-sd-dynamic-thresholding", "version": "fa12a88e", "branch": "master", "remote": "https://github.com/mcmonkeyprojects/sd-dynamic-thresholding.git" }, { "name": "a2-sd-dynamic-prompts", "path": "D:\Stable-Diffusion-Webui-Dev\stable-diffusion-webui\extensions\a2-sd-dynamic-prompts", "version": "525ee62a", "branch": "main", "remote": "https://github.com/adieyal/sd-dynamic-prompts.git" }, { "name": "b1111-sd-webui-tagcomplete", "path": "D:\Stable-Diffusion-Webui-Dev\stable-diffusion-webui\extensions\b1111-sd-webui-tagcomplete", "version": "7f188563", "branch": "main", "remote": "https://github.com/DominikDoom/a1111-sd-webui-tagcomplete.git" }, { "name": "canvas-zoom", "path": "D:\Stable-Diffusion-Webui-Dev\stable-diffusion-webui\extensions\canvas-zoom", "version": "4e2ab25a", "branch": "main", "remote": "https://github.com/richrobber2/canvas-zoom.git" }, { "name": "clip-interrogator-ext", "path": "D:\Stable-Diffusion-Webui-Dev\stable-diffusion-webui\extensions\clip-interrogator-ext", "version": "c0bf9005", "branch": "main", "remote": "https://github.com/pharmapsychotic/clip-interrogator-ext.git" }, { "name": "sd-extension-system-info", "path": "D:\Stable-Diffusion-Webui-Dev\stable-diffusion-webui\extensions\sd-extension-system-info", "version": "b30e3245", "branch": "main", "remote": "https://github.com/vladmandic/sd-extension-system-info.git" }, { "name": "sd-webui-aspect-ratio-helper", "path": "D:\Stable-Diffusion-Webui-Dev\stable-diffusion-webui\extensions\sd-webui-aspect-ratio-helper", "version": "99fcf9b0", "branch": "main", "remote": "https://github.com/thomasasfk/sd-webui-aspect-ratio-helper.git" }, { "name": "sd-webui-controlnet", "path": "D:\Stable-Diffusion-Webui-Dev\stable-diffusion-webui\extensions\sd-webui-controlnet", "version": "8e143d35", "branch": "main", "remote": "https://github.com/Mikubill/sd-webui-controlnet.git" }, { "name": "sd-webui-inpaint-anything", "path": "D:\Stable-Diffusion-Webui-Dev\stable-diffusion-webui\extensions\sd-webui-inpaint-anything", "version": "5e88726f", "branch": "main", "remote": "https://github.com/Uminosachi/sd-webui-inpaint-anything.git" }, { "name": "sd-webui-stablesr", "path": "D:\Stable-Diffusion-Webui-Dev\stable-diffusion-webui\extensions\sd-webui-stablesr", "version": "17b75e98", "branch": "master", "remote": "https://github.com/pkuliyi2015/sd-webui-stablesr.git" }, { "name": "sd-webui-supermerger", "path": "D:\Stable-Diffusion-Webui-Dev\stable-diffusion-webui\extensions\sd-webui-supermerger", "version": "5e29503c", "branch": "main", "remote": "https://github.com/hako-mikan/sd-webui-supermerger.git" }, { "name": "sd-webui-text2video", "path": "D:\Stable-Diffusion-Webui-Dev\stable-diffusion-webui\extensions\sd-webui-text2video", "version": "6d07e609", "branch": "main", "remote": "https://github.com/kabachuha/sd-webui-text2video.git" }, { "name": "stable-diffusion-webui-model-toolkit", "path": "D:\Stable-Diffusion-Webui-Dev\stable-diffusion-webui\extensions\stable-diffusion-webui-model-toolkit", "version": "4d8fea77", "branch": "master", "remote": "https://github.com/arenasys/stable-diffusion-webui-model-toolkit.git" }, { "name": "stable-diffusion-webui-rembg", "path": "D:\Stable-Diffusion-Webui-Dev\stable-diffusion-webui\extensions\stable-diffusion-webui-rembg", "version": "3d9eedbb", "branch": "master", "remote": "https://github.com/AUTOMATIC1111/stable-diffusion-webui-rembg.git" }, { "name": "ultimate-upscale-for-automatic1111", "path": "D:\Stable-Diffusion-Webui-Dev\stable-diffusion-webui\extensions\ultimate-upscale-for-automatic1111", "version": "c99f382b", "branch": "master", "remote": "https://github.com/Coyote-A/ultimate-upscale-for-automatic1111.git" } ], "Inactive extensions": [ { "name": "multidiffusion-upscaler-for-automatic1111", "path": "D:\Stable-Diffusion-Webui-Dev\stable-diffusion-webui\extensions\multidiffusion-upscaler-for-automatic1111", "version": "de488810", "branch": "main", "remote": "https://github.com/pkuliyi2015/multidiffusion-upscaler-for-automatic1111.git" } ], "Environment": { "COMMANDLINE_ARGS": "--opt-sdp-attention --no-half-vae --opt-channelslast --skip-torch-cuda-test --skip-version-check --ckpt-dir \"e:\Stable Diffusion Checkpoints\"", "GRADIO_ANALYTICS_ENABLED": "False" },

CCpt5 commented 1 year ago

I'm going to do more testing to see if this is something wrong w/ my config files. I'll also update to A1111 1.4 from the RC that I've been using. If I continue to have issues I'll followup.