mirror of
https://github.com/vladmandic/automatic
synced 2026-09-18 16:54:33 +02:00
cleanup
This commit is contained in:
committed by
Vladimir Mandic
parent
5c78268e28
commit
a614170f50
@@ -110,9 +110,7 @@ def convert_embedding(tensor, text_encoder, text_encoder_2):
|
||||
indices *= 0 # Use SDXL padding vector 0
|
||||
vectors.append(indices)
|
||||
vectors = torch.stack(vectors)
|
||||
print(vectors)
|
||||
output = text_encoder_2.get_input_embeddings().weight.data[vectors]
|
||||
print(output.shape)
|
||||
return output
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user