Upload clipmodel-generate-embeddings.py with huggingface_hub
Browse files
clipmodel-generate-embeddings.py
CHANGED
@@ -64,10 +64,9 @@ for word in tokendict:
|
|
64 |
|
65 |
embs = torch.cat(all_embeddings,dim=0)
|
66 |
print("Shape of result = ",embs.shape)
|
67 |
-
print("Saving
|
68 |
save_file({"embeddings": embs}, "embeddings.safetensors")
|
69 |
|
70 |
|
71 |
-
print("calculate distances now")
|
72 |
|
73 |
|
|
|
64 |
|
65 |
embs = torch.cat(all_embeddings,dim=0)
|
66 |
print("Shape of result = ",embs.shape)
|
67 |
+
print("Saving to embeddings.safetensors...")
|
68 |
save_file({"embeddings": embs}, "embeddings.safetensors")
|
69 |
|
70 |
|
|
|
71 |
|
72 |
|