OFA-Sys / Chinese-CLIP

Chinese version of CLIP which achieves Chinese cross-modal retrieval and representation generation.
MIT License
4.58k stars 473 forks source link

Fluctuating embedding value #363

Open blizzardwj opened 1 month ago

blizzardwj commented 1 month ago

When the program stopped at this line, then I run this line sever times. The embeddings_tensor are changing all the time.

# Encode the text to get the embeddings
embeddings_tensor = self.model.encode_text(tokenized_text)

This tensor should be fixed for the same tokenized text.