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

run Style-Consistent Generation #107

Open
lllrf-xuexi opened this issue Aug 15, 2024 · 3 comments
Open

run Style-Consistent Generation #107

lllrf-xuexi opened this issue Aug 15, 2024 · 3 comments

Comments

@lllrf-xuexi
Copy link

I added eol, but the result is bad. How to use it

@zhuole1025
Copy link
Contributor

Hi! I am not sure why you add eol for style consistent generation. The key of style consistent generation is to share the key and value within a batch of images for attention calculation.

@lllrf-xuexi
Copy link
Author

I generate an image, W:H = 1024:512, so the latent is (1,4,64,128). When doing patchify_and_embed, I added eol_token in the middle and at the end of x, but the result is bad. Where else should I make changes?

@zhuole1025
Copy link
Contributor

There is no eol token in Lumina-Next. You should treat each image at the batch dimension, so the rope will be added to each image independantly.

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