Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] stack expects a non-empty TensorList #78

Open
aphaits opened this issue Sep 10, 2024 · 0 comments
Open

[BUG] stack expects a non-empty TensorList #78

aphaits opened this issue Sep 10, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@aphaits
Copy link

aphaits commented Sep 10, 2024

load video node goes into error when loading starting frame other than frame 0

Full log

ComfyUI Error Report

Error Details

  • Node Type: LoadVideo [n-suite]
  • Exception Type: RuntimeError
  • Exception Message: stack expects a non-empty TensorList

Stack Trace

  File "F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\execution.py", line 323, 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:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\execution.py", line 198, 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:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)

  File "F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-N-Nodes\py\video_node_advanced.py", line 506, in encode
    i_tensor = torch.stack(i_list, dim=0)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^

System Information

  • ComfyUI Version: v0.2.2-22-g81778a7
  • Arguments: ComfyUI\main.py --windows-standalone-build
  • OS: nt
  • Python Version: 3.11.6 (tags/v3.11.6:8b6ee5b, Oct 2 2023, 14:57:12) [MSC v.1935 64 bit (AMD64)]
  • Embedded Python: true
  • PyTorch Version: 2.2.2+cu121

Devices

  • Name: cuda:0 NVIDIA GeForce RTX 2070 SUPER : cudaMallocAsync
    • Type: cuda
    • VRAM Total: 8589475840
    • VRAM Free: 7120899300
    • Torch VRAM Total: 301989888
    • Torch VRAM Free: 52448484

Logs

2024-09-11 05:04:17,889 - root - INFO - Total VRAM 8192 MB, total RAM 65465 MB
2024-09-11 05:04:17,889 - root - INFO - pytorch version: 2.2.2+cu121
2024-09-11 05:04:19,010 - root - INFO - xformers version: 0.0.25.post1
2024-09-11 05:04:19,010 - root - INFO - Set vram state to: NORMAL_VRAM
2024-09-11 05:04:19,011 - root - INFO - Device: cuda:0 NVIDIA GeForce RTX 2070 SUPER : cudaMallocAsync
2024-09-11 05:04:19,330 - root - INFO - Using xformers cross attention
2024-09-11 05:04:19,937 - root - INFO - [Prompt Server] web root: F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\web
2024-09-11 05:04:19,939 - root - INFO - Adding extra search path checkpoints F:/StableDiffusion/Models/Checkpoints
2024-09-11 05:04:19,940 - root - INFO - Adding extra search path configs path/to/stable-diffusion-webui/models/Stable-diffusion
2024-09-11 05:04:19,940 - root - INFO - Adding extra search path vae F:/StableDiffusion/Models/VAE
2024-09-11 05:04:19,940 - root - INFO - Adding extra search path loras F:/StableDiffusion/Models/LORAs
2024-09-11 05:04:19,941 - root - INFO - Adding extra search path upscale_models F:/StableDiffusion/Models/Upscale
2024-09-11 05:04:19,941 - root - INFO - Adding extra search path embeddings F:/StableDiffusion/Models/Embeddings
2024-09-11 05:04:19,941 - root - INFO - Adding extra search path hypernetworks path/to/stable-diffusion-webui/models/hypernetworks
2024-09-11 05:04:19,942 - root - INFO - Adding extra search path controlnet F:/StableDiffusion/Models/ControlNet
2024-09-11 05:04:19,942 - root - INFO - Adding extra search path facerestore_models F:/StableDiffusion/Models/Face_Restore
2024-09-11 05:04:19,942 - root - INFO - Adding extra search path facedetection F:/StableDiffusion/Models/FaceDetection
2024-09-11 05:04:19,943 - root - INFO - Adding extra search path clip_vision F:/StableDiffusion/Models/Clip_Vision
2024-09-11 05:04:19,943 - root - INFO - Adding extra search path clip F:/StableDiffusion/Models/Clip
2024-09-11 05:04:19,943 - root - INFO - Adding extra search path style_models F:/StableDiffusion/Models/Style_Models
2024-09-11 05:04:19,944 - root - INFO - Adding extra search path unet F:/StableDiffusion/Models/Unet
2024-09-11 05:04:19,944 - root - INFO - Adding extra search path ipadapter F:/StableDiffusion/Models/IP_Adapter
2024-09-11 05:04:19,944 - root - INFO - Adding extra search path insightface F:/StableDiffusion/Models/insightface
2024-09-11 05:04:19,945 - root - INFO - Adding extra search path instantid F:/StableDiffusion/Models/InstantID
2024-09-11 05:04:27,341 - tensorflow - WARNING - From F:\StableDiffusion\ComfyUI_windows_portable\python_embeded\Lib\site-packages\keras\src\losses.py:2976: The name tf.losses.sparse_softmax_cross_entropy is deprecated. Please use tf.compat.v1.losses.sparse_softmax_cross_entropy instead.

