-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[LCM] Fix img2img #5698
[LCM] Fix img2img #5698
Conversation
The documentation is not available anymore as the PR was closed or merged. |
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. |
* [LCM] Fix img2img * make fix-copies * make fix-copies * make fix-copies * up
@@ -378,7 +378,7 @@ def set_processor(self, processor: "AttnProcessor", _remove_lora: bool = False) | |||
_remove_lora (`bool`, *optional*, defaults to `False`): | |||
Set to `True` to remove LoRA layers from the model. | |||
""" | |||
if hasattr(self, "processor") and _remove_lora and self.to_q.lora_layer is not None: | |||
if not USE_PEFT_BACKEND and hasattr(self, "processor") and _remove_lora and self.to_q.lora_layer is not None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@patrickvonplaten with this change the test for self.to_q.lora_layer
is not needed since when USE_PEFT_BACKEND = True
, the self.to_q
will be nn.Linear
and one will get an error
I had the same idea to use USE_PEFT_BACKEND
for the wuerstchen prior pipeline see #5704
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add that change in #5704?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i did
* [LCM] Fix img2img * make fix-copies * make fix-copies * make fix-copies * up
* [LCM] Fix img2img * make fix-copies * make fix-copies * make fix-copies * up
* [LCM] Fix img2img * make fix-copies * make fix-copies * make fix-copies * up
What does this PR do?
This PR fixes a bug with img2img