Skip to content

[New Feature] Flux PuLID #10141

Open
Open
@SahilCarterr

Description

@SahilCarterr
Contributor

PuLID: Pure and Lightning ID Customization via Contrastive Alignment

Paper:Link
Code:Link

This has astonishing result with FLUX Pipeline

pulid_github

I Think it Should be added to Main Pipeline. @yiyixuxu

Activity

added
consider-for-modular-diffusersThings to consider adding support for in Modular Diffusers (with the help of community)
on Dec 6, 2024
maxs-kan

maxs-kan commented on Dec 19, 2024

@maxs-kan
Contributor

Hello. Initially, I wanted to create a pr for this task. However, in the process, I realized that the amount of changes needed is more than what should be in the public pr. Anyway, I have started the process and hope this pieces of code will be useful.

I redesigned cross-attention blocks from the author's code to diffusers and made the weights loading. I added changes to transformer, pipeline. Here is the test on one person, in my work I did the test on several persons, and everything worked as expected.

In my opinion, we need to create a 'LoaderMixin' like for IP adapter. The main problem is that cross attention with id_emb in PuLID is done differently compared to IP adapter it is separated from cross attention with text, and done after the whole block. Because of this, I do not know how best to proceed, to create a separate class like 'IPAdapterLoaderMixin', only for PuLID or to embed in the logic of the IP adapter.

newideas99

newideas99 commented on Dec 31, 2024

@newideas99

Thank you for doing this!! Any luck with adding lora support?

github-actions

github-actions commented on Jan 25, 2025

@github-actions
Contributor

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the contributing guidelines are likely to be ignored.

nitinmukesh

nitinmukesh commented on Jan 25, 2025

@nitinmukesh

This is interesting feature to add in diffusers

github-actions

github-actions commented on Feb 19, 2025

@github-actions
Contributor

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the contributing guidelines are likely to be ignored.

bghira

bghira commented on Apr 22, 2025

@bghira
Contributor

not stale

removed
staleIssues that haven't received updates
on Apr 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    consider-for-modular-diffusersThings to consider adding support for in Modular Diffusers (with the help of community)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @nitinmukesh@asomoza@maxs-kan@newideas99@bghira

        Issue actions

          [New Feature] Flux PuLID · Issue #10141 · huggingface/diffusers