Comfy-Org / Comfy-Org/ComfyUI

SCAIL WanVideoSamplerv2 ERROR

Open
#11,333 0 comments 0 reactions 0 assignees View on GitHub
Potential Bug
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 7h
Merged PRs (30d)
158

Description

### Custom Node Testing

- [ ] I have tried disabling custom nodes and the issue persists (see [how to disable custom nodes](https://docs.comfy.org/troubleshooting/custom-node-issues#step-1%3A-test-with-all-custom-nodes-disabled) if you need help)

### Expected Behavior

Dynamo failed to run FX node with fake tensors: call_function (*(FakeTensor(..., device='cuda:0', size=(1, 6272, 1, 64, 2)), FakeTensor(..., device='cuda:0', size=(1, 40320, 40, 64, 1))), **{}): got RuntimeError('Attempting to broadcast a dimension of length 40320 at -4! Mismatching argument at index 1 had torch.Size([1, 40320, 40, 64, 1]); but expected shape should be broadcastable to [1, 6272, 40, 64, 2]')

from user code:
File "F:\Comfy-UI\ComfyUI-aki-v1.4\custom_nodes\ComfyUI-WanVideoWrapper\wanvideo\modules\model.py", line 1122, in forward
q = self.self_attn.qkv_fn_q_with_rope(input_x, freqs, num_chunks=num_chunks, is_longcat=is_longcat)
File "F:\Comfy-UI\ComfyUI-aki-v1.4\custom_nodes\ComfyUI-WanVideoWrapper\wanvideo\modules\model.py", line 454, in qkv_fn_q_with_rope
return self._qkv_fn_with_rope(x, self.q, self.norm_q, freqs, num_chunks, is_longcat)
File "F:\Comfy-UI\ComfyUI-aki-v1.4\custom_nodes\ComfyUI-WanVideoWrapper\wanvideo\modules\model.py", line 451, in _qkv_fn_with_rope
return apply_rope_comfy1(result, freqs)
File "F:\Comfy-UI\ComfyUI-aki-v1.4\comfy\ldm\flux\math.py", line 34, in apply_rope1
x_out = freqs_cis[..., 0] * x_[..., 0]

Set TORCHDYNAMO_VERBOSE=1 for the internal stack trace (please do this especially if you're reporting a bug to PyTorch). For even more developer context, set TORCH_LOGS="+dynamo"

### Actual Behavior

Image

### Steps to Reproduce

Image

### Debug Logs

```powershell
Dynamo failed to run FX node with fake tensors: call_function (*(FakeTensor(..., device='cuda:0', size=(1, 6272, 1, 64, 2)), FakeTensor(..., device='cuda:0', size=(1, 40320, 40, 64, 1))), **{}): got RuntimeError('Attempting to broadcast a dimension of length 40320 at -4! Mismatching argument at index 1 had torch.Size([1, 40320, 40, 64, 1]); but expected shape should be broadcastable to [1, 6272, 40, 64, 2]')

from user code:
File "F:\Comfy-UI\ComfyUI-aki-v1.4\custom_nodes\ComfyUI-WanVideoWrapper\wanvideo\modules\model.py", line 1122, in forward
q = self.self_attn.qkv_fn_q_with_rope(input_x, freqs, num_chunks=num_chunks, is_longcat=is_longcat)
File "F:\Comfy-UI\ComfyUI-aki-v1.4\custom_nodes\ComfyUI-WanVideoWrapper\wanvideo\modules\model.py", line 454, in qkv_fn_q_with_rope
return self._qkv_fn_with_rope(x, self.q, self.norm_q, freqs, num_chunks, is_longcat)
File "F:\Comfy-UI\ComfyUI-aki-v1.4\custom_nodes\ComfyUI-WanVideoWrapper\wanvideo\modules\model.py", line 451, in _qkv_fn_with_rope
return apply_rope_comfy1(result, freqs)
File "F:\Comfy-UI\ComfyUI-aki-v1.4\comfy\ldm\flux\math.py", line 34, in apply_rope1
x_out = freqs_cis[..., 0] * x_[..., 0]

Set TORCHDYNAMO_VERBOSE=1 for the internal stack trace (please do this especially if you're reporting a bug to PyTorch). For even more developer context, set TORCH_LOGS="+dynamo"
```

### Other

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.