1inkusFace commited on
Commit
c05d7f5
·
verified ·
1 Parent(s): 2efc4a3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -160,7 +160,7 @@ def generate(segment, image, prompt, size, guidance_scale, num_inference_steps,
160
  torch.cat([image_latents] * 2)
161
  )
162
  latent_model_input = torch.cat([latent_model_input, latent_image_input], dim=1)
163
- timestep = t.expand(latents.shape[0]).to(latents.dtype)
164
  with torch.no_grad():
165
  noise_pred = pipe.transformer(
166
  hidden_states=latent_model_input,
 
160
  torch.cat([image_latents] * 2)
161
  )
162
  latent_model_input = torch.cat([latent_model_input, latent_image_input], dim=1)
163
+ timestep = t.repeat(latent_model_input.shape[0]).to(torch.float32)
164
  with torch.no_grad():
165
  noise_pred = pipe.transformer(
166
  hidden_states=latent_model_input,