mirror of
https://github.com/ostris/ai-toolkit.git
synced 2026-03-12 22:19:48 +00:00
Fixed issue with timestep I broke for sliders
This commit is contained in:
@@ -507,7 +507,7 @@ class StableDiffusion:
|
||||
latent_model_input = self.noise_scheduler.scale_model_input(latent_model_input, timestep)
|
||||
|
||||
# check if we need to concat timesteps
|
||||
if isinstance(timestep, torch.Tensor):
|
||||
if isinstance(timestep, torch.Tensor) and len(timestep.shape) > 1:
|
||||
ts_bs = timestep.shape[0]
|
||||
if ts_bs != latent_model_input.shape[0]:
|
||||
if ts_bs == 1:
|
||||
|
||||
Reference in New Issue
Block a user