Skip to content

Commit

Permalink
update support for latest diffusers with lora (open-mmlab#2067)
Browse files Browse the repository at this point in the history
  • Loading branch information
zengyh1900 committed Nov 10, 2023
1 parent eb3b3e4 commit ef68f11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmagic/models/archs/lora.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def forward_lora_mapping(self, x: Tensor) -> Tensor:
mapping_out = self.scale * self.lora_mapping(x)
return mapping_out

def forward(self, x: Tensor) -> Tensor:
def forward(self, x: Tensor, *args, **kwargs) -> Tensor:
"""Forward and add LoRA mapping.
Args:
Expand Down

0 comments on commit ef68f11

Please sign in to comment.