The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Add manual cast to LTX2 vocoder conv_transpose1d (#12795)
Jukka Seppänen8befce5c7b84
diff --git a/comfy/ldm/lightricks/vocoders/vocoder.py b/comfy/ldm/lightricks/vocoders/vocoder.pyindex 6c4028aa8..a0e03cada 100644--- a/comfy/ldm/lightricks/vocoders/vocoder.py+++ b/comfy/ldm/lightricks/vocoders/vocoder.py@@ -2,6 +2,7 @@ import torchimport torch.nn.functional as Fimport torch.nn as nnimport comfy.ops+import comfy.model_managementimport numpy as npimport math@@ -125,7 +126,7 @@ class UpSample1d(nn.Module):_, C, _ = x.shapex = F.pad(x, (self.pad, self.pad), mode="replicate")x = self.ratio * F.conv_transpose1d(- x, self.filter.expand(C, -1, -1), stride=self.stride, groups=C+ x, comfy.model_management.cast_to(self.filter.expand(C, -1, -1), dtype=x.dtype, device=x.device), stride=self.stride, groups=C)x = x[..., self.pad_left : -self.pad_right]return x