Skip to content

bit9labs/sd-ratio-lock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sd-ratio-lock

An extension for AUTOMATIC1111/stable-diffusion-webui that maintains a locked ratio between the image width and height sliders.

Text2Image View

Ratio Lock

Installation

The extension can be installed directly from within the Extensions tab within the Webui.

Manual install from within the webui directory:

git clone https://github.com/bit9labs/sd-ratio-lock extensions/sd-ratio-lock

and restart your stable-diffusion-webui. The lock ratio dropdown will appear under the width and height sliders.

Use

Select an option from the Image Ratio dropdown. This will lock the height slider to the width slider. To unlock the sliders select None from the dropdown. Select the magnifying glass to attempt to identify the Ratio based on the current width and heights.

NOTICE: Currently the way that gradio callbacks work this only works when the width changes. Also since this is a client to server to client solution the order of operations sometimes gets missed. (i.e. It requires you to jiggle the width slider to get the correct height)

Roadmap

  • Allow for custom ratios
  • Increase tolerance for the find button

Credit

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages