Skip to content

[WIP] NewPipeline - UniControlDiffusionPipeline #4378

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

Open
wants to merge 43 commits into
base: main
Choose a base branch
from

Conversation

Abhinay1997
Copy link
Contributor

@Abhinay1997 Abhinay1997 commented Jul 31, 2023

PR that integrates UniControl with diffusers. Co-authored by @canqin001

Discussed under #3788

Before submitting

@patrickvonplaten and @sayakpaul

@Abhinay1997
Copy link
Contributor Author

@sayakpaul is there anyway to disable CI/CD tests while PR is still in draft ?

@sayakpaul
Copy link
Member

Okay if they are failing now :-)

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

@github-actions
Copy link
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.

@github-actions github-actions bot added the stale Issues that haven't received updates label Aug 30, 2023
@Abhinay1997
Copy link
Contributor Author

Working on this on colab. Will push the changes here soon :)

@Abhinay1997
Copy link
Contributor Author

Working poc code to be pushed by end of week.

@adhikjoshi
Copy link

Can you write short snippet on how to use the pipeline?

@Abhinay1997
Copy link
Contributor Author

@adhikjoshi will add it as soon. Fixing some issues.

* remove default value for task.
* `check_inputs` validates task as well.
* Update `check_inputs` to validate task as a list.
* Update `__call__` to merge conditioning samples from multiple tasks
* Update all parameters that work with MultiControlNetModel also work with multi-task inputs.
@Abhinay1997
Copy link
Contributor Author

Fixing multi task input. a.k.a MultiControlNet equivalent for UniControl.

@Abhinay1997
Copy link
Contributor Author

Adding tests and docs. Currently focused on getting the annotator working.

Copy link
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.

@Abhinay1997
Copy link
Contributor Author

Apologies for the delay on this, pipeline works without issues. Need to add tests for each of the supported tasks. Was fully occupied this last few weeks.

@Abhinay1997
Copy link
Contributor Author

Waiting for PR to test dataset to be merged so I can fix the links.

@Abhinay1997
Copy link
Contributor Author

@Abhinay1997 Abhinay1997 marked this pull request as ready for review January 12, 2024 05:23
@patrickvonplaten
Copy link
Contributor

Very nice progress here - I'm wondering though whether we should maybe move this PR to the research_projects folder? It's been on-going for long sadly so I'm not sure how much the community would benefit from an integration into core at this point.

cc @yiyixuxu

@Abhinay1997
Copy link
Contributor Author

Hey Patrick, I'd still think there's value in adding it to core as there's no moe style control net in core right now. Is there something in diffusers that can handle multiple control net conditionings with the same weights ?

Trying to understand as I believe it's still relevant

@canqin001
Copy link

Hi Patrick, thank you for replying to us. Sorry for the delay in the PR dev, and I totally understand your concern. The UniControl (https://github.com/salesforce/UniControl) has received over 550+ stars and was presented in NeurIPS 23 last month, attracting volumes of researchers to its poster. This is the first paper to unify different conditions in one model, which has a unique value in the research for its pioneering exploration. I believe these unified models will receive increasing popularity in the near future due to their compactness and convenience. Incorporating it into the Diffusers would be greatly beneficial for the community. @patrickvonplaten @Abhinay1997

Copy link
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Issues that haven't received updates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants