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

Reproduce editing result from paper #35

Open
nttung1110 opened this issue Nov 12, 2023 · 2 comments
Open

Reproduce editing result from paper #35

nttung1110 opened this issue Nov 12, 2023 · 2 comments

Comments

@nttung1110
Copy link

Hi,

First of all, thanks for such an amazing work. The results in the paper looks pretty fascinating. I tried to use exactly the same code without changing anything (even installing the correct package, i.e. diffuser 0.15.0) but got unexpected result. Here are the two results for test case: person, and corgi.
image

As u can see, this code might work for corgi test case but not for person. Could I ask if u also got the same result from your side? Many thanks

@ljzycmd
Copy link
Collaborator

ljzycmd commented Nov 12, 2023

Hi @nttung1110,

Thanks for your interest. I have checked my original implementation to edit the person. You may pass the intermediate inverted features latents_list to the editing process to reproduce the results presented in the paper.

# File: playground_real.ipynb
image_masactrl = model(prompts,
                       latents=start_code,
                       guidance_scale=7.5,
                       ref_intermediate_latents=latents_list)

The results:
all_step4_layer10

@nttung1110
Copy link
Author

Hi,

Thanks for your quick response. Here is what I have after following your instruction:

image

The result seems to improve a bit. Does this suggest that I have to manually observe the result to decide whether to pass the intermediate inverted features for every single case? Many thanks!

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