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

SamplerCustomAdvanced LTXVTransformer3D.forward() missing 1 required positional argument: 'attention_mask' #94

Open
lei20241128 opened this issue Dec 27, 2024 · 17 comments
Assignees

Comments

@lei20241128
Copy link

SamplerCustomAdvanced
LTXVTransformer3D.forward() missing 1 required positional argument: 'attention_mask'

@kvochko
Copy link
Member

kvochko commented Dec 29, 2024

Hi @lei20241128 . Could you please share your workflow?

@Rahil-Parikh
Copy link

Facing same issue
Trying to run it on RTX 3070 using ltx-video-2b-v0.9.1.safetensors and t5-base/model.safetensors as clip. Have attached my output and workflow as well

ComfyUI Error Report

Error Details

  • Node ID: 36
  • Node Type: SamplerCustomAdvanced
  • Exception Type: TypeError
  • Exception Message: LTXVTransformer3D.forward() missing 1 required positional argument: 'attention_mask'

Stack Trace

  File "/home/zillions/Work/ComfyUI/execution.py", line 327, 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 "/home/zillions/Work/ComfyUI/execution.py", line 202, 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 "/home/zillions/Work/ComfyUI/execution.py", line 174, in _map_node_over_list
    process_inputs(input_dict, i)

  File "/home/zillions/Work/ComfyUI/execution.py", line 163, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/home/zillions/Work/ComfyUI/comfy_extras/nodes_custom_sampler.py", line 633, in sample
    samples = guider.sample(noise.generate_noise(latent), latent_image, sampler, sigmas, denoise_mask=noise_mask, callback=callback, disable_pbar=disable_pbar, seed=noise.seed)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/home/zillions/Work/ComfyUI/comfy/samplers.py", line 897, in sample
    output = executor.execute(noise, latent_image, sampler, sigmas, denoise_mask, callback, disable_pbar, seed)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/home/zillions/Work/ComfyUI/comfy/patcher_extension.py", line 110, in execute
    return self.original(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/home/zillions/Work/ComfyUI/comfy/samplers.py", line 866, in outer_sample
    output = self.inner_sample(noise, latent_image, device, sampler, sigmas, denoise_mask, callback, disable_pbar, seed)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/home/zillions/Work/ComfyUI/comfy/samplers.py", line 850, in inner_sample
    samples = executor.execute(self, sigmas, extra_args, callback, noise, latent_image, denoise_mask, disable_pbar)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/home/zillions/Work/ComfyUI/comfy/patcher_extension.py", line 110, in execute
    return self.original(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/home/zillions/Work/ComfyUI/comfy/samplers.py", line 707, in sample
    samples = self.sampler_function(model_k, noise, sigmas, extra_args=extra_args, callback=k_callback, disable=disable_pbar, **self.extra_options)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/home/zillions/.local/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^

  File "/home/zillions/Work/ComfyUI/comfy/k_diffusion/sampling.py", line 168, in sample_euler_ancestral
    return sample_euler_ancestral_RF(model, x, sigmas, extra_args, callback, disable, eta, s_noise, noise_sampler)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/home/zillions/.local/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^

  File "/home/zillions/Work/ComfyUI/comfy/k_diffusion/sampling.py", line 195, in sample_euler_ancestral_RF
    denoised = model(x, sigmas[i] * s_in, **extra_args)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/home/zillions/Work/ComfyUI/comfy/samplers.py", line 379, in __call__
    out = self.inner_model(x, sigma, model_options=model_options, seed=seed)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/home/zillions/Work/ComfyUI/comfy/samplers.py", line 832, in __call__
    return self.predict_noise(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/home/zillions/Work/ComfyUI/custom_nodes/ComfyUI-LTXVideo/stg.py", line 107, in predict_noise
    comfy.samplers.calc_cond_batch(

  File "/home/zillions/Work/ComfyUI/comfy/samplers.py", line 195, in calc_cond_batch
    return executor.execute(model, conds, x_in, timestep, model_options)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/home/zillions/Work/ComfyUI/comfy/patcher_extension.py", line 110, in execute
    return self.original(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/home/zillions/Work/ComfyUI/comfy/samplers.py", line 308, in _calc_cond_batch
    output = model.apply_model(input_x, timestep_, **c).chunk(batch_chunks)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/home/zillions/Work/ComfyUI/comfy/model_base.py", line 130, in apply_model
    return comfy.patcher_extension.WrapperExecutor.new_class_executor(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/home/zillions/Work/ComfyUI/comfy/patcher_extension.py", line 110, in execute
    return self.original(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/home/zillions/Work/ComfyUI/comfy/model_base.py", line 159, in _apply_model
    model_output = self.diffusion_model(xc, t, context=context, control=control, transformer_options=transformer_options, **extra_conds).float()
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/home/zillions/.local/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1532, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/home/zillions/.local/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1541, in _call_impl
    return forward_call(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

System Information

  • ComfyUI Version: v0.3.10-10-ga618f76
  • Arguments: main.py
  • OS: posix
  • Python Version: 3.12.6 (main, Sep 10 2024, 00:05:17) [GCC 11.4.0]
  • Embedded Python: false
  • PyTorch Version: 2.3.1+cu121

Devices

  • Name: cuda:0 NVIDIA GeForce RTX 3070 Laptop GPU : cudaMallocAsync
    • Type: cuda
    • VRAM Total: 8253079552
    • VRAM Free: 1410690460
    • Torch VRAM Total: 6643777536
    • Torch VRAM Free: 24145308

Logs

2024-12-29T15:08:05.337359 - [START] Security scan2024-12-29T15:08:05.337369 - 
2024-12-29T15:08:06.387459 - [DONE] Security scan2024-12-29T15:08:06.387473 - 
2024-12-29T15:08:06.428865 - ## ComfyUI-Manager: installing dependencies done.2024-12-29T15:08:06.428897 - 
2024-12-29T15:08:06.428918 - ** ComfyUI startup time:2024-12-29T15:08:06.428943 -  2024-12-29T15:08:06.428958 - 2024-12-29 15:08:06.4289042024-12-29T15:08:06.428981 - 
2024-12-29T15:08:06.428996 - ** Platform:2024-12-29T15:08:06.429008 -  2024-12-29T15:08:06.429020 - Linux2024-12-29T15:08:06.429031 - 
2024-12-29T15:08:06.429043 - ** Python version:2024-12-29T15:08:06.429054 -  2024-12-29T15:08:06.429066 - 3.12.6 (main, Sep 10 2024, 00:05:17) [GCC 11.4.0]2024-12-29T15:08:06.429089 - 
2024-12-29T15:08:06.429106 - ** Python executable:2024-12-29T15:08:06.429117 -  2024-12-29T15:08:06.429128 - /usr/bin/python2024-12-29T15:08:06.429138 - 
2024-12-29T15:08:06.429149 - ** ComfyUI Path:2024-12-29T15:08:06.429159 -  2024-12-29T15:08:06.429170 - /home/zillions/Work/ComfyUI2024-12-29T15:08:06.429180 - 
2024-12-29T15:08:06.429199 - ** Log path:2024-12-29T15:08:06.429210 -  2024-12-29T15:08:06.429221 - /home/zillions/Work/ComfyUI/comfyui.log2024-12-29T15:08:06.429232 - 
2024-12-29T15:08:07.272159 - 
Prestartup times for custom nodes:
2024-12-29T15:08:07.272278 -    1.9 seconds: /home/zillions/Work/ComfyUI/custom_nodes/ComfyUI-Manager
2024-12-29T15:08:07.272324 - 
2024-12-29T15:08:08.611673 - Total VRAM 7871 MB, total RAM 15390 MB
2024-12-29T15:08:08.611773 - pytorch version: 2.3.1+cu121
2024-12-29T15:08:08.611960 - Set vram state to: NORMAL_VRAM
2024-12-29T15:08:08.612053 - Device: cuda:0 NVIDIA GeForce RTX 3070 Laptop GPU : cudaMallocAsync
2024-12-29T15:08:09.294441 - Using pytorch attention
2024-12-29T15:08:10.209617 - [Prompt Server] web root: /home/zillions/Work/ComfyUI/web
2024-12-29T15:08:12.089121 - �[36;20m[comfy_mtb] | INFO -> loaded �[96m90�[0m nodes successfuly�[0m
2024-12-29T15:08:12.089380 - �[36;20m[comfy_mtb] | INFO -> Some nodes (5) could not be loaded. This can be ignored, but go to http://127.0.0.1:8188/mtb if you want more information.�[0m
2024-12-29T15:08:12.092554 - ### Loading: ComfyUI-Manager (V2.55.5)2024-12-29T15:08:12.092586 - 
2024-12-29T15:08:12.244645 - ### ComfyUI Version: v0.3.10-10-ga618f76 | Released on '2024-12-29'2024-12-29T15:08:12.244676 - 
2024-12-29T15:08:12.355848 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json2024-12-29T15:08:12.355890 - 
2024-12-29T15:08:12.368901 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json2024-12-29T15:08:12.368928 - 
2024-12-29T15:08:12.380437 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/github-stats.json2024-12-29T15:08:12.380464 - 
2024-12-29T15:08:12.416908 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json2024-12-29T15:08:12.416939 - 
2024-12-29T15:08:12.445527 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json2024-12-29T15:08:12.445572 - 
2024-12-29T15:08:12.592173 - 
Import times for custom nodes:
2024-12-29T15:08:12.592265 -    0.0 seconds: /home/zillions/Work/ComfyUI/custom_nodes/websocket_image_save.py
2024-12-29T15:08:12.592301 -    0.0 seconds: /home/zillions/Work/ComfyUI/custom_nodes/ComfyUI-Custom-Scripts
2024-12-29T15:08:12.592333 -    0.1 seconds: /home/zillions/Work/ComfyUI/custom_nodes/ComfyUI-VideoHelperSuite
2024-12-29T15:08:12.592362 -    0.2 seconds: /home/zillions/Work/ComfyUI/custom_nodes/ComfyUI-Manager
2024-12-29T15:08:12.592389 -    0.2 seconds: /home/zillions/Work/ComfyUI/custom_nodes/comfy_mtb
2024-12-29T15:08:12.592416 -    0.2 seconds: /home/zillions/Work/ComfyUI/custom_nodes/ComfyUI-LTXVideo
2024-12-29T15:08:12.592442 -    0.9 seconds: /home/zillions/Work/ComfyUI/custom_nodes/ComfyUI-Fluxpromptenhancer
2024-12-29T15:08:12.592468 - 
2024-12-29T15:08:12.597791 - Starting server

2024-12-29T15:08:12.597985 - To see the GUI go to: http://127.0.0.1:8188
2024-12-29T15:08:27.855369 - got prompt
2024-12-29T15:08:46.099207 - model_type FLOW
2024-12-29T15:08:46.813249 - Device set to use cuda
2024-12-29T15:08:49.289155 - CLIP model load device: cuda:0, offload device: cpu, current: cpu, dtype: torch.float16
2024-12-29T15:08:49.514663 - Requested to load SAT5Model
2024-12-29T15:08:49.571614 - loaded partially 128.1392601013183 128.099853515625 0
2024-12-29T15:08:49.607781 - loaded partially 128.1392601013183 128.099853515625 0
2024-12-29T15:08:49.658429 - Requested to load LTXVModel
2024-12-29T15:08:49.711923 - loaded completely 128.1392601013183 128.13671875 False
2024-12-29T15:08:49.714095 - 
  0%|                                                    | 0/25 [00:00<?, ?it/s]2024-12-29T15:08:49.715678 - 
  0%|                                                    | 0/25 [00:00<?, ?it/s]2024-12-29T15:08:49.715709 - 
2024-12-29T15:08:49.735794 - !!! Exception during processing !!! LTXVTransformer3D.forward() missing 1 required positional argument: 'attention_mask'
2024-12-29T15:08:49.739787 - Traceback (most recent call last):
  File "/home/zillions/Work/ComfyUI/execution.py", line 327, 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 "/home/zillions/Work/ComfyUI/execution.py", line 202, 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 "/home/zillions/Work/ComfyUI/execution.py", line 174, in _map_node_over_list
    process_inputs(input_dict, i)
  File "/home/zillions/Work/ComfyUI/execution.py", line 163, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/zillions/Work/ComfyUI/comfy_extras/nodes_custom_sampler.py", line 633, in sample
    samples = guider.sample(noise.generate_noise(latent), latent_image, sampler, sigmas, denoise_mask=noise_mask, callback=callback, disable_pbar=disable_pbar, seed=noise.seed)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/zillions/Work/ComfyUI/comfy/samplers.py", line 897, in sample
    output = executor.execute(noise, latent_image, sampler, sigmas, denoise_mask, callback, disable_pbar, seed)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/zillions/Work/ComfyUI/comfy/patcher_extension.py", line 110, in execute
    return self.original(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/zillions/Work/ComfyUI/comfy/samplers.py", line 866, in outer_sample
    output = self.inner_sample(noise, latent_image, device, sampler, sigmas, denoise_mask, callback, disable_pbar, seed)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/zillions/Work/ComfyUI/comfy/samplers.py", line 850, in inner_sample
    samples = executor.execute(self, sigmas, extra_args, callback, noise, latent_image, denoise_mask, disable_pbar)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/zillions/Work/ComfyUI/comfy/patcher_extension.py", line 110, in execute
    return self.original(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/zillions/Work/ComfyUI/comfy/samplers.py", line 707, in sample
    samples = self.sampler_function(model_k, noise, sigmas, extra_args=extra_args, callback=k_callback, disable=disable_pbar, **self.extra_options)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/zillions/.local/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/home/zillions/Work/ComfyUI/comfy/k_diffusion/sampling.py", line 168, in sample_euler_ancestral
    return sample_euler_ancestral_RF(model, x, sigmas, extra_args, callback, disable, eta, s_noise, noise_sampler)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/zillions/.local/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/home/zillions/Work/ComfyUI/comfy/k_diffusion/sampling.py", line 195, in sample_euler_ancestral_RF
    denoised = model(x, sigmas[i] * s_in, **extra_args)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/zillions/Work/ComfyUI/comfy/samplers.py", line 379, in __call__
    out = self.inner_model(x, sigma, model_options=model_options, seed=seed)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/zillions/Work/ComfyUI/comfy/samplers.py", line 832, in __call__
    return self.predict_noise(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/zillions/Work/ComfyUI/custom_nodes/ComfyUI-LTXVideo/stg.py", line 107, in predict_noise
    comfy.samplers.calc_cond_batch(
  File "/home/zillions/Work/ComfyUI/comfy/samplers.py", line 195, in calc_cond_batch
    return executor.execute(model, conds, x_in, timestep, model_options)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/zillions/Work/ComfyUI/comfy/patcher_extension.py", line 110, in execute
    return self.original(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/zillions/Work/ComfyUI/comfy/samplers.py", line 308, in _calc_cond_batch
    output = model.apply_model(input_x, timestep_, **c).chunk(batch_chunks)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/zillions/Work/ComfyUI/comfy/model_base.py", line 130, in apply_model
    return comfy.patcher_extension.WrapperExecutor.new_class_executor(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/zillions/Work/ComfyUI/comfy/patcher_extension.py", line 110, in execute
    return self.original(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/zillions/Work/ComfyUI/comfy/model_base.py", line 159, in _apply_model
    model_output = self.diffusion_model(xc, t, context=context, control=control, transformer_options=transformer_options, **extra_conds).float()
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/zillions/.local/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1532, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/zillions/.local/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1541, in _call_impl
    return forward_call(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: LTXVTransformer3D.forward() missing 1 required positional argument: 'attention_mask'

2024-12-29T15:08:49.740969 - Prompt executed in 21.87 seconds
2024-12-29T15:13:04.048104 - got prompt
2024-12-29T15:13:04.090499 - 
  0%|                                                    | 0/25 [00:00<?, ?it/s]2024-12-29T15:13:04.093857 - 
  0%|                                                    | 0/25 [00:00<?, ?it/s]2024-12-29T15:13:04.093895 - 
2024-12-29T15:13:04.106609 - !!! Exception during processing !!! LTXVTransformer3D.forward() missing 1 required positional argument: 'attention_mask'
2024-12-29T15:13:04.108165 - Traceback (most recent call last):
  File "/home/zillions/Work/ComfyUI/execution.py", line 327, 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 "/home/zillions/Work/ComfyUI/execution.py", line 202, 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 "/home/zillions/Work/ComfyUI/execution.py", line 174, in _map_node_over_list
    process_inputs(input_dict, i)
  File "/home/zillions/Work/ComfyUI/execution.py", line 163, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/zillions/Work/ComfyUI/comfy_extras/nodes_custom_sampler.py", line 633, in sample
    samples = guider.sample(noise.generate_noise(latent), latent_image, sampler, sigmas, denoise_mask=noise_mask, callback=callback, disable_pbar=disable_pbar, seed=noise.seed)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/zillions/Work/ComfyUI/comfy/samplers.py", line 897, in sample
    output = executor.execute(noise, latent_image, sampler, sigmas, denoise_mask, callback, disable_pbar, seed)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/zillions/Work/ComfyUI/comfy/patcher_extension.py", line 110, in execute
    return self.original(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/zillions/Work/ComfyUI/comfy/samplers.py", line 866, in outer_sample
    output = self.inner_sample(noise, latent_image, device, sampler, sigmas, denoise_mask, callback, disable_pbar, seed)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/zillions/Work/ComfyUI/comfy/samplers.py", line 850, in inner_sample
    samples = executor.execute(self, sigmas, extra_args, callback, noise, latent_image, denoise_mask, disable_pbar)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/zillions/Work/ComfyUI/comfy/patcher_extension.py", line 110, in execute
    return self.original(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/zillions/Work/ComfyUI/comfy/samplers.py", line 707, in sample
    samples = self.sampler_function(model_k, noise, sigmas, extra_args=extra_args, callback=k_callback, disable=disable_pbar, **self.extra_options)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/zillions/.local/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/home/zillions/Work/ComfyUI/comfy/k_diffusion/sampling.py", line 168, in sample_euler_ancestral
    return sample_euler_ancestral_RF(model, x, sigmas, extra_args, callback, disable, eta, s_noise, noise_sampler)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/zillions/.local/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/home/zillions/Work/ComfyUI/comfy/k_diffusion/sampling.py", line 195, in sample_euler_ancestral_RF
    denoised = model(x, sigmas[i] * s_in, **extra_args)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/zillions/Work/ComfyUI/comfy/samplers.py", line 379, in __call__
    out = self.inner_model(x, sigma, model_options=model_options, seed=seed)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/zillions/Work/ComfyUI/comfy/samplers.py", line 832, in __call__
    return self.predict_noise(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/zillions/Work/ComfyUI/custom_nodes/ComfyUI-LTXVideo/stg.py", line 107, in predict_noise
    comfy.samplers.calc_cond_batch(
  File "/home/zillions/Work/ComfyUI/comfy/samplers.py", line 195, in calc_cond_batch
    return executor.execute(model, conds, x_in, timestep, model_options)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/zillions/Work/ComfyUI/comfy/patcher_extension.py", line 110, in execute
    return self.original(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/zillions/Work/ComfyUI/comfy/samplers.py", line 308, in _calc_cond_batch
    output = model.apply_model(input_x, timestep_, **c).chunk(batch_chunks)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/zillions/Work/ComfyUI/comfy/model_base.py", line 130, in apply_model
    return comfy.patcher_extension.WrapperExecutor.new_class_executor(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/zillions/Work/ComfyUI/comfy/patcher_extension.py", line 110, in execute
    return self.original(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/zillions/Work/ComfyUI/comfy/model_base.py", line 159, in _apply_model
    model_output = self.diffusion_model(xc, t, context=context, control=control, transformer_options=transformer_options, **extra_conds).float()
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/zillions/.local/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1532, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/zillions/.local/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1541, in _call_impl
    return forward_call(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: LTXVTransformer3D.forward() missing 1 required positional argument: 'attention_mask'

2024-12-29T15:13:04.109639 - Prompt executed in 0.05 seconds

Attached Workflow

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

{"last_node_id":186,"last_link_id":402,"nodes":[{"id":112,"type":"String Replace (mtb)","pos":[-152.169921875,574.6173706054688],"size":[210,82],"flags":{},"order":11,"mode":0,"inputs":[{"name":"string","type":"STRING","link":402,"widget":{"name":"string"}}],"outputs":[{"name":"STRING","type":"STRING","links":[276],"slot_index":0}],"properties":{"Node name for S&R":"String Replace (mtb)"},"widgets_values":["","image","video"]},{"id":117,"type":"String Replace (mtb)","pos":[-152.169921875,701.39794921875],"size":[210,82],"flags":{},"order":14,"mode":0,"inputs":[{"name":"string","type":"STRING","link":276,"widget":{"name":"string"}}],"outputs":[{"name":"STRING","type":"STRING","links":[272],"slot_index":0}],"properties":{"Node name for S&R":"String Replace (mtb)"},"widgets_values":["","photo","video"]},{"id":113,"type":"String Replace (mtb)","pos":[-152.169921875,836.8164672851562],"size":[210,82],"flags":{},"order":16,"mode":0,"inputs":[{"name":"string","type":"STRING","link":272,"widget":{"name":"string"}}],"outputs":[{"name":"STRING","type":"STRING","links":[273],"slot_index":0}],"properties":{"Node name for S&R":"String Replace (mtb)"},"widgets_values":["","painting","video"]},{"id":81,"type":"BasicScheduler","pos":[840,210],"size":[315,106],"flags":{},"order":17,"mode":0,"inputs":[{"name":"model","type":"MODEL","link":261}],"outputs":[{"name":"SIGMAS","type":"SIGMAS","links":[262],"slot_index":0,"shape":3}],"properties":{"Node name for S&R":"BasicScheduler"},"widgets_values":["normal",25,1]},{"id":104,"type":"LTXVShiftSigmas","pos":[1290,450],"size":[315,106],"flags":{},"order":19,"mode":0,"inputs":[{"name":"sigmas","type":"SIGMAS","link":262},{"name":"sigma_shift","type":"FLOAT","link":259,"widget":{"name":"sigma_shift"}}],"outputs":[{"name":"SIGMAS","type":"SIGMAS","links":[380],"slot_index":0}],"properties":{"Node name for S&R":"LTXVShiftSigmas"},"widgets_values":[1.820833333,true,0.1]},{"id":87,"type":"CLIPTextEncode","pos":[530,290],"size":[210,54],"flags":{},"order":21,"mode":0,"inputs":[{"name":"clip","type":"CLIP","link":353},{"name":"text","type":"STRING","link":362,"widget":{"name":"text"}}],"outputs":[{"name":"CONDITIONING","type":"CONDITIONING","links":[300],"slot_index":0,"shape":3}],"properties":{"Node name for S&R":"CLIPTextEncode"},"widgets_values":["a man is riding a motorcycle on a paved road, the motorcycle is a dark red with a sleek, modern design, and it has a large, round headlight in the center of the video, the man has short, wavy brown hair and a light complexion, he is wearing a black leather jacket, black leather gloves, and blue jeans, with black leather boots, his expression is one of mild surprise or curiosity, with a slight smirk on his face, in the background, there is a gas station with a red awning and a sign reading oil and diner, the gas station is set against a lush green field with tall, leafy trees, the road is paved with a yellow line on the right side, indicating a rural setting, the overall mood of the videograph is slightly out of focus, emphasizing the man's rugged appearance, The scene appears to be from a fantasy movie."]},{"id":128,"type":"LTXVApplySTG","pos":[530,556.3655395507812],"size":[215.36399841308594,82],"flags":{},"order":12,"mode":0,"inputs":[{"name":"model","type":"MODEL","link":296}],"outputs":[{"name":"model","type":"MODEL","links":[303],"slot_index":0}],"properties":{"Node name for S&R":"LTXVApplySTG"},"widgets_values":["attention","14"]},{"id":171,"type":"Note","pos":[530,688.9594116210938],"size":[210,72.68328857421875],"flags":{},"order":0,"mode":0,"inputs":[],"outputs":[],"properties":{},"widgets_values":["Adding more layers will tend to reduce the amount of motion. Start experimenting with layers: 11, 14, and 19"],"color":"#432","bgcolor":"#653"},{"id":36,"type":"SamplerCustomAdvanced","pos":[1720,210],"size":[355.20001220703125,106],"flags":{},"order":23,"mode":0,"inputs":[{"name":"noise","type":"NOISE","link":72},{"name":"guider","type":"GUIDER","link":302,"slot_index":1},{"name":"sampler","type":"SAMPLER","link":70},{"name":"sigmas","type":"SIGMAS","link":380},{"name":"latent_image","type":"LATENT","link":258}],"outputs":[{"name":"output","type":"LATENT","links":[],"slot_index":0,"shape":3},{"name":"denoised_output","type":"LATENT","links":[383],"slot_index":1,"shape":3}],"properties":{"Node name for S&R":"SamplerCustomAdvanced"},"widgets_values":[]},{"id":130,"type":"STGGuider","pos":[1290,610],"size":[310.2327575683594,146],"flags":{},"order":22,"mode":0,"inputs":[{"name":"model","type":"MODEL","link":299},{"name":"positive","type":"CONDITIONING","link":300},{"name":"negative","type":"CONDITIONING","link":301}],"outputs":[{"name":"GUIDER","type":"GUIDER","links":[302],"slot_index":0}],"properties":{"Node name for S&R":"STGGuider"},"widgets_values":[3,1,0.75]},{"id":170,"type":"Note","pos":[1290,800],"size":[309.2375793457031,80.02484130859375],"flags":{},"order":1,"mode":0,"inputs":[],"outputs":[],"properties":{},"widgets_values":["Setting CFG to 1.0 will reduce running time by skipping unconditioned generation. It may also increase the amount of motion and make the scene more erratic."],"color":"#432","bgcolor":"#653"},{"id":173,"type":"Note","pos":[840,710.3784790039062],"size":[343.3447570800781,137.82643127441406],"flags":{},"order":2,"mode":0,"inputs":[],"outputs":[],"properties":{},"widgets_values":["Look at preset field for reasonable range of width x height x frames_numbers parameters.\n\nIncreasing FPS will reduce the overall amount of motion.\n\nImg_compression will add noise to the original image in order to match the training data distribution more closely. Increase it if you are getting little motion in the resulting video."],"color":"#432","bgcolor":"#653"},{"id":174,"type":"Note","pos":[84.26954650878906,1121.198486328125],"size":[313.4017028808594,110.61173248291016],"flags":{},"order":3,"mode":0,"inputs":[],"outputs":[],"properties":{},"widgets_values":["Suggested suffixes:\n\nThe scene is captured in real-life footage.\nThe scene appears to be from a movie or TV show.\nThe scene is computer-generated imagery."],"color":"#432","bgcolor":"#653"},{"id":115,"type":"StringFunction|pysssss","pos":[83.40266418457031,575.637451171875],"size":[319.0057373046875,495.6424255371094],"flags":{},"order":20,"mode":0,"inputs":[{"name":"text_a","type":"STRING","link":400,"widget":{"name":"text_a"},"shape":7}],"outputs":[{"name":"STRING","type":"STRING","links":[362],"slot_index":0}],"properties":{"Node name for S&R":"StringFunction|pysssss"},"widgets_values":["append","no","","","The scene is captured in real-life footage.","A man riding a red motorcycle is seen from the side, riding the motorcycle. The motorcycle is in front of a road with tall, dried grass and trees on both sides of it. The guy is wearing a green jacket and beige pants. He sits on a large, thick tree trunk that's growing straight up. The motorcycle has a black seat with a black seat and black seat. The motorcycle has two black tires, one on the left and one on the right. The road continues on to the right, with a grassy hill covered in dense trees in the background. The sky above is light blue, with no visible cloud coverage.The scene is captured in real-life footage."]},{"id":14,"type":"KSamplerSelect","pos":[1290,340],"size":[315,58],"flags":{},"order":4,"mode":0,"inputs":[],"outputs":[{"name":"SAMPLER","type":"SAMPLER","links":[70],"slot_index":0,"shape":3}],"properties":{"Node name for S&R":"KSamplerSelect"},"widgets_values":["euler_ancestral"]},{"id":103,"type":"LTXVModelConfigurator","pos":[840,380],"size":[347.4894104003906,286],"flags":{},"order":15,"mode":0,"inputs":[{"name":"model","type":"MODEL","link":303},{"name":"vae","type":"VAE","link":255},{"name":"conditioning","type":"IMAGE","link":null,"shape":7},{"name":"initial_latent","type":"LATENT","link":null,"shape":7}],"outputs":[{"name":"model","type":"MODEL","links":[261,299],"slot_index":0},{"name":"latent","type":"LATENT","links":[258],"slot_index":1},{"name":"sigma_shift","type":"FLOAT","links":[259],"slot_index":2},{"name":"image_prompt","type":"STRING","links":[],"slot_index":3}],"properties":{"Node name for S&R":"LTXVModelConfigurator"},"widgets_values":["Custom",768,512,105,25,1,true,29]},{"id":169,"type":"Note","pos":[840,99.53419494628906],"size":[312.3548278808594,58],"flags":{},"order":5,"mode":0,"inputs":[],"outputs":[],"properties":{},"widgets_values":["Alternative scheduler is linear-quadratic; in this case, do not use LTXV Shift Sigmas node"],"color":"#432","bgcolor":"#653"},{"id":114,"type":"String Replace (mtb)","pos":[-152.169921875,988.8927001953125],"size":[210,82],"flags":{},"order":18,"mode":0,"inputs":[{"name":"string","type":"STRING","link":273,"widget":{"name":"string"}}],"outputs":[{"name":"STRING","type":"STRING","links":[400],"slot_index":0}],"properties":{"Node name for S&R":"String Replace (mtb)"},"widgets_values":["","illustration","video"]},{"id":88,"type":"CLIPTextEncode","pos":[530,400],"size":[216.46029663085938,90.9249496459961],"flags":{},"order":13,"mode":0,"inputs":[{"name":"clip","type":"CLIP","link":354}],"outputs":[{"name":"CONDITIONING","type":"CONDITIONING","links":[301],"slot_index":0,"shape":3}],"properties":{"Node name for S&R":"CLIPTextEncode"},"widgets_values":["watermark, logo, text, subtitles, worst quality, inconsistent motion, blurry, jittery, distorted"]},{"id":37,"type":"RandomNoise","pos":[1290,210],"size":[315,82],"flags":{},"order":6,"mode":0,"inputs":[],"outputs":[{"name":"NOISE","type":"NOISE","links":[72],"slot_index":0,"shape":3}],"properties":{"Node name for S&R":"RandomNoise"},"widgets_values":[0,"fixed"]},{"id":175,"type":"Note","pos":[-557.6407470703125,579.795654296875],"size":[383.26470947265625,228.53770446777344],"flags":{},"order":7,"mode":0,"inputs":[],"outputs":[],"properties":{},"widgets_values":["For good results, you should follow the prompting style in the examples here: https://github.com/Lightricks/LTX-Video\n\nYou can use flux prompt enhancer to get the overall description of the scene and tweak it to get the desired results.\n\nThis enhancer doesn't address the kind of motion that happens in the scenes. Consider adding this part manually or using an LLM of your choice."],"color":"#432","bgcolor":"#653"},{"id":60,"type":"VHS_VideoCombine","pos":[1726.3380126953125,504.3022155761719],"size":[559.9261474609375,334],"flags":{},"order":25,"mode":0,"inputs":[{"name":"images","type":"IMAGE","link":121,"shape":7},{"name":"audio","type":"AUDIO","link":null,"shape":7},{"name":"meta_batch","type":"VHS_BatchManager","link":null,"shape":7},{"name":"vae","type":"VAE","link":null,"shape":7}],"outputs":[{"name":"Filenames","type":"VHS_FILENAMES","links":null,"shape":3}],"properties":{"Node name for S&R":"VHS_VideoCombine"},"widgets_values":{"frame_rate":24,"loop_count":0,"filename_prefix":"LTXVideo","format":"video/h264-mp4","pix_fmt":"yuv420p","crf":19,"save_metadata":false,"trim_to_audio":false,"pingpong":false,"save_output":false,"videopreview":{"hidden":false,"paused":false,"params":{"filename":"LTXVideo_00004.mp4","subfolder":"","type":"temp","format":"video/h264-mp4","frame_rate":24,"workflow":"LTXVideo_00004.png","fullpath":"C:\\Users\\Zeev\\Projects\\ComfyUI\\temp\\LTXVideo_00004.mp4"}}}},{"id":8,"type":"VAEDecode","pos":[1723.52490234375,380.15924072265625],"size":[210,46],"flags":{},"order":24,"mode":0,"inputs":[{"name":"samples","type":"LATENT","link":383},{"name":"vae","type":"VAE","link":256,"slot_index":1}],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[121],"slot_index":0}],"properties":{"Node name for S&R":"VAEDecode"},"widgets_values":[]},{"id":185,"type":"FluxPromptEnhance","pos":[-567.9957275390625,866.2244873046875],"size":[400,200],"flags":{},"order":8,"mode":0,"inputs":[],"outputs":[{"name":"STRING","type":"STRING","links":[402],"slot_index":0}],"properties":{"Node name for S&R":"FluxPromptEnhance"},"widgets_values":["A guy riding a red motorcycle on a gorgeous road",1,"fixed"]},{"id":102,"type":"LTXVLoader","pos":[11.242873191833496,200.9393310546875],"size":[412.85296630859375,102],"flags":{},"order":9,"mode":0,"inputs":[],"outputs":[{"name":"model","type":"MODEL","links":[296],"slot_index":0},{"name":"vae","type":"VAE","links":[255,256],"slot_index":1}],"properties":{"Node name for S&R":"LTXVLoader"},"widgets_values":["LTXV/ltx-video-2b-v0.9.1.safetensors","bfloat16"]},{"id":142,"type":"CLIPLoader","pos":[15.098348617553711,360.0001525878906],"size":[404.1546936035156,82],"flags":{},"order":10,"mode":0,"inputs":[],"outputs":[{"name":"CLIP","type":"CLIP","links":[353,354],"slot_index":0}],"properties":{"Node name for S&R":"CLIPLoader"},"widgets_values":["t5-base/model.safetensors","ltxv"]}],"links":[[70,14,0,36,2,"SAMPLER"],[72,37,0,36,0,"NOISE"],[121,8,0,60,0,"IMAGE"],[255,102,1,103,1,"VAE"],[256,102,1,8,1,"VAE"],[258,103,1,36,4,"LATENT"],[259,103,2,104,1,"FLOAT"],[261,103,0,81,0,"MODEL"],[262,81,0,104,0,"SIGMAS"],[272,117,0,113,0,"STRING"],[273,113,0,114,0,"STRING"],[276,112,0,117,0,"STRING"],[296,102,0,128,0,"MODEL"],[299,103,0,130,0,"MODEL"],[300,87,0,130,1,"CONDITIONING"],[301,88,0,130,2,"CONDITIONING"],[302,130,0,36,1,"GUIDER"],[303,128,0,103,0,"MODEL"],[353,142,0,87,0,"CLIP"],[354,142,0,88,0,"CLIP"],[362,115,0,87,1,"STRING"],[380,104,0,36,3,"SIGMAS"],[383,36,1,8,0,"LATENT"],[400,114,0,115,0,"STRING"],[402,185,0,112,0,"STRING"]],"groups":[{"id":2,"title":"Prompt Enhancer","bounding":[-571.6630249023438,498.7752685546875,990.3524780273438,780.5728149414062],"color":"#3f789e","font_size":24,"flags":{}}],"config":{},"extra":{"ds":{"scale":0.5644739300537776,"offset":[39.73691947791329,-155.91489806362983]},"workspace_info":{"id":"tn2wr6gjBJPNV950dOz0l"},"VHS_latentpreview":false,"VHS_latentpreviewrate":0},"version":0.4}

Additional Context

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

ltxvideo-t2v(2).json

@kanghua309
Copy link

same error

@SolanaFox2
Copy link

Same error

@richard-kovacs
Copy link

A fresh Comfyui install solved the issue for me.

@JeffreyBull76
Copy link

JeffreyBull76 commented Jan 8, 2025

Same issue here, really reluctant to do an entire fresh install just to fix this.

^^^^^^^^^^^^^^^^
File "D:\SDInstalls\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1553, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\SDInstalls\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1562, in _call_impl
return forward_call(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: LTXVTransformer3D.forward() missing 1 required positional argument: 'attention_mask'

Prompt executed in 0.15 seconds

@cor-of-org
Copy link

Check you don't have the wrong type set for your CLIP loader.

@flashingtt
Copy link

Same Error

@Kemahudson
Copy link

Same error - clip type is set correctly.

@rottitime
Copy link

same error

@jmm2020
Copy link

jmm2020 commented Feb 1, 2025

Same error message

@zopi4k
Copy link

zopi4k commented Feb 3, 2025

I have the same truble ... I juste change the Clip in the Clip panel to t5xxl_fp8_e4m3fn.safetensors.
Is run for me now.

@bamit99
Copy link

bamit99 commented Feb 4, 2025

Same error message. Tried different Clip but no joy!

@evildoer
Copy link

Some problem Ж(((

@michaellightricks
Copy link
Member

Probably you are not using the model resulting from the configurator node.

@bamit99
Copy link

bamit99 commented Feb 11, 2025

I have the same truble ... I juste change the Clip in the Clip panel to t5xxl_fp8_e4m3fn.safetensors.
Is run for me now.

Please share your workflow if possible!

@YuanXiaoYaoZiZai
Copy link

I just update the comfyui and restart, it's working well! NOTICE that like below:

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests