Decoding a CLIP embedding
I can transform a text (prompt) into clip embeddings with:prompt -> tokenizer -> tokens -> CLIPTextModel.from_pretrained -> embeddingsI would like to decode an embedding to a prompt:embeddings -> ??? -> tokens -> tokenizer -> promptHow do I convert CLIP embeddings into tokens?
2022-11-01T15:08:32Z
I figured out that the CLIPTextModel is a lossy encoder, thus there is no direct way to decode an embedding.