Is this mistake regarding of lpw_stable_diffusion_xl.py #9852
Unanswered
harukicode0
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am reading lpw_stable_diffusion_xl.py (https://github.com/huggingface/diffusers/blob/main/examples/community/lpw_stable_diffusion_xl.py) to understand how to process prompt which over token limit 77.
And I found strange part in line 401 in the file I show following part.
If this part implies connecting before token smoothly, we should use "token_embedding[j-1]", I think. But I am not confident because it is 3 months that I started to study SD model...
Dose anyone can review this part with me?
Beta Was this translation helpful? Give feedback.
All reactions