Fixed an issue with CFG time embeds on SDXL

This commit is contained in:
Jaret Burkett committed 2023-08-15 18:02:14 -06:00
1 parent 55a5fcc7d9
commit 8d09eb44ec
1 file changed
+2 -2
+2 -2
View File
@@ -444,8 +444,8 @@ class StableDiffusion:
if do_classifier_free_guidance:
# todo check this with larget batches
train_util.concat_embeddings(
add_time_ids, add_time_ids, 1
add_time_ids = train_util.concat_embeddings(
add_time_ids, add_time_ids, int(latents.shape[0])
)
else:
# concat to fit batch size