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

Error introduced when using p2p pipeline comparing to null-text inversion #86

Open
KolvacS-W opened this issue Apr 1, 2024 · 1 comment

Comments

@KolvacS-W
Copy link

Hey, I encounter a weird issue that when I use p2p, the reconstruction of the original image (which is successfully reconstructed before by null-text inversion) has errors:

My original and reconstructed image by inversion:
Screen Shot 2024-04-01 at 4 11 43 PM

outputs when using p2p:
Screen Shot 2024-04-01 at 4 15 55 PM

Even when I use the origi
Screen Shot 2024-04-01 at 4 05 49 PM
nal controller without any attention swap, the error exists as long as I have a new prompt:

Screen Shot 2024-04-01 at 3 47 47 PM

Seems like when a second prompt is added, it will affect the context parameter for
ptp_utils.diffusion_step(model, controller, latents, context, t, guidance_scale, low_resource=False),
which affects the prediction:
noise_pred = model.unet(latents_input, t, encoder_hidden_states=context)["sample"] in p2p_utils.py.

I am wondering if anybody know why I have this issue? Thanks!
(image credit source: https://billf.mit.edu/about/shapetime)

@Dijkstra14
Copy link

I've encountered the same issue. Anyone know the reason for this?

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

No branches or pull requests

2 participants