Spaces:
Runtime error
Runtime error
Update model.py
Browse files
model.py
CHANGED
@@ -1121,9 +1121,8 @@ class StreamMultiDiffusion(nn.Module):
|
|
1121 |
else:
|
1122 |
x_t_latent_plus_uc = x_t_latent # (T * p, 4, h, w)
|
1123 |
|
1124 |
-
|
1125 |
-
|
1126 |
-
x_t_latent_plus_uc, # (B, 4, h, w)
|
1127 |
t_list, # (B,)
|
1128 |
encoder_hidden_states=self.prompt_embeds, # (B, 77, 768)
|
1129 |
return_dict=False,
|
|
|
1121 |
else:
|
1122 |
x_t_latent_plus_uc = x_t_latent # (T * p, 4, h, w)
|
1123 |
|
1124 |
+
model_pred = self.pipe.unet(
|
1125 |
+
x_t_latent_plus_uc.to(self.pipe.unet.dtype), # (B, 4, h, w)
|
|
|
1126 |
t_list, # (B,)
|
1127 |
encoder_hidden_states=self.prompt_embeds, # (B, 77, 768)
|
1128 |
return_dict=False,
|