Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Move mochi latent node to: latent/video.

comfyanonymous75a818c720c1
diff --git a/comfy_extras/nodes_mochi.py b/comfy_extras/nodes_mochi.py
index 4cbbea099..1c474faa9 100644
--- a/comfy_extras/nodes_mochi.py
+++ b/comfy_extras/nodes_mochi.py
@@ -3,9 +3,6 @@ import torch
import comfy.model_management
class EmptyMochiLatentVideo:
- def __init__(self):
- self.device = comfy.model_management.intermediate_device()
-
@classmethod
def INPUT_TYPES(s):
return {"required": { "width": ("INT", {"default": 848, "min": 16, "max": nodes.MAX_RESOLUTION, "step": 16}),
@@ -15,10 +12,10 @@ class EmptyMochiLatentVideo:
RETURN_TYPES = ("LATENT",)
FUNCTION = "generate"
- CATEGORY = "latent/mochi"
+ CATEGORY = "latent/video"
def generate(self, width, height, length, batch_size=1):
- latent = torch.zeros([batch_size, 12, ((length - 1) // 6) + 1, height // 8, width // 8], device=self.device)
+ latent = torch.zeros([batch_size, 12, ((length - 1) // 6) + 1, height // 8, width // 8], device=comfy.model_management.intermediate_device())
return ({"samples":latent}, )
NODE_CLASS_MAPPINGS = {