Giter Club home page Giter Club logo

sd15-recommended-res-calc's Introduction

sd15-recommended-res-calc

A simple script (also a Custom Node in ComfyUI), to calculate and automatically set the recommended initial latent size for Stable Diffusion 1.5 image generation and its Upscale Factor based on the desired Final Resolution output.

Usage showcase in ComfyUI image

Example Workflow of usage in ComfyUI : JSON / PNG

To install it as ComfyUI custom node using manual Git Clone Operation :

  1. Go to this folder /ComfyUI/custom_nodes/
  2. Open command prompt to that folder, type this line below:
  3. git clone https://github.com/marhensa/sd15-recommended-res-calc.git
  4. Restart ComfyUI, now this custom node "Recommended Resolution Calculator SD15" is located in "utils" node section
  5. Usage: DesiredXSIZE and DesiredYSIZE is your TARGET FINAL RESOLUTION, Upscale Factor OR Reverse Upscale Factor is used as example above

As standalone (Not Using ComfyUI):

  1. Download (Click green button Code > Download ZIP) from repo. Or this direct link.
  2. Make sure .Py and .Bat file on same folder
  3. Double click .Bat file! (.Sh for Linux)
  4. Input your desired Final Resolution
  5. You'll get recommended SD 1.5 Initial Image Size, and its upscale factor to reach the Final Resolution.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.