2024-09-11 05:04:27,896 - root - INFO - Total VRAM 8192 MB, total RAM 65465 MB
2024-09-11 05:04:27,896 - root - INFO - pytorch version: 2.2.2+cu121
2024-09-11 05:04:27,897 - root - INFO - xformers version: 0.0.25.post1
2024-09-11 05:04:27,898 - root - INFO - Set vram state to: NORMAL_VRAM
2024-09-11 05:04:27,898 - root - INFO - Device: cuda:0 NVIDIA GeForce RTX 2070 SUPER : cudaMallocAsync
2024-09-11 05:04:30,118 - datasets - INFO - PyTorch version 2.2.2+cu121 available.
2024-09-11 05:04:30,119 - datasets - INFO - TensorFlow version 2.15.0 available.
2024-09-11 05:04:35,347 - root - INFO - 
Import times for custom nodes:
2024-09-11 05:04:35,347 - root - INFO -    0.0 seconds: F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\rembg-comfyui-node
2024-09-11 05:04:35,348 - root - INFO -    0.0 seconds: F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\loadImageWithSubfolders.py
2024-09-11 05:04:35,348 - root - INFO -    0.0 seconds: F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\websocket_image_save.py
2024-09-11 05:04:35,348 - root - INFO -    0.0 seconds: F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\canvas_tab
2024-09-11 05:04:35,349 - root - INFO -    0.0 seconds: F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-seamless-tiling
2024-09-11 05:04:35,350 - root - INFO -    0.0 seconds: F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_IPAdapter_plus
2024-09-11 05:04:35,350 - root - INFO -    0.0 seconds: F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Logic
2024-09-11 05:04:35,350 - root - INFO -    0.0 seconds: F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\efficiency-nodes-comfyui
2024-09-11 05:04:35,351 - root - INFO -    0.0 seconds: F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\cg-use-everywhere
2024-09-11 05:04:35,351 - root - INFO -    0.0 seconds: F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_TiledKSampler
2024-09-11 05:04:35,351 - root - INFO -    0.0 seconds: F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-VideoHelperSuite
2024-09-11 05:04:35,352 - root - INFO -    0.0 seconds: F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Chibi-Nodes
2024-09-11 05:04:35,352 - root - INFO -    0.0 seconds: F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyLiterals
2024-09-11 05:04:35,352 - root - INFO -    0.0 seconds: F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_InstantID
2024-09-11 05:04:35,353 - root - INFO -    0.0 seconds: F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux
2024-09-11 05:04:35,353 - root - INFO -    0.0 seconds: F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-WD14-Tagger
2024-09-11 05:04:35,353 - root - INFO -    0.0 seconds: F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Impact-Pack
2024-09-11 05:04:35,354 - root - INFO -    0.0 seconds: F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyMath
2024-09-11 05:04:35,354 - root - INFO -    0.0 seconds: F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Custom-Scripts
2024-09-11 05:04:35,354 - root - INFO -    0.0 seconds: F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_UltimateSDUpscale
2024-09-11 05:04:35,355 - root - INFO -    0.0 seconds: F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\Derfuu_ComfyUI_ModdedNodes
2024-09-11 05:04:35,355 - root - INFO -    0.0 seconds: F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\rgthree-comfy
2024-09-11 05:04:35,355 - root - INFO -    0.0 seconds: F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-various
2024-09-11 05:04:35,356 - root - INFO -    0.0 seconds: F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Workflow-Component
2024-09-11 05:04:35,356 - root - INFO -    0.0 seconds: F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_bitsandbytes_NF4
2024-09-11 05:04:35,356 - root - INFO -    0.0 seconds: F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_segment_anything
2024-09-11 05:04:35,357 - root - INFO -    0.0 seconds: F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-TiledDiffusion
2024-09-11 05:04:35,357 - root - INFO -    0.0 seconds: F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Marigold
2024-09-11 05:04:35,357 - root - INFO -    0.0 seconds: F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-KJNodes
2024-09-11 05:04:35,358 - root - INFO -    0.0 seconds: F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_Comfyroll_CustomNodes
2024-09-11 05:04:35,358 - root - INFO -    0.0 seconds: F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\facerestore_cf
2024-09-11 05:04:35,358 - root - INFO -    0.0 seconds: F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-dream-project
2024-09-11 05:04:35,359 - root - INFO -    0.0 seconds: F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_essentials
2024-09-11 05:04:35,359 - root - INFO -    0.0 seconds: F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-AutomaticCFG
2024-09-11 05:04:35,360 - root - INFO -    0.0 seconds: F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-workspace-manager
2024-09-11 05:04:35,360 - root - INFO -    0.1 seconds: F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Crystools
2024-09-11 05:04:35,360 - root - INFO -    0.1 seconds: F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node
2024-09-11 05:04:35,361 - root - INFO -    0.1 seconds: F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Inspire-Pack
2024-09-11 05:04:35,361 - root - INFO -    0.2 seconds: F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-PhotoMaker-Plus
2024-09-11 05:04:35,361 - root - INFO -    0.2 seconds: F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-propost
2024-09-11 05:04:35,362 - root - INFO -    0.5 seconds: F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager
2024-09-11 05:04:35,362 - root - INFO -    0.5 seconds: F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-N-Nodes
2024-09-11 05:04:35,362 - root - INFO -    0.6 seconds: F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfy_mtb
2024-09-11 05:04:35,363 - root - INFO -    1.1 seconds: F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-art-venture
2024-09-11 05:04:35,363 - root - INFO -    1.1 seconds: F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-SUPIR
2024-09-11 05:04:35,363 - root - INFO -    1.3 seconds: F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_Custom_Nodes_AlekPet
2024-09-11 05:04:35,364 - root - INFO -    1.3 seconds: F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Portrait-Maker
2024-09-11 05:04:35,364 - root - INFO -    1.4 seconds: F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\was-node-suite-comfyui
2024-09-11 05:04:35,364 - root - INFO -    5.8 seconds: F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Flowty-CRM
2024-09-11 05:04:35,367 - root - INFO - 
2024-09-11 05:04:35,382 - root - INFO - Starting server

