LTX 2.5 CLIP Text Encode (Negative Prompt) ERROR

Abierto
#548 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
22/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Tranquilo
Stack tecnológico
python, pytorch

Línea de trabajo

The traceback ends in comfy/sd1_clip.py: forward at line 266 unpacks four values from self.process_tokens(tokens, device), but the call got one. The model is named Gemma4TEModel_, so start with that text encoder's process_tokens return value and the encode_token_weights path at line 743. The payload does not say which change fixes it, and the failure is in ComfyUI core rather than this repo, so the first step is to reproduce it with the negative prompt. Done means the negative-prompt encode returns without the unpack error.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

[INFO] got prompt
[INFO] Model Gemma4TEModel_ prepared for dynamic VRAM loading. 12407MB Staged. 0 patches attached. Force pre-loaded 293 weights: 1535 KB.
[ERROR] !!! Exception during processing !!! not enough values to unpack (expected 4, got 1)
[ERROR] Traceback (most recent call last):
File "R:\Comfi_12_MiniMax\2\ComfyUI_windows_portable\ComfyUI\execution.py", line 545, in execute
output_data, output_ui, has_subgraph, has_pending_tasks = await get_output_data(prompt_id, unique_id, obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "R:\Comfi_12_MiniMax\2\ComfyUI_windows_portable\ComfyUI\execution.py", line 344, in get_output_data
return_values = await _async_map_node_over_list(prompt_id, unique_id, obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "R:\Comfi_12_MiniMax\2\ComfyUI_windows_portable\ComfyUI\execution.py", line 318, in _async_map_node_over_list
await process_inputs(input_dict, i)
File "R:\Comfi_12_MiniMax\2\ComfyUI_windows_portable\ComfyUI\execution.py", line 306, in process_inputs
result = f(**inputs)
^^^^^^^^^^^
File "R:\Comfi_12_MiniMax\2\ComfyUI_windows_portable\ComfyUI\nodes.py", line 77, in encode
return (clip.encode_from_tokens_scheduled(tokens), )
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "R:\Comfi_12_MiniMax\2\ComfyUI_windows_portable\ComfyUI\comfy\sd.py", line 336, in encode_from_tokens_scheduled
pooled_dict = self.encode_from_tokens(tokens, return_pooled=return_pooled, return_dict=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "R:\Comfi_12_MiniMax\2\ComfyUI_windows_portable\ComfyUI\comfy\sd.py", line 405, in encode_from_tokens
o = self.cond_stage_model.encode_token_weights(tokens)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "R:\Comfi_12_MiniMax\2\ComfyUI_windows_portable\ComfyUI\comfy\sd1_clip.py", line 743, in encode_token_weights
out = getattr(self, self.clip).encode_token_weights(token_weight_pairs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "R:\Comfi_12_MiniMax\2\ComfyUI_windows_portable\ComfyUI\comfy\sd1_clip.py", line 45, in encode_token_weights
o = self.encode(to_encode)
^^^^^^^^^^^^^^^^^^^^^^
File "R:\Comfi_12_MiniMax\2\ComfyUI_windows_portable\ComfyUI\comfy\sd1_clip.py", line 306, in encode
return self(tokens)
^^^^^^^^^^^^
File "R:\Comfi_12_MiniMax\2\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1778, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "R:\Comfi_12_MiniMax\2\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1789, in _call_impl
return forward_call(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "R:\Comfi_12_MiniMax\2\ComfyUI_windows_portable\ComfyUI\comfy\sd1_clip.py", line 266, in forward
embeds, attention_mask, num_tokens, embeds_info = self.process_tokens(tokens, device)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: not enough values to unpack (expected 4, got 1)

[INFO] Prompt executed in 0.46 seconds

[INFO] Checkpoint files will always be loaded safely.
[INFO] Total VRAM 16311 MB, total RAM 65376 MB
[INFO] pytorch version: 2.13.0+cu130
[INFO] Set vram state to: NORMAL_VRAM
[INFO] Device: cuda:0 NVIDIA GeForce RTX 5060 Ti : cudaMallocAsync
[INFO] Using async weight offloading with 2 streams
[INFO] Enabled pinned memory 26150.0
[INFO] Using pytorch attention
[INFO] aimdo: src-win/cuda-detour.c:38:INFO:aimdo_setup_hooks: installing 6 hooks
[INFO] aimdo: src/control.c:262:INFO:comfy-aimdo NVML pressure enabled
[INFO] aimdo: src-win/shmem-detect.c:80:INFO:comfy-aimdo WDDM adapter match: NVIDIA GeForce RTX 5060 Ti runtime_luid=00000000:00017161 dxgi_luid=00000000:00017161
[INFO] aimdo: src/control.c:277:INFO:comfy-aimdo inited for GPU: NVIDIA GeForce RTX 5060 Ti (VRAM: 16310 MB)
[INFO] DynamicVRAM support detected and enabled
[INFO] Python version: 3.12.10 (tags/v3.12.10:0cc8128, Apr 8 2025, 12:21:36) [MSC v.1943 64 bit (AMD64)]
[INFO] ComfyUI version: 0.31.1
[INFO] comfy-aimdo version: 0.4.13
[INFO] comfy-kitchen version: 0.2.28
[INFO] comfyui-frontend-package version: 1.48.7
[INFO] comfyui-workflow-templates version: 0.11.37
[INFO] comfyui-embedded-docs version: 0.5.9
[INFO] comfy-kitchen version: 0.2.28
[INFO] comfy-aimdo version: 0.4.13
[INFO] [Prompt Server] web root: R:\Comfi_12_MiniMax\2\ComfyUI_windows_portable\python_embeded\Lib\site-packages\comfyui_frontend_package\static
[INFO] Asset seeder disabled
R:\Comfi_12_MiniMax\2\ComfyUI_windows_portable\python_embeded\Lib\site-packages\kornia\feature\lightglue.py:30: FutureWarning: torch.cuda.amp.custom_fwd(args...) is deprecated. Please use torch.amp.custom_fwd(args..., device_type='cuda') instead.
@torch.cuda.amp.custom_fwd(cast_inputs=torch.float32)
[INFO] No OpenGL_accelerate module loaded: No module named 'OpenGL_accelerate'
[INFO] ComfyUI-GGUF: Allowing full torch compile
[INFO] ### Loading: ComfyUI-Manager (V3.41)
[INFO] [ComfyUI-Manager] network_mode: public
[INFO] [ComfyUI-Manager] ComfyUI per-queue preview override detected (PR #11261). Manager's preview method feature is disabled. Use ComfyUI's --preview-method CLI option or 'Settings > Execution > Live preview method'.
[INFO] ### ComfyUI Revision: 283 [fe4195f7] *DETACHED | Released on '2026-08-08'
[INFO] [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json
[INFO] [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json
[INFO] [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/github-stats.json
[INFO] [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json
[INFO] [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json
[WARNING] WanVideoWrapper WARNING: FantasyPortrait nodes not available: No module named 'onnx'

[rgthree-comfy] Loaded 48 fantastic nodes. 🎉

[rgthree-comfy] ComfyUI's new Node 2.0 rendering may be incompatible with some rgthree-comfy nodes and features, breaking some rendering as well as losing the ability to access a node's properties (a vital part of many nodes). It also appears to run MUCH more slowly spiking CPU usage and causing jankiness and unresponsiveness, especially with large workflows. Personally I am not planning to use the new Nodes 2.0 and, unfortunately, am not able to invest the time to investigate and overhaul rgthree-comfy where needed. If you have issues when Nodes 2.0 is enabled, I'd urge you to switch it off as well and join me in hoping ComfyUI is not planning to deprecate the existing, stable canvas rendering all together.

[INFO]
Import times for custom nodes:
[INFO] 0.0 seconds: R:\Comfi_12_MiniMax\2\ComfyUI_windows_portable\ComfyUI\custom_nodes\websocket_image_save.py
[INFO] 0.0 seconds: R:\Comfi_12_MiniMax\2\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-MiniMax-H3-Turbo
[INFO] 0.0 seconds: R:\Comfi_12_MiniMax\2\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-custom-scripts
[INFO] 0.0 seconds: R:\Comfi_12_MiniMax\2\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-INT8-Fast
[INFO] 0.0 seconds: R:\Comfi_12_MiniMax\2\ComfyUI_windows_portable\ComfyUI\custom_nodes\rgthree-comfy
[INFO] 0.0 seconds: R:\Comfi_12_MiniMax\2\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-SolAttn_triton
[INFO] 0.0 seconds: R:\Comfi_12_MiniMax\2\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-GGUF
[INFO] 0.0 seconds: R:\Comfi_12_MiniMax\2\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-kjnodes
[INFO] 0.1 seconds: R:\Comfi_12_MiniMax\2\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-videohelpersuite
[INFO] 0.1 seconds: R:\Comfi_12_MiniMax\2\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager
[INFO] 0.2 seconds: R:\Comfi_12_MiniMax\2\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-LTXVideo
[INFO] 1.2 seconds: R:\Comfi_12_MiniMax\2\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-WanVideoWrapper
[INFO]
[INFO] Context impl SQLiteImpl.
[INFO] Will assume non-transactional DDL.
[INFO] Using RAM pressure cache.
[INFO] Starting server

[INFO] To see the GUI go to: http://127.0.0.1:8188

Lenguaje dominante
Python
Estrellas
4.2k
Forks
508
Merge medio
7 h 14 min
PR fusionados (30 d)
3

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Lightricks/ComfyUI-LTXVideo

Todos los issues de Lightricks/ComfyUI-LTXVideo

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.