Skip to content

Sana text to image, using diffusers, for Forge2 webui

Notifications You must be signed in to change notification settings

DenOfEquity/Sana-for-webUI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sana for webui

only tested with Forge2

I don't think there is anything Forge specific here.

works for me TM on 8GB VRAM, 16GB RAM (GTX1070)


Install

Go to the Extensions tab, then Install from URL, use the URL for this repository.

needs updated diffusers

Easiest way to ensure necessary versions are installed is to edit requirements_versions.txt in the webUI folder.

diffusers>=0.32.0

downloads models on demand - minimum will be ~15GB


Note

if noUnload is selected then models are kept in memory; otherwise reloaded for each run. The unload models button removes them from memory.


almost current UI screenshot


Change log

11/01/2025

  • add 4K model (unlikely to work until diffusers adds VAE tiling)
  • changes to model loading so VAE only downloaded once regardless of how many models are used
  • and should not download the fp32 transformer models anymore (not sure why pipeline.from_pretrained() loading ignored the variant specified, but loading the transformer separately avoids the issue)

01/01/2025

  • add initial sampler selection, not sure how many will work yet. Euler and Heun need more steps than DPM++ 2M.
  • add rescale CFG, can be very effective

26/12/2024

  • fixes for gallery, sending to i2i

25/12/2024 (2)

  • add complex human instruction toggle (CHI button), for automatic prompt enhancement.
  • avoid unnecessary text encoder load if prompt hasn't changed

25/12/2024

  • add control of shift parameter. From initial tests doesn't seem as useful as with Flux or SD3.

24/12/2024 (2)

  • added PAG and some sort of i2i

24/12/2024

  • first implemention. 2K models need ~16GB VRAM for VAE.

example:

About

Sana text to image, using diffusers, for Forge2 webui

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages