sethgggg / sd-webui-hunyuan-dit

MIT License
18 stars 0 forks source link

Hunyuan extension for sd-webui

The extension helps you to use Hunyuan DiT Model in Stable-diffusion-webui:

Features

Installation

  1. You can install this extension via the webui extension downloader by copying the git repository https://github.com/sethgggg/sd-webui-hunyuan-dit.git

install

  1. Download the HunyuanDiT model from Huggingface to local storage, the default storage location is in models/hunyuan of webui folder. You can change the default storage location via the settings card of the webui.

folder

settings

  1. You have to place the transformer model in models/Stable-Diffusion, which is the main storage location of checkpoints. If you have fine-tuned a new model, you can also place the transformer model in the same folder and then you could select the model here.

  2. Find the HunyuanDiT card and enable them, if you want to use stable diffusion models, remember to disable the HunyuanDiT model.

enable

  1. This project is use the diffusers as inference backend, thus we support the following samplers:
Sampler Name Sampler Instance in diffusers
Euler a EulerAncestralDiscreteScheduler()
Euler EulerDiscreteScheduler()
LMS LMSDiscreteScheduler()
Heun HeunDiscreteScheduler()
DPM2 KDPM2DiscreteScheduler()
DPM2 a KDPM2AncestralDiscreteScheduler()
DPM++ SDE DPMSolverSinglestepScheduler()
DPM++ 2M DPMSolverMultistepScheduler()
DPM++ 2S a DPMSolverSinglestepScheduler()
LMS Karras LMSDiscreteScheduler(use_karras_sigmas=True)
DPM2 Karras KDPM2DiscreteScheduler(use_karras_sigmas=True)
DPM2 a Karras KDPM2AncestralDiscreteScheduler(use_karras_sigmas=True)
DPM++ SDE Karras DPMSolverSinglestepScheduler(use_karras_sigmas=True)
DPM++ 2M Karras DPMSolverMultistepScheduler(use_karras_sigmas=True)
DPM++ 2S a Karras DPMSolverSinglestepScheduler(use_karras_sigmas=True)
DDIM DDIMScheduler()
UniPC UniPCMultistepScheduler()
DPM++ 2M SDE Karras DPMSolverMultistepScheduler(use_karras_sigmas=True, algorithm_type="sde-dpmsolver++")
DPM++ 2M SDE DPMSolverMultistepScheduler(algorithm_type="sde-dpmsolver++")
LCM LCMScheduler()

Examples

⚪ Txt2img: generating images, you can use the webui style prompts to generate

txt2img

⚪ Img2img: given a image, you can use the Hunyuan DiT model to generate more images.

img2img