mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-05-13 18:47:29 +08:00
Compare commits
5 Commits
447986f670
...
19b6b8bc6f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
19b6b8bc6f | ||
|
|
c945a433ae | ||
|
|
25757a53c9 | ||
|
|
0388ac4309 | ||
|
|
2beca418ad |
@ -1006,8 +1006,19 @@ class CFGGuider:
|
||||
return latent_image
|
||||
|
||||
if latent_image.is_nested:
|
||||
latent_image, latent_shapes = comfy.utils.pack_latents(latent_image.unbind())
|
||||
noise, _ = comfy.utils.pack_latents(noise.unbind())
|
||||
li_tensors = latent_image.unbind()
|
||||
if noise.is_nested:
|
||||
# Truncate extra noise components, pad missing ones with zeros
|
||||
n_tensors = list(noise.unbind()[:len(li_tensors)])
|
||||
for i in range(len(n_tensors), len(li_tensors)):
|
||||
n_tensors.append(torch.zeros_like(li_tensors[i]))
|
||||
else:
|
||||
# Noise only covers video -- pad remaining components (audio) with zeros
|
||||
n_tensors = [noise]
|
||||
for i in range(1, len(li_tensors)):
|
||||
n_tensors.append(torch.zeros_like(li_tensors[i]))
|
||||
latent_image, latent_shapes = comfy.utils.pack_latents(li_tensors)
|
||||
noise, _ = comfy.utils.pack_latents(n_tensors)
|
||||
else:
|
||||
latent_shapes = [latent_image.shape]
|
||||
|
||||
|
||||
@ -2787,11 +2787,15 @@ class MotionControl(IO.ComfyNode):
|
||||
],
|
||||
is_api_node=True,
|
||||
price_badge=IO.PriceBadge(
|
||||
depends_on=IO.PriceBadgeDepends(widgets=["mode"]),
|
||||
depends_on=IO.PriceBadgeDepends(widgets=["mode", "model"]),
|
||||
expr="""
|
||||
(
|
||||
$prices := {"std": 0.07, "pro": 0.112};
|
||||
{"type":"usd","usd": $lookup($prices, widgets.mode), "format":{"suffix":"/second"}}
|
||||
$prices := {
|
||||
"kling-v3": {"std": 0.126, "pro": 0.168},
|
||||
"kling-v2-6": {"std": 0.07, "pro": 0.112}
|
||||
};
|
||||
$modelPrices := $lookup($prices, widgets.model);
|
||||
{"type":"usd","usd": $lookup($modelPrices, widgets.mode), "format":{"suffix":"/second"}}
|
||||
)
|
||||
""",
|
||||
),
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
comfyui-frontend-package==1.43.17
|
||||
comfyui-workflow-templates==0.9.69
|
||||
comfyui-workflow-templates==0.9.72
|
||||
comfyui-embedded-docs==0.4.4
|
||||
torch
|
||||
torchsde
|
||||
|
||||
Loading…
Reference in New Issue
Block a user