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

Inversion #111

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

Inversion #111

wants to merge 1 commit into from

Conversation

filipstrand
Copy link
Owner

@filipstrand filipstrand commented Jan 4, 2025

Testing out some inversion techniques. WIP at the moment and will have to be properly integrated later. Also have a WIP PR up for FlowEdit. Still evaluating them this stage...

Been looking at two techniques so far mentioned in https://github.com/logtd/ComfyUI-Fluxtapoz?tab=readme-ov-file:

  • RF Inversion (simple, does not need any architecture change, have tested this briefly in local branch, a bit mixed results so far, more testing required...)
  • RF Edit - currently in this branch (adds higher order term to the noise schedule (+1 extra transformer call for each step - and if I have not made any mistake the Algorithm 1 in their paper simplifies a bit to simply the "noise2" term in this branch), need to save the inverted attention V-values in a cache for a later forward generation). Pretty good results on some images so far
Screenshot 2025-01-03 at 19 07 38 Screenshot 2025-01-04 at 09 26 43

@filipstrand filipstrand self-assigned this Jan 4, 2025
@filipstrand filipstrand marked this pull request as draft January 4, 2025 08:24
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.

1 participant