ppbrown commited on
Commit
c825f9e
1 Parent(s): 7485e9f

Upload clipmodel-generate-embeddings.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. clipmodel-generate-embeddings.py +1 -2
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 all the things...")
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