Skip to content

Commit

Permalink
Merge pull request #1327 from bghira/bugfix/sdxl-time-ids
Browse files Browse the repository at this point in the history
fix SDXL time ids
  • Loading branch information
bghira authored Feb 22, 2025
2 parents a98bb83 + 918fe46 commit 23578aa
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions helpers/training/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -2362,9 +2362,7 @@ def prepare_batch(self, batch: list):
**target_device_kwargs
)
if time_ids is not None and hasattr(time_ids, "to"):
batch["added_cond_kwargs"]["time_ids"] = (
time_ids.to(**target_device_kwargs),
)
batch["added_cond_kwargs"]["time_ids"] = time_ids.to(**target_device_kwargs)

latents = batch.get("latent_batch")
if not hasattr(latents, "to"):
Expand Down

0 comments on commit 23578aa

Please sign in to comment.