Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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.
|
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,
|