ComfyUI-WanVideoWrapper icon indicating copy to clipboard operation
ComfyUI-WanVideoWrapper copied to clipboard

Trying to set a tensor of shape torch.Size([1, 6, 5120]) in "modulation" (which has shape torch.Size([1, 6, 1536])), this looks incorrect

Open mmacheng opened this issue 1 year ago • 2 comments

在安装triton和sageattention-1.0.6.dist-info后报了这个错误,重启后电脑自动进入了bios界面,最后在bios恢复了默认设置才能正常重启,后续对这triton sageattention两个进行了卸载,依然还是报这个错误,然后重新部署了comfyui重新安装了插件后,还是报这个错误,现在不知道怎么处理了. @kijai 辛苦大佬,如果有时间帮我看下

WanVideoModelLoader节点报错:Trying to set a tensor of shape torch.Size([1, 6, 5120]) in "modulation" (which has shape torch.Size([1, 6, 1536])), this looks incorrect. Image

日志: [START] Security scan [DONE] Security scan

ComfyUI-Manager: installing dependencies done.

** ComfyUI startup time: 2025-07-04 11:40:28.049 ** Platform: Windows ** Python version: 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)] ** Python executable: F:\AIGC\ComfyUI-Video\python\python.exe ** ComfyUI Path: F:\AIGC\ComfyUI-Video ** ComfyUI Base Folder Path: F:\AIGC\ComfyUI-Video ** User directory: F:\AIGC\ComfyUI-Video\user ** ComfyUI-Manager config path: F:\AIGC\ComfyUI-Video\user\default\ComfyUI-Manager\config.ini ** Log path: F:\AIGC\ComfyUI-Video\user\comfyui.log

Prestartup times for custom nodes: 0.0 seconds: F:\AIGC\ComfyUI-Video\custom_nodes\rgthree-comfy 0.0 seconds: F:\AIGC\ComfyUI-Video\custom_nodes\ComfyUI-Easy-Use 0.0 seconds: F:\AIGC\ComfyUI-Video\custom_nodes\ComfyUI-Marigold 8.9 seconds: F:\AIGC\ComfyUI-Video\custom_nodes\ComfyUI-Manager

Checkpoint files will always be loaded safely. Total VRAM 24564 MB, total RAM 65277 MB pytorch version: 2.5.1+cu124 xformers version: 0.0.28.post3 Set vram state to: NORMAL_VRAM Device: cuda:0 NVIDIA GeForce RTX 4090 : cudaMallocAsync Using xformers attention Python version: 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)] ComfyUI version: 0.3.43 ComfyUI frontend version: 1.23.4 [Prompt Server] web root: F:\AIGC\ComfyUI-Video\python\lib\site-packages\comfyui_frontend_package\static [Crystools INFO] Crystools version: 1.25.2 [Crystools INFO] Platform release: 10 [Crystools INFO] JETSON: Not detected. [Crystools INFO] CPU: Intel(R) Core(TM) i9-14900K - Arch: AMD64 - OS: Windows 10 [Crystools INFO] pynvml (NVIDIA) initialized. [Crystools INFO] GPU/s: [Crystools INFO] 0) NVIDIA GeForce RTX 4090 [Crystools INFO] NVIDIA Driver: 576.52 [ComfyUI-Easy-Use] server: v1.3.2 Loaded [ComfyUI-Easy-Use] web root: F:\AIGC\ComfyUI-Video\custom_nodes\ComfyUI-Easy-Use\web_version/v2 Loaded ComfyUI-GGUF: Partial torch compile only, consider updating pytorch

Loading: ComfyUI-Impact-Pack (V8.17.1)

[Impact Pack] Wildcards loading done.

Loading: ComfyUI-Inspire-Pack (V1.20)

Loading: ComfyUI-Manager (V3.33.5)

[ComfyUI-Manager] network_mode: public [ComfyUI-Manager] Since --preview-method is set, ComfyUI-Manager's preview method feature will be ignored.

ComfyUI Version: v0.3.43 | Released on '2025-06-27'

