From 75a818c720c1ef0646ad5bf03af740e5d479e882 Mon Sep 17 00:00:00 2001 From: comfyanonymous Date: Fri, 8 Nov 2024 08:33:44 -0500 Subject: [PATCH] Move mochi latent node to: latent/video. --- comfy_extras/nodes_mochi.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/comfy_extras/nodes_mochi.py b/comfy_extras/nodes_mochi.py index 4cbbea09..1c474faa 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 = {