mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-08 22:35:09 +00:00
fix max mul embeds doesn't work. closes #656
This commit is contained in:
@@ -958,7 +958,7 @@ def get_unweighted_text_embeddings(
|
|||||||
enc_out = text_encoder(text_input_chunk, output_hidden_states=True, return_dict=True)
|
enc_out = text_encoder(text_input_chunk, output_hidden_states=True, return_dict=True)
|
||||||
text_embedding = enc_out["hidden_states"][-2]
|
text_embedding = enc_out["hidden_states"][-2]
|
||||||
if pool is None:
|
if pool is None:
|
||||||
pool = enc_out["text_embeds"] # use 1st chunk
|
pool = enc_out.get("text_embeds", None) # use 1st chunk, if provided
|
||||||
|
|
||||||
if no_boseos_middle:
|
if no_boseos_middle:
|
||||||
if i == 0:
|
if i == 0:
|
||||||
|
|||||||
Reference in New Issue
Block a user