Upload anytext.py
Browse files- anytext.py +1 -1
anytext.py
CHANGED
|
@@ -2335,7 +2335,7 @@ class AnyTextPipeline(
|
|
| 2335 |
cond_scale = controlnet_cond_scale * controlnet_keep[i]
|
| 2336 |
|
| 2337 |
down_block_res_samples, mid_block_res_sample = self.controlnet(
|
| 2338 |
-
control_model_input,
|
| 2339 |
t,
|
| 2340 |
encoder_hidden_states=controlnet_prompt_embeds,
|
| 2341 |
controlnet_cond=guided_hint,
|
|
|
|
| 2335 |
cond_scale = controlnet_cond_scale * controlnet_keep[i]
|
| 2336 |
|
| 2337 |
down_block_res_samples, mid_block_res_sample = self.controlnet(
|
| 2338 |
+
control_model_input.to(self.controlnet.dtype),
|
| 2339 |
t,
|
| 2340 |
encoder_hidden_states=controlnet_prompt_embeds,
|
| 2341 |
controlnet_cond=guided_hint,
|