improved correction of pred norm by targeting the prior
This commit is contained in:
1 parent
1ae1017748
commit
177c7130ec
3 files changed
+26
-26
No files matched your search
@@ -281,6 +281,12 @@ class StableDiffusion:
|
||||
self.unet.requires_grad_(False)
|
||||
self.unet.eval()
|
||||
|
||||
# load any loras we have
|
||||
if self.model_config.lora_path is not None:
|
||||
pipe.load_lora_weights(self.model_config.lora_path, adapter_name="lora1")
|
||||
pipe.fuse_lora()
|
||||
self.unet.fuse_lora()
|
||||
|
||||
self.tokenizer = tokenizer
|
||||
self.text_encoder = text_encoder
|
||||
self.pipeline = pipe
|
||||
|
||||
Reference in new issue
Block a user