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 the SDE variant of DPM-Solver and DPM-Solver++ to DPM Single Step #4251

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cmdr2
Copy link
Contributor

@cmdr2 cmdr2 commented Jul 25, 2023

Following up on our conversation at #4167 (comment)

Uses the same approach as https://github.com/huggingface/diffusers/pull/3344/files

Note: This PR is not ready to merge yet, since it's not clear whether to use sigma_s0 or sigma_s1 in the second-order update. There is a discrepancy between the implementations of single-step and multi-step for second-order.

The current Single Step implementation uses sigma_s1 for the second-order update:

While the reference PR for Multi Step uses sigma_s0 for the second-order update: https://github.com/huggingface/diffusers/pull/3344/files#diff-517cce3913a4b16e1d17a0b945a920e400aa5553471df6cd85f71fc8f079b4b4R478

@patrickvonplaten I don't know which is the correct one. Is it a bug in multi-step, or single-step, or should I use sigma_s1 for single-step?

The test doesn't pass right now due to this error, I intentionally left the code in this state.

Thanks!

@HuggingFaceDocBuilderDev

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

@patrickvonplaten
Copy link
Contributor

Gently pinging the OG DPM author @LuChengTHU

Do you have an idea here by any chance? :-)

@LuChengTHU
Copy link
Contributor

Hi all, just see this cool PR! Thank you for the effort! The single-step sde-dpm++ may be a bit tricky and I need to carefully check this PR. Please give me some more time :)

@cmdr2
Copy link
Contributor Author

cmdr2 commented Jul 25, 2023

Thanks @LuChengTHU ! :)

The second-order update confuses me - in DPM Single Step it divides by the second-last timestep, while in DPM Multi Step it divides by the last timestep. Not sure if that's intentional.

Single Step:

t, s0, s1 = prev_timestep, timestep_list[-1], timestep_list[-2]

Multi Step:

t, s0, s1 = prev_timestep, timestep_list[-1], timestep_list[-2]

Thanks for your help!

@github-actions
Copy link

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 24, 2023
@LuChengTHU
Copy link
Contributor

Sorry for the delay. will check it soon

@github-actions
Copy link

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.

@patrickvonplaten
Copy link
Contributor

This PR is actually an important one - @yiyixuxu can you try taking this over?

@yiyixuxu yiyixuxu self-assigned this Oct 18, 2023
@yiyixuxu yiyixuxu removed the stale Issues that haven't received updates label Oct 25, 2023
Copy link

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 Nov 20, 2023
@cmdr2
Copy link
Contributor Author

cmdr2 commented Nov 21, 2023

Not stale

@yiyixuxu yiyixuxu removed the stale Issues that haven't received updates label Nov 21, 2023
@patrickvonplaten
Copy link
Contributor

Gentle ping here @yiyixuxu

@github-actions github-actions bot added the stale Issues that haven't received updates label Dec 27, 2023
@huggingface huggingface deleted a comment from github-actions bot Jan 2, 2024
@patrickvonplaten patrickvonplaten removed the stale Issues that haven't received updates label Jan 2, 2024
@patrickvonplaten
Copy link
Contributor

Gentle ping again @yiyixuxu

@github-actions github-actions bot added the stale Issues that haven't received updates label Jan 26, 2024
@huggingface huggingface deleted a comment from github-actions bot Jan 30, 2024
@patrickvonplaten patrickvonplaten removed the stale Issues that haven't received updates label Jan 30, 2024
@patrickvonplaten
Copy link
Contributor

Gentle ping @yiyixuxu

Copy link

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 Feb 23, 2024
@yiyixuxu yiyixuxu added scheduler and removed stale Issues that haven't received updates labels Feb 23, 2024
@yiyixuxu
Copy link
Collaborator

It has been on my to-do list for a while, but I don't have time for it right now. If anyone in the community wants to take a shot, feel free! This is an important feature to add.

Copy link

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 Mar 19, 2024
@Scorpinaus
Copy link

Don't think this is stale

@github-actions github-actions bot removed the stale Issues that haven't received updates label Mar 20, 2024
Copy link

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 Apr 13, 2024
@yiyixuxu yiyixuxu removed the stale Issues that haven't received updates label Apr 19, 2024
Copy link

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 May 13, 2024
@yiyixuxu yiyixuxu removed the stale Issues that haven't received updates label May 13, 2024
@tolgacangoz
Copy link
Contributor

tolgacangoz commented May 15, 2024

I want to work on continuing this PR if it is OK.

@yiyixuxu
Copy link
Collaborator

@standardAI please!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants