Spaces:
Runtime error
Runtime error
update
Browse files- musetalk/pipeline.py +1 -1
musetalk/pipeline.py
CHANGED
|
@@ -106,7 +106,7 @@ def apply_musetalk_lipsync(
|
|
| 106 |
|
| 107 |
crop_frame = crop_frame.astype(np.float32) / 255.0
|
| 108 |
crop_frame = torch.from_numpy(crop_frame).permute(2, 0, 1).unsqueeze(0)
|
| 109 |
-
crop_frame = crop_frame.to(vae.device)
|
| 110 |
|
| 111 |
with torch.no_grad():
|
| 112 |
masked_latents = vae.encode(crop_frame)[0]
|
|
|
|
| 106 |
|
| 107 |
crop_frame = crop_frame.astype(np.float32) / 255.0
|
| 108 |
crop_frame = torch.from_numpy(crop_frame).permute(2, 0, 1).unsqueeze(0)
|
| 109 |
+
crop_frame = crop_frame.to(vae.device, dtype=vae.dtype)
|
| 110 |
|
| 111 |
with torch.no_grad():
|
| 112 |
masked_latents = vae.encode(crop_frame)[0]
|