mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-08 22:35:09 +00:00
fix sdxl_gen_img not working
This commit is contained in:
@@ -981,7 +981,7 @@ def get_unweighted_text_embeddings(
|
|||||||
text_embeddings = enc_out["hidden_states"][-2]
|
text_embeddings = enc_out["hidden_states"][-2]
|
||||||
pool = enc_out.get("text_embeds", None) # text encoder 1 doesn't return this
|
pool = enc_out.get("text_embeds", None) # text encoder 1 doesn't return this
|
||||||
if pool is not None:
|
if pool is not None:
|
||||||
pool = train_util.pool_workaround(text_encoder, enc_out["last_hidden_state"], text_input_chunk, eos)
|
pool = train_util.pool_workaround(text_encoder, enc_out["last_hidden_state"], text_input, eos)
|
||||||
return text_embeddings, pool
|
return text_embeddings, pool
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user