Total VRAM 24564 MB, total RAM 65277 MB pytorch version: 2.5.1+cu124 xformers version: 0.0.28.post3 Set vram state to: NORMAL_VRAM Device: cuda:0 NVIDIA GeForce RTX 4090 : cudaMallocAsync [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/github-stats.json [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json Warning: Could not load sageattention: No module named 'sageattention' sageattention package is not installed (pysssss:WD14Tagger) [DEBUG] Available ORT providers: TensorrtExecutionProvider, CUDAExecutionProvider, CPUExecutionProvider (pysssss:WD14Tagger) [DEBUG] Using ORT providers: CUDAExecutionProvider, CPUExecutionProvider

Comfyroll Studio v1.76 : 175 Nodes Loaded

** For changes, please see patch notes at https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/blob/main/Patch_Notes.md ** For help, please see the wiki at https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/wiki

[F:\AIGC\ComfyUI-Video\custom_nodes\comfyui_controlnet_aux] | INFO -> Using ckpts path: F:\AIGC\ComfyUI-Video\custom_nodes\comfyui_controlnet_aux\ckpts [F:\AIGC\ComfyUI-Video\custom_nodes\comfyui_controlnet_aux] | INFO -> Using symlinks: False [F:\AIGC\ComfyUI-Video\custom_nodes\comfyui_controlnet_aux] | INFO -> Using ort providers: ['CUDAExecutionProvider', 'DirectMLExecutionProvider', 'OpenVINOExecutionProvider', 'ROCMExecutionProvider', 'CPUExecutionProvider', 'CoreMLExecutionProvider'] DWPose: Onnxruntime with acceleration providers detected

[START] ComfyUI AlekPet Nodes v1.0.73

Node -> ArgosTranslateNode: ArgosTranslateCLIPTextEncodeNode, ArgosTranslateTextNode [Loading] Node -> ChatGLMNode: ChatGLM4TranslateCLIPTextEncodeNode, ChatGLM4TranslateTextNode, ChatGLM4InstructNode, ChatGLM4InstructMediaNode [Loading] Node -> DeepLXTranslateNode: DeepLXTranslateCLIPTextEncodeNode, DeepLXTranslateTextNode [Warning] Node -> DeepTranslatorNode: DeepTranslatorCLIPTextEncodeNode, DeepTranslatorTextNode [Loading] Node -> ExtrasNode: PreviewTextNode, HexToHueNode, ColorsCorrectNode [Loading] Node -> GoogleTranslateNode: GoogleTranslateCLIPTextEncodeNode, GoogleTranslateTextNode [Loading] Node -> IDENode: IDENode [Loading] Node -> PainterNode: PainterNode [Loading] Node -> PoseNode: PoseNode [Loading]

  • Nodes have been temporarily disabled due to the error or specially * DeepLXTranslateNode -> DeepLX nodes are disabled by default, read README: https://github.com/AlekPet/ComfyUI_Custom_Nodes_AlekPet/tree/master/DeepLXTranslateNode#note

[END] ComfyUI AlekPet Nodes

FizzleDorf Custom Nodes: Loaded Efficiency Nodes: Attempting to add Control Net options to the 'HiRes-Fix Script' Node (comfyui_controlnet_aux add-on)...Success! Patching UNetModel.forward UNetModel.forward has been successfully patched. [Power Noise Suite]: 🦚🦚🦚 wark! 🦚🦚🦚 [Power Noise Suite]: Tamed 11 wild nodes.

[rgthree-comfy] Loaded 47 epic nodes. 🎉

Import times for custom nodes: 0.0 seconds: F:\AIGC\ComfyUI-Video\custom_nodes\websocket_image_save.py 0.0 seconds: F:\AIGC\ComfyUI-Video\custom_nodes\ControlNet-LLLite-ComfyUI 0.0 seconds: F:\AIGC\ComfyUI-Video\custom_nodes\ComfyUI_TiledKSampler 0.0 seconds: F:\AIGC\ComfyUI-Video\custom_nodes\stability-ComfyUI-nodes 0.0 seconds: F:\AIGC\ComfyUI-Video\custom_nodes\FreeU_Advanced 0.0 seconds: F:\AIGC\ComfyUI-Video\custom_nodes\ComfyUI_experiments 0.0 seconds: F:\AIGC\ComfyUI-Video\custom_nodes\ComfyUI-WD14-Tagger 0.0 seconds: F:\AIGC\ComfyUI-Video\custom_nodes\ComfyUI-GGUF 0.0 seconds: F:\AIGC\ComfyUI-Video\custom_nodes\AIGODLIKE-ComfyUI-Translation 0.0 seconds: F:\AIGC\ComfyUI-Video\custom_nodes\PowerNoiseSuite 0.0 seconds: F:\AIGC\ComfyUI-Video\custom_nodes\ComfyUI_IPAdapter_plus 0.0 seconds: F:\AIGC\ComfyUI-Video\custom_nodes\images-grid-comfy-plugin 0.0 seconds: F:\AIGC\ComfyUI-Video\custom_nodes\ComfyUI-TeaCache 0.0 seconds: F:\AIGC\ComfyUI-Video\custom_nodes\ComfyUI_UltimateSDUpscale 0.0 seconds: F:\AIGC\ComfyUI-Video\custom_nodes\ComfyUI-Custom-Scripts 0.0 seconds: F:\AIGC\ComfyUI-Video\custom_nodes\Derfuu_ComfyUI_ModdedNodes 0.0 seconds: F:\AIGC\ComfyUI-Video\custom_nodes\ComfyUI-Advanced-ControlNet 0.0 seconds: F:\AIGC\ComfyUI-Video\custom_nodes\ComfyUI-KJNodes 0.0 seconds: F:\AIGC\ComfyUI-Video\custom_nodes\ComfyUI-AnimateDiff-Evolved 0.0 seconds: F:\AIGC\ComfyUI-Video\custom_nodes\comfyui_controlnet_aux 0.0 seconds: F:\AIGC\ComfyUI-Video\custom_nodes\ComfyUI-Inspire-Pack 0.0 seconds: F:\AIGC\ComfyUI-Video\custom_nodes\efficiency-nodes-comfyui 0.0 seconds: F:\AIGC\ComfyUI-Video\custom_nodes\ComfyUI-Crystools 0.1 seconds: F:\AIGC\ComfyUI-Video\custom_nodes\ComfyUI-Marigold 0.1 seconds: F:\AIGC\ComfyUI-Video\custom_nodes\ComfyUI-Impact-Pack 0.1 seconds: F:\AIGC\ComfyUI-Video\custom_nodes\ComfyUI_LayerStyle 0.2 seconds: F:\AIGC\ComfyUI-Video\custom_nodes\ComfyUI_Comfyroll_CustomNodes 0.2 seconds: F:\AIGC\ComfyUI-Video\custom_nodes\ComfyUI_FizzNodes 0.2 seconds: F:\AIGC\ComfyUI-Video\custom_nodes\rgthree-comfy 0.3 seconds: F:\AIGC\ComfyUI-Video\custom_nodes\comfyui-videohelpersuite 0.4 seconds: F:\AIGC\ComfyUI-Video\custom_nodes\ComfyUI-Easy-Use 0.6 seconds: F:\AIGC\ComfyUI-Video\custom_nodes\ComfyUI_LayerStyle_Advance 0.7 seconds: F:\AIGC\ComfyUI-Video\custom_nodes\ComfyUI-Manager 0.7 seconds: F:\AIGC\ComfyUI-Video\custom_nodes\ComfyUI-WanVideoWrapper 0.8 seconds: F:\AIGC\ComfyUI-Video\custom_nodes\ComfyUI-CogVideoXWrapper 3.0 seconds: F:\AIGC\ComfyUI-Video\custom_nodes\ComfyUI_Custom_Nodes_AlekPet

Context impl SQLiteImpl. Will assume non-transactional DDL. No target revision found. Starting server

To see the GUI go to: http://127.0.0.1:8188 FETCH ComfyRegistry Data: 5/90 FETCH ComfyRegistry Data: 10/90 got prompt FETCH ComfyRegistry Data: 15/90 FETCH ComfyRegistry Data: 20/90 refs shape torch.Size([1, 3, 1, 640, 400]) Detected model in_channels: 16 Model type: t2v, num_heads: 12, num_layers: 30 Model variant detected: 1_3B model_type FLOW Using accelerate to load and assign model weights to device... !!! Exception during processing !!! Trying to set a tensor of shape torch.Size([1, 6, 5120]) in "modulation" (which has shape torch.Size([1, 6, 1536])), this looks incorrect. Traceback (most recent call last): File "F:\AIGC\ComfyUI-Video\execution.py", line 361, in execute output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb) File "F:\AIGC\ComfyUI-Video\execution.py", line 236, in get_output_data return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb) File "F:\AIGC\ComfyUI-Video\execution.py", line 208, in _map_node_over_list process_inputs(input_dict, i) File "F:\AIGC\ComfyUI-Video\execution.py", line 197, in process_inputs results.append(getattr(obj, func)(**inputs)) File "F:\AIGC\ComfyUI-Video\custom_nodes\ComfyUI-WanVideoWrapper\nodes.py", line 851, in loadmodel set_module_tensor_to_device(transformer, name, device=transformer_load_device, dtype=dtype_to_use, value=sd[name]) File "F:\AIGC\ComfyUI-Video\python\lib\site-packages\accelerate\utils\modeling.py", line 292, in set_module_tensor_to_device raise ValueError( ValueError: Trying to set a tensor of shape torch.Size([1, 6, 5120]) in "modulation" (which has shape torch.Size([1, 6, 1536])), this looks incorrect.

mmacheng avatar Jul 04 '25 03:07 mmacheng

You are trying to use 14B VACE module with 1.3B model, that is not possible.

kijai avatar Jul 04 '25 07:07 kijai

You are trying to use 14B VACE module with 1.3B model, that is not possible.

太感谢了!已经解决!

mmacheng avatar Jul 04 '25 08:07 mmacheng