Skip to content

Commit

Permalink
Move mochi latent node to: latent/video.
Browse files Browse the repository at this point in the history
  • Loading branch information
comfyanonymous committed Nov 8, 2024
1 parent 2865f91 commit 75a818c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions comfy_extras/nodes_mochi.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
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}),
Expand All @@ -15,10 +12,10 @@ def INPUT_TYPES(s):
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 = {
Expand Down

0 comments on commit 75a818c

Please sign in to comment.