-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Detail-Daemon diffusers #10112
Comments
This should currently work by passing the custom sigmas that are created to pipelines with |
So, it can be implemented this way in Diffusers? @hlky |
Yes, see #10080 for a similar use case. Let me know if you encounter any pipelines that don't support passing sigmas. |
@hlky got!thx! |
Unfortunately this won't be enough (unless I'm misunderstanding, which is possible since I'm not a Diffusers person). Detail Daemon accomplishes its effect with a mismatch between the schedule used for sampling and the sigmas the model gets called with. For example, given denoised = model(x, sigma)
dt = sigma_next - sigma
d = (x - denoised) / sigma
x_next = x + d * dt and a "Detail Daemon" step would look like: dd_adjustment = -0.05
denoised = model(x, sigma * (1.0 + dd_adjustment))
dt = sigma_next - sigma
d = (x - denoised) / sigma
x_next = x + d * dt If the user is able to replace the model with a wrapper function that performs the adjustment then that would probably be the easiest way to do it. |
Definitely looks like a big improvement! (And the guider stuff looks pretty similar to the ComfyUI approach.) I have to confess, I've actually avoided touching Diffusers stuff as much as possible since it seems like every project has to reinvent the world. If that modular stuff lands I may have to take another look! |
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. |
This has been added to Modular Diffusers #9672 (comment) |
Seems good! I'd suggest crediting the original implementation at https://github.com/muerrilla/sd-webui-detail-daemon/ though - that's where the idea came from. Also you might want to make it possible to set start/end times. Generally you wouldn't want that offset applied for the entirety of sampling. |
Describe the solution you'd like.
Detail-Daemon: https://github.com/Jonseed/ComfyUI-Detail-Daemon
How to implement Detail-Daemon in diffusers, as seen in https://github.com/Jonseed/ComfyUI-Detail-Daemon. Will there be a better official component in the future?
The text was updated successfully, but these errors were encountered: