mirror of
https://github.com/ostris/ai-toolkit.git
synced 2026-01-26 16:39:47 +00:00
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:
|
||||
# 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
|
||||
|
||||
Reference in New Issue
Block a user