Purpose of flip_sin_to_cos in Sinusoidal Position Embeddings for Diffusion Models #10916
Unanswered
ahmedbelgacem
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Given the linear nature of the dot product, rearranging the order of cosine and sine components does not affect outcomes, provided that consistency is maintained between training and inference processes. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I was going through the implementation of some diffusion models and noticed the flip_sin_to_cos parameter. I understand that standard sinusoidal embeddings typically use alternating sine and cosine functions, but I’m curious about the specific role of this parameter.
Would love to understand the intuition behind this!
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions