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

cross-attention maps are not robust #9

Closed
jinxixiang opened this issue Apr 25, 2023 · 4 comments
Closed

cross-attention maps are not robust #9

jinxixiang opened this issue Apr 25, 2023 · 4 comments

Comments

@jinxixiang
Copy link

Thank you for sharing such an interesting idea.

But I think one drawback of the demo, if I could be wrong, is the cross-attention maps are not robust. The results could be corrupted.

badcase

@jinxixiang
Copy link
Author

hair

@songweige
Copy link
Owner

Hi @jinxixiang, thank you for your interest and for trying out our demo!

You are right that the token maps are sometimes not quite stable and accurate. We have been working on improving this and had some progress. Here is the example that changes the color of the hair.

image

@jinxixiang
Copy link
Author

@songweige Woo, this improved result is great! What did you modify with the cross-attention map? It seems to be refined.

I think one walkaround of this problem is utilizing the ability of Gounding SAM by splitting the denoising process into two stages. The first stage is to get the region mask, and the second stage is to conduct region-based diffusion. We are working on it.

@songweige
Copy link
Owner

We made a few changes. One major change was to use self-attention maps to compute the segmentation. Here are more examples. Hopefully we will update the demo by the end of this week.

image

Using SAM is a natural and nice idea. Please do let me know once you have some results or need any help from me.

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