Skip to content

Commit 227ea9f

Browse files
authored
Merge branch 'main' into enable_xpu
2 parents 9c4db33 + 345907f commit 227ea9f

File tree

13 files changed

+46
-17
lines changed

13 files changed

+46
-17
lines changed

docs/source/en/api/pipelines/controlnet_sd3.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ This controlnet code is mainly implemented by [The InstantX Team](https://huggin
2828
| ControlNet type | Developer | Link |
2929
| -------- | ---------- | ---- |
3030
| Canny | [The InstantX Team](https://huggingface.co/InstantX) | [Link](https://huggingface.co/InstantX/SD3-Controlnet-Canny) |
31+
| Depth | [The InstantX Team](https://huggingface.co/InstantX) | [Link](https://huggingface.co/InstantX/SD3-Controlnet-Depth) |
3132
| Pose | [The InstantX Team](https://huggingface.co/InstantX) | [Link](https://huggingface.co/InstantX/SD3-Controlnet-Pose) |
3233
| Tile | [The InstantX Team](https://huggingface.co/InstantX) | [Link](https://huggingface.co/InstantX/SD3-Controlnet-Tile) |
3334
| Inpainting | [The AlimamaCreative Team](https://huggingface.co/alimama-creative) | [link](https://huggingface.co/alimama-creative/SD3-Controlnet-Inpainting) |
File renamed without changes.

src/diffusers/image_processor.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -795,13 +795,11 @@ def apply_overlay(
795795
The final image with the overlay applied.
796796
"""
797797

798-
width, height = image.width, image.height
799-
800-
init_image = self.resize(init_image, width=width, height=height)
801-
mask = self.resize(mask, width=width, height=height)
798+
width, height = init_image.width, init_image.height
802799

803800
init_image_masked = PIL.Image.new("RGBa", (width, height))
804801
init_image_masked.paste(init_image.convert("RGBA").convert("RGBa"), mask=ImageOps.invert(mask.convert("L")))
802+
805803
init_image_masked = init_image_masked.convert("RGBA")
806804

807805
if crop_coords is not None:

src/diffusers/loaders/ip_adapter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def load_ip_adapter(
7474
list is passed, it should have the same length as `weight_name`.
7575
weight_name (`str` or `List[str]`):
7676
The name of the weight file to load. If a list is passed, it should have the same length as
77-
`weight_name`.
77+
`subfolder`.
7878
image_encoder_folder (`str`, *optional*, defaults to `image_encoder`):
7979
The subfolder location of the image encoder within a larger model repository on the Hub or locally.
8080
Pass `None` to not load the image encoder. If the image encoder is located in a folder inside

src/diffusers/models/attention_processor.py

Lines changed: 36 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5053,19 +5053,46 @@ def __init__(self):
50535053

50545054
AttentionProcessor = Union[
50555055
AttnProcessor,
5056-
AttnProcessor2_0,
5057-
FusedAttnProcessor2_0,
5058-
XFormersAttnProcessor,
5059-
SlicedAttnProcessor,
5056+
CustomDiffusionAttnProcessor,
50605057
AttnAddedKVProcessor,
5061-
SlicedAttnAddedKVProcessor,
50625058
AttnAddedKVProcessor2_0,
5059+
JointAttnProcessor2_0,
5060+
PAGJointAttnProcessor2_0,
5061+
PAGCFGJointAttnProcessor2_0,
5062+
FusedJointAttnProcessor2_0,
5063+
AllegroAttnProcessor2_0,
5064+
AuraFlowAttnProcessor2_0,
5065+
FusedAuraFlowAttnProcessor2_0,
5066+
FluxAttnProcessor2_0,
5067+
FluxAttnProcessor2_0_NPU,
5068+
FusedFluxAttnProcessor2_0,
5069+
FusedFluxAttnProcessor2_0_NPU,
5070+
CogVideoXAttnProcessor2_0,
5071+
FusedCogVideoXAttnProcessor2_0,
50635072
XFormersAttnAddedKVProcessor,
5064-
CustomDiffusionAttnProcessor,
5073+
XFormersAttnProcessor,
5074+
AttnProcessorNPU,
5075+
AttnProcessor2_0,
5076+
MochiVaeAttnProcessor2_0,
5077+
StableAudioAttnProcessor2_0,
5078+
HunyuanAttnProcessor2_0,
5079+
FusedHunyuanAttnProcessor2_0,
5080+
PAGHunyuanAttnProcessor2_0,
5081+
PAGCFGHunyuanAttnProcessor2_0,
5082+
LuminaAttnProcessor2_0,
5083+
MochiAttnProcessor2_0,
5084+
FusedAttnProcessor2_0,
50655085
CustomDiffusionXFormersAttnProcessor,
50665086
CustomDiffusionAttnProcessor2_0,
5067-
PAGCFGIdentitySelfAttnProcessor2_0,
5087+
SlicedAttnProcessor,
5088+
SlicedAttnAddedKVProcessor,
5089+
IPAdapterAttnProcessor,
5090+
IPAdapterAttnProcessor2_0,
5091+
IPAdapterXFormersAttnProcessor,
50685092
PAGIdentitySelfAttnProcessor2_0,
5069-
PAGCFGHunyuanAttnProcessor2_0,
5070-
PAGHunyuanAttnProcessor2_0,
5093+
PAGCFGIdentitySelfAttnProcessor2_0,
5094+
LoRAAttnProcessor,
5095+
LoRAAttnProcessor2_0,
5096+
LoRAXFormersAttnProcessor,
5097+
LoRAAttnAddedKVProcessor,
50715098
]

0 commit comments

Comments
 (0)