mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-03-13 00:49:48 +00:00
sometimes it is not diffusion model
This commit is contained in:
@@ -249,7 +249,7 @@ class ModelPatcher:
|
||||
|
||||
utils.set_attr_raw(self.model, k, item)
|
||||
|
||||
for key, current_patches in (tqdm(self.patches.items(), desc='Patching LoRAs to Diffusion Model') if len(self.patches) > 0 else self.patches):
|
||||
for key, current_patches in (tqdm(self.patches.items(), desc='Patching LoRAs') if len(self.patches) > 0 else self.patches):
|
||||
try:
|
||||
weight = utils.get_attr(self.model, key)
|
||||
assert isinstance(weight, torch.nn.Parameter)
|
||||
|
||||
Reference in New Issue
Block a user