2024-09-11 05:04:35,383 - root - INFO - To see the GUI go to: http://127.0.0.1:8188
2024-09-11 05:05:36,138 - root - INFO - got prompt
2024-09-11 05:05:38,690 - root - INFO - Prompt executed in 2.54 seconds
2024-09-11 05:05:43,328 - root - INFO - got prompt
2024-09-11 05:05:51,707 - root - INFO - Prompt executed in 8.37 seconds
2024-09-11 05:06:17,264 - root - INFO - got prompt
2024-09-11 05:06:19,577 - root - ERROR - !!! Exception during processing !!! stack expects a non-empty TensorList
2024-09-11 05:06:19,588 - root - ERROR - Traceback (most recent call last):
  File "F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\execution.py", line 323, 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:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\execution.py", line 198, 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:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)
  File "F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-N-Nodes\py\video_node_advanced.py", line 506, in encode
    i_tensor = torch.stack(i_list, dim=0)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: stack expects a non-empty TensorList

2024-09-11 05:06:19,589 - root - INFO - Prompt executed in 2.32 seconds
2024-09-11 05:08:20,225 - root - INFO - got prompt
2024-09-11 05:08:22,064 - root - ERROR - !!! Exception during processing !!! stack expects a non-empty TensorList
2024-09-11 05:08:22,065 - root - ERROR - Traceback (most recent call last):
  File "F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\execution.py", line 323, 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:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\execution.py", line 198, 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:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)
  File "F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "F:\StableDiffusion\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-N-Nodes\py\video_node_advanced.py", line 506, in encode
    i_tensor = torch.stack(i_list, dim=0)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: stack expects a non-empty TensorList

2024-09-11 05:08:22,066 - root - INFO - Prompt executed in 1.83 seconds

Attached Workflow

Please make sure that workflow does not contain any sensitive information such as API keys or passwords.

Workflow too large. Please manually upload the workflow from local file system.

Additional Context

(Please add any additional context or steps to reproduce the error here)

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@aphaits aphaits added the bug Something isn't working label Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant