Fixed an issue with CFG time embeds on SDXL
This commit is contained in:
@@ -444,8 +444,8 @@ class StableDiffusion:
|
|||||||
|
|
||||||
if do_classifier_free_guidance:
|
if do_classifier_free_guidance:
|
||||||
# todo check this with larget batches
|
# todo check this with larget batches
|
||||||
train_util.concat_embeddings(
|
add_time_ids = train_util.concat_embeddings(
|
||||||
add_time_ids, add_time_ids, 1
|
add_time_ids, add_time_ids, int(latents.shape[0])
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
# concat to fit batch size
|
# concat to fit batch size
|
||||||
|
|||||||
Reference in New Issue
Block a user