Skip to content

Add effective_region_mask for ControlNet [API]#2818

Merged
huchenlei merged 2 commits intoMikubill:mainfrom
huchenlei:control_region
Apr 27, 2024
Merged

Add effective_region_mask for ControlNet [API]#2818
huchenlei merged 2 commits intoMikubill:mainfrom
huchenlei:control_region

Conversation

@huchenlei
Copy link
Collaborator

@huchenlei huchenlei commented Apr 27, 2024

Closes #2451.

Currently only API support. GUI support will come later.

Previously effective_region_mask support was added to ipadapter in #2785. Now it is added to ControlNet/T2IAdapter as well.

Example on depth control:
Input image:
living_room

Mask image:
mask_left

Output image:
test_effective_region_depth_0

You can observe that only the left part of the generation got guided by the depth map.

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.

[Enhancement] Support region condition on each ControlNet unit

1 participant