This commit is contained in:
songkey-win
2024-11-09 11:57:17 +08:00
parent d39daa8254
commit 9e20814831
+3 -3
View File
@@ -343,9 +343,9 @@ class GetVideoDriveParams:
save_size=512, trans_ratio=trans_ratio)
drive_params = dict(
face_parts=face_parts_embedding.unsqueeze(0).to(dtype=dtype),
drive_coeff=drive_coeff.unsqueeze(0).to(dtype=dtype),
condition=control_heatmaps.unsqueeze(0).to(dtype=dtype),
face_parts=face_parts_embedding.unsqueeze(0).to(dtype=dtype, device='cpu'),
drive_coeff=drive_coeff.unsqueeze(0).to(dtype=dtype, device='cpu'),
condition=control_heatmaps.unsqueeze(0).to(dtype=dtype, device='cpu'),
)
return (drive_params, )