Skip to content
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

Merged
merged 7 commits into from
Nov 8, 2023
Merged

[LCM] Fix img2img #5698

merged 7 commits into from
Nov 8, 2023

Conversation

patrickvonplaten
Copy link
Contributor

@patrickvonplaten patrickvonplaten commented Nov 8, 2023

What does this PR do?

This PR fixes a bug with img2img

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Nov 8, 2023

The documentation is not available anymore as the PR was closed or merged.

@patrickvonplaten patrickvonplaten merged commit c803a8f into main Nov 8, 2023
12 of 13 checks passed
@sayakpaul sayakpaul deleted the fix_lcm_img2img branch November 8, 2023 10:57
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

sayakpaul pushed a commit that referenced this pull request Nov 8, 2023
* [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:
Copy link
Contributor

@kashif kashif Nov 8, 2023

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

Copy link
Member

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?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i did

kashif pushed a commit to kashif/diffusers that referenced this pull request Nov 11, 2023
* [LCM] Fix img2img

* make fix-copies

* make fix-copies

* make fix-copies

* up
yoonseokjin pushed a commit to yoonseokjin/diffusers that referenced this pull request Dec 25, 2023
* [LCM] Fix img2img

* make fix-copies

* make fix-copies

* make fix-copies

* up
AmericanPresidentJimmyCarter pushed a commit to AmericanPresidentJimmyCarter/diffusers that referenced this pull request Apr 26, 2024
* [LCM] Fix img2img

* make fix-copies

* make fix-copies

* make fix-copies

* up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants