gaopengcuhk/Stable-Pix2Seq

Extract token embedding

elituan opened this issue · 0 comments

I want to extract the token embedding as shown in figure 11 of the paper.
image

However, when looking at the code, I see that the tokens are predicted by feeding the output feature map to a mlp whose last layer's dimension is 2003 (maybe number of tokens). Hence, the model do not learn the token embedding actually and we can't get the learned token embedding.

Am I missing something ?