mirror of
https://github.com/ostris/ai-toolkit.git
synced 2026-04-22 07:19:13 +00:00
WIP to add the caption_proj weight to pixart sigma TE adapter
This commit is contained in:
@@ -309,6 +309,9 @@ class StableDiffusion:
|
||||
main_model_path = "PixArt-alpha/PixArt-XL-2-1024-MS"
|
||||
if self.model_config.is_pixart_sigma:
|
||||
main_model_path = "PixArt-alpha/pixart_sigma_sdxlvae_T5_diffusers"
|
||||
|
||||
main_model_path = model_path
|
||||
|
||||
# load the TE in 8bit mode
|
||||
text_encoder = T5EncoderModel.from_pretrained(
|
||||
main_model_path,
|
||||
|
||||
Reference in New Issue
Block a user