You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. If you want to use pretrained language model, you are actually using the text embedding of that model.
At first, you can load and save the text embedding layer weight of pretrained models like CLIP and BERT.
Then, you need to replace the text_emb in DALLE__init__ function. Now, instead of using nn.Embedding to create new text embedding, you can use torch.load to load pretrained weight saved in step 1.
Is it possible to use and train dalle with an external ( frozen) text encoder ( as those available in hugging face) ?
The text was updated successfully, but these errors were encountered: