Merge branch 'main' into dev

This commit is contained in:
kijai
2025-08-19 11:51:08 +03:00
3 changed files with 86 additions and 14 deletions
-3
View File
@@ -2,7 +2,6 @@ from diffusers import ModelMixin, ConfigMixin
from einops import rearrange, repeat
import torch
import torch.nn as nn
from functools import lru_cache
from ..wanvideo.modules.attention import attention
from comfy import model_management as mm
@@ -118,8 +117,6 @@ class RotaryPositionalEmbedding1D(nn.Module):
self.head_dim = head_dim
self.base = 10000
#@lru_cache(maxsize=32)
def precompute_freqs_cis_1d(self, pos_indices):
freqs = 1.0 / (self.base ** (torch.arange(0, self.head_dim, 2)[: (self.head_dim // 2)].float() / self.head_dim))
+7 -2
View File
@@ -273,6 +273,10 @@ class WanVideoImageToVideoMultiTalk:
"start_image": ("IMAGE", {"tooltip": "Image to encode"}),
"tiled_vae": ("BOOLEAN", {"default": False, "tooltip": "Use tiled VAE encoding for reduced memory use"}),
"clip_embeds": ("WANVIDIMAGE_CLIPEMBEDS", {"tooltip": "Clip vision encoded image"}),
"mode": ([
"multitalk",
"infinitetalk"
], {"default": "multitalk", "tooltip": "The sampling strategy to use in the long video generation loop, should match the model used"})
}
}
@@ -281,7 +285,7 @@ class WanVideoImageToVideoMultiTalk:
FUNCTION = "process"
CATEGORY = "WanVideoWrapper"
def process(self, vae, width, height, frame_window_size, motion_frame, force_offload, colormatch, start_image=None, tiled_vae=False, clip_embeds=None):
def process(self, vae, width, height, frame_window_size, motion_frame, force_offload, colormatch, start_image=None, tiled_vae=False, clip_embeds=None, mode="multitalk"):
H = height
W = width
@@ -311,7 +315,8 @@ class WanVideoImageToVideoMultiTalk:
"vae": vae,
"target_shape": target_shape,
"clip_context": clip_embeds.get("clip_embeds", None) if clip_embeds is not None else None,
"colormatch": colormatch
"colormatch": colormatch,
"multitalk_mode": mode
}
return (image_embeds,)