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

Add effective_region_mask for ipadapter [API] #2785

Merged
merged 3 commits into from
Apr 27, 2024

Conversation

huchenlei
Copy link
Collaborator

@huchenlei huchenlei commented Apr 22, 2024

Closes #2451.

  • Add tests

Currently only API support. GUI support will come later.

API usage:

        payload_overrides={
            "prompt": "(masterpiece: 1.3), (highres: 1.3), best quality, (2girls: 1.3)",
            "width": 768,
            "height": 512,
            "steps": 20,
        },
        unit_overrides=[
            {
                "module": "ip-adapter-auto",
                "model": get_model("ip-adapter_sd15"),
                "image": girl_img,
                "effective_region_mask": mask_left,
            },
            {
                "module": "ip-adapter-auto",
                "model": get_model("ip-adapter_sd15"),
                "image": realistic_girl_face_img,
                "effective_region_mask": mask_right,
            },
        ]

Input image 1

1girl

Input image 2

1

Result

test_effective_region_ipadapter_0

@huchenlei huchenlei marked this pull request as ready for review April 27, 2024 03:12
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