#14888·diffusers

在 torch.linalg.solve 中使用 float64 默认 dtype 时,UniPCMultistepScheduler 发生故障: rks 的单位项采用默认 dtype

作者: Nicholas022400701创建于 2026年9月27日更新于 2026年9月27日

diff --git a/src/diffusers/schedulers/scheduling_unipc_multistep.py --- src/diffusers/schedulers/scheduling_unipc_multistep.py +++ src/diffusers/schedulers/scheduling_unipc_multistep.py @@ -1078,7 +1078,7 @@ def multistep_uni_c_bh_update(self, rks, x, t, device, x_dtype, x_device):

  • rks is a list of (rks, b) pairs, where rks is a 4D tensor of shape (N, 3, 8, 8) and b is a 3D tensor of shape (N, 3, 8, 8)

  • x is a 4D tensor of shape (N, 3, 8, 8) and t is a 1D tensor of shape (N,)

  • device is a torch.device object, x_dtype and x_device are the dtype and device of x

  • return a 4D tensor of shape (N, 3, 8, 8) and a 3D tensor of shape (N, 3, 8, 8)

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is the updated x, and the 3D tensor is the updated b

  • the 4D tensor is

内容来源: huggingface/diffusers