Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
renzhc
diffusers_dcu
Commits
d8d208ac
Unverified
Commit
d8d208ac
authored
Feb 20, 2024
by
Nontapat Kaewamporn
Committed by
GitHub
Feb 19, 2024
Browse files
Supper IP Adapter weight loading in StableDiffusionXLControlNetInpaintPipeline (#7031)
* support ip adapter loading * fix style
parent
e0f33dfc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py
...pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py
+8
-2
No files found.
src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py
View file @
d8d208ac
...
@@ -28,7 +28,12 @@ from transformers import (
...
@@ -28,7 +28,12 @@ from transformers import (
)
)
from
...image_processor
import
PipelineImageInput
,
VaeImageProcessor
from
...image_processor
import
PipelineImageInput
,
VaeImageProcessor
from
...loaders
import
FromSingleFileMixin
,
StableDiffusionXLLoraLoaderMixin
,
TextualInversionLoaderMixin
from
...loaders
import
(
FromSingleFileMixin
,
IPAdapterMixin
,
StableDiffusionXLLoraLoaderMixin
,
TextualInversionLoaderMixin
,
)
from
...models
import
AutoencoderKL
,
ControlNetModel
,
ImageProjection
,
UNet2DConditionModel
from
...models
import
AutoencoderKL
,
ControlNetModel
,
ImageProjection
,
UNet2DConditionModel
from
...models.attention_processor
import
(
from
...models.attention_processor
import
(
AttnProcessor2_0
,
AttnProcessor2_0
,
...
@@ -146,7 +151,7 @@ def rescale_noise_cfg(noise_cfg, noise_pred_text, guidance_rescale=0.0):
...
@@ -146,7 +151,7 @@ def rescale_noise_cfg(noise_cfg, noise_pred_text, guidance_rescale=0.0):
class
StableDiffusionXLControlNetInpaintPipeline
(
class
StableDiffusionXLControlNetInpaintPipeline
(
DiffusionPipeline
,
StableDiffusionXLLoraLoaderMixin
,
FromSingleFileMixin
DiffusionPipeline
,
StableDiffusionXLLoraLoaderMixin
,
FromSingleFileMixin
,
IPAdapterMixin
):
):
r
"""
r
"""
Pipeline for text-to-image generation using Stable Diffusion XL.
Pipeline for text-to-image generation using Stable Diffusion XL.
...
@@ -158,6 +163,7 @@ class StableDiffusionXLControlNetInpaintPipeline(
...
@@ -158,6 +163,7 @@ class StableDiffusionXLControlNetInpaintPipeline(
- [`~loaders.StableDiffusionXLLoraLoaderMixin.load_lora_weights`] for loading LoRA weights
- [`~loaders.StableDiffusionXLLoraLoaderMixin.load_lora_weights`] for loading LoRA weights
- [`~loaders.StableDiffusionXLLoraLoaderMixin.save_lora_weights`] for saving LoRA weights
- [`~loaders.StableDiffusionXLLoraLoaderMixin.save_lora_weights`] for saving LoRA weights
- [`~loaders.FromSingleFileMixin.from_single_file`] for loading `.ckpt` files
- [`~loaders.FromSingleFileMixin.from_single_file`] for loading `.ckpt` files
- [`~loaders.IPAdapterMixin.load_ip_adapter`] for loading IP Adapters
Args:
Args:
vae ([`AutoencoderKL`]):
vae ([`AutoencoderKL`]):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment