Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -92,7 +92,7 @@ class ModelWrapper:
|
|
92 |
|
93 |
#noise = noise.to(torch.float16)
|
94 |
print(f'noise: {noise.dtype}')
|
95 |
-
prompt_embed = prompt_embed.to(torch.float32)
|
96 |
DTYPE = prompt_embed.dtype
|
97 |
print(f'prompt_embed: {DTYPE}')
|
98 |
|
@@ -140,7 +140,7 @@ class ModelWrapper:
|
|
140 |
)
|
141 |
|
142 |
unet_added_conditions = {
|
143 |
-
"time_ids": add_time_ids,
|
144 |
"text_embeds": batch_pooled_prompt_embeds.squeeze(1)
|
145 |
}
|
146 |
|
|
|
92 |
|
93 |
#noise = noise.to(torch.float16)
|
94 |
print(f'noise: {noise.dtype}')
|
95 |
+
#prompt_embed = prompt_embed.to(torch.float32)
|
96 |
DTYPE = prompt_embed.dtype
|
97 |
print(f'prompt_embed: {DTYPE}')
|
98 |
|
|
|
140 |
)
|
141 |
|
142 |
unet_added_conditions = {
|
143 |
+
"time_ids": add_time_ids.to(torch.float32),
|
144 |
"text_embeds": batch_pooled_prompt_embeds.squeeze(1)
|
145 |
}
|
146 |
|