mirror of
https://github.com/ostris/ai-toolkit.git
synced 2026-04-30 11:11:37 +00:00
Sampling tests and added fixes for cleanups
This commit is contained in:
@@ -675,6 +675,9 @@ class StableDiffusion:
|
||||
do_classifier_free_guidance = False
|
||||
elif latents.shape[0] * 2 != text_embeddings.text_embeds.shape[0]:
|
||||
raise ValueError("Batch size of latents must be the same or half the batch size of text embeddings")
|
||||
latents = latents.to(self.device_torch)
|
||||
text_embeddings = text_embeddings.to(self.device_torch)
|
||||
timestep = timestep.to(self.device_torch)
|
||||
|
||||
if self.is_xl:
|
||||
with torch.no_grad():
|
||||
|
||||
Reference in New Issue
Block a user