-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Added Lora Support to SD3 Img2Img Pipeline #9659
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
Conversation
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
How to resolve the transformers Version error? |
I think you just have to merge diffusers:main to here (it's been fixed in main) |
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.
thanks!
|
||
def test_sd3_img2img_lora(self): | ||
pipe = self.pipeline_class.from_pretrained(self.repo_id, torch_dtype=torch.float16) | ||
pipe.load_lora_weights("nerijs/pixel-art-xl", weight_name="pixel-art-xl.safetensors") |
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.
@SahilCarterr why are we using an SDXL LoRA to test SD3?
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 think it can be replace by a sd3 lora hf-internal-testing/tiny-sd3-loras
i will open a PR for the fix
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 don't think because those LoRAs were meant for models that are much smaller in nature. So, configs won't match.
This should ideally be tested with "zwloong/sd3-lora-training-rank16-v2" as this is an integration test.
What does this PR do?
Fixes #9610 Added Lora support to Stable Diffusion3 Image2Image Pipeline
Before submitting
documentation guidelines, and
here are tips on formatting docstrings.
Who can review?
Anyone in the community is free to review the PR once the tests have passed.
@yiyixuxu
Usage
Results Table