ComfyUI
ComfyUI copied to clipboard
SamplerCustom the dimesion of at::Tensor must be 4 or lower, but got 5
Expected Behavior
wanted to create ai video from ltx video in comfyui
Actual Behavior
makes the first steps, hangs on samplercustom at 73% and then displays the error
Steps to Reproduce
i have amd gpu(24gb vram) + cpu install comfyui and necessairy plugins like comfyui manager, video plugins, plugins for amd then load the workspace from the youtube video, try generation video by queqe all and you get the error I watched fahrd mirzas video on ltx-video
Debug Logs
# ComfyUI Error Report
## Error Details
- *Node ID:* 72
- *Node Type:* SamplerCustom
- *Exception Type:* RuntimeError
- *Exception Message:* the dimesion of at::Tensor must be 4 or lower, but got 5
## Stack Trace
File "C:\Users\norbe\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 "C:\Users\norbe\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 "C:\Users\norbe\ComfyUI\execution.py", line 169, in _map_node_over_list
process_inputs(input_dict, i)
File "C:\Users\norbe\ComfyUI\execution.py", line 158, in process_inputs
results.append(getattr(obj, func)(**inputs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\norbe\ComfyUI\comfy_extras\nodes_custom_sampler.py", line 476, in sample
samples = comfy.sample.sample_custom(model, noise, cfg, sampler, sigmas, positive, negative, latent_image, noise_mask=noise_mask, callback=callback, disable_pbar=disable_pbar, seed=noise_seed)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\norbe\ComfyUI\comfy\sample.py", line 48, in sample_custom
samples = comfy.samplers.sample(model, noise, positive, negative, cfg, model.load_device, sampler, sigmas, model_options=model.model_options, latent_image=latent_image, denoise_mask=noise_mask, callback=callback, disable_pbar=disable_pbar, seed=seed)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\norbe\ComfyUI\comfy\samplers.py", line 753, in sample
return cfg_guider.sample(noise, latent_image, sampler, sigmas, denoise_mask, callback, disable_pbar, seed)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\norbe\ComfyUI\comfy\samplers.py", line 740, in sample
output = self.inner_sample(noise, latent_image, device, sampler, sigmas, denoise_mask, callback, disable_pbar, seed)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\norbe\ComfyUI\comfy\samplers.py", line 719, in inner_sample
samples = sampler.sample(self, sigmas, extra_args, callback, noise, latent_image, denoise_mask, disable_pbar)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\norbe\ComfyUI\comfy\samplers.py", line 624, in sample
samples = self.sampler_function(model_k, noise, sigmas, extra_args=extra_args, callback=k_callback, disable=disable_pbar, **self.extra_options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\norbe\miniconda3\Lib\site-packages\torch\utils\_contextlib.py", line 116, in decorate_context
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\norbe\ComfyUI\comfy\k_diffusion\sampling.py", line 155, in sample_euler
denoised = model(x, sigma_hat * s_in, **extra_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\norbe\ComfyUI\comfy\samplers.py", line 299, in __call__
out = self.inner_model(x, sigma, model_options=model_options, seed=seed)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\norbe\ComfyUI\comfy\samplers.py", line 706, in __call__
return self.predict_noise(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\norbe\ComfyUI\comfy\samplers.py", line 709, in predict_noise
return sampling_function(self.inner_model, x, timestep, self.conds.get("negative", None), self.conds.get("positive", None), self.cfg, model_options=model_options, seed=seed)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\norbe\ComfyUI\comfy\samplers.py", line 279, in sampling_function
out = calc_cond_batch(model, conds, x, timestep, model_options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\norbe\ComfyUI\comfy\samplers.py", line 228, in calc_cond_batch
output = model.apply_model(input_x, timestep_, **c).chunk(batch_chunks)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\norbe\ComfyUI\comfy\model_base.py", line 145, in apply_model
model_output = self.diffusion_model(xc, t, context=context, control=control, transformer_options=transformer_options, **extra_conds).float()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\norbe\miniconda3\Lib\site-packages\torch\nn\modules\module.py", line 1553, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\norbe\miniconda3\Lib\site-packages\torch\nn\modules\module.py", line 1562, in _call_impl
return forward_call(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\norbe\ComfyUI\comfy\ldm\lightricks\model.py", line 421, in forward
indices_grid = self.patchifier.get_grid(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\norbe\ComfyUI\comfy\ldm\lightricks\symmetric_patchifier.py", line 58, in get_grid
grid = grid.unsqueeze(0).repeat(batch_size, 1, 1, 1, 1)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
## System Information
- *ComfyUI Version:* v0.3.5-13-g8e4118c
- *Arguments:* main.py --directml
- *OS:* nt
- *Python Version:* 3.12.7 | packaged by Anaconda, Inc. | (main, Oct 4 2024, 13:17:27) [MSC v.1929 64 bit (AMD64)]
- *Embedded Python:* false
- *PyTorch Version:* 2.4.1+cpu
## Devices
- *Name:* privateuseone
- *Type:* privateuseone
- *VRAM Total:* 1073741824
- *VRAM Free:* 1073741824
- *Torch VRAM Total:* 1073741824
- *Torch VRAM Free:* 1073741824
## Logs
2024-12-01T17:50:38.961623 - [START] Security scan2024-12-01T17:50:38.961623 -
2024-12-01T17:50:39.669922 - [DONE] Security scan2024-12-01T17:50:39.669922 -
2024-12-01T17:50:39.761650 - ## ComfyUI-Manager: installing dependencies done.2024-12-01T17:50:39.761650 -
2024-12-01T17:50:39.761650 - ** ComfyUI startup time:2024-12-01T17:50:39.761650 - 2024-12-01T17:50:39.761650 - 2024-12-01 17:50:39.7616502024-12-01T17:50:39.761650 -
2024-12-01T17:50:39.787653 - ** Platform:2024-12-01T17:50:39.787653 - 2024-12-01T17:50:39.787653 - Windows2024-12-01T17:50:39.787653 -
2024-12-01T17:50:39.787653 - ** Python version:2024-12-01T17:50:39.787653 - 2024-12-01T17:50:39.787653 - 3.12.7 | packaged by Anaconda, Inc. | (main, Oct 4 2024, 13:17:27) [MSC v.1929 64 bit (AMD64)]2024-12-01T17:50:39.787653 -
2024-12-01T17:50:39.787653 - ** Python executable:2024-12-01T17:50:39.787653 - 2024-12-01T17:50:39.787653 - C:\Users\norbe\miniconda3\python.exe2024-12-01T17:50:39.787653 -
2024-12-01T17:50:39.788649 - ** ComfyUI Path:2024-12-01T17:50:39.788649 - 2024-12-01T17:50:39.788649 - C:\Users\norbe\ComfyUI2024-12-01T17:50:39.788649 -
2024-12-01T17:50:39.788649 - ** Log path:2024-12-01T17:50:39.788649 - 2024-12-01T17:50:39.788649 - C:\Users\norbe\ComfyUI\comfyui.log2024-12-01T17:50:39.788649 -
2024-12-01T17:50:40.629338 -
Prestartup times for custom nodes:2024-12-01T17:50:40.629338 -
2024-12-01T17:50:40.629338 - 1.7 seconds:2024-12-01T17:50:40.629338 - 2024-12-01T17:50:40.629338 - C:\Users\norbe\ComfyUI\custom_nodes\ComfyUI-Manager2024-12-01T17:50:40.629338 -
2024-12-01T17:50:40.630340 -
2024-12-01T17:50:41.770839 - Using directml with device:
2024-12-01T17:50:41.772838 - Total VRAM 1024 MB, total RAM 15466 MB
2024-12-01T17:50:41.772838 - pytorch version: 2.4.1+cpu
2024-12-01T17:50:41.773838 - Set vram state to: NORMAL_VRAM
2024-12-01T17:50:41.773838 - Device: privateuseone
2024-12-01T17:50:42.392640 - Using sub quadratic optimization for cross attention, if you have memory or speed issues try using: --use-split-cross-attention
2024-12-01T17:50:44.233995 - [Prompt Server] web root: C:\Users\norbe\ComfyUI\web
2024-12-01T17:50:45.336598 - Initializing EasyNodes. Auto-registration: True
2024-12-01T17:50:45.659314 - ### Loading: ComfyUI-Manager (V2.54)2024-12-01T17:50:45.659314 -
2024-12-01T17:50:45.754810 - ### ComfyUI Revision: 2876 [8e4118c0] | Released on '2024-12-01'2024-12-01T17:50:45.754810 -
2024-12-01T17:50:45.936718 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json2024-12-01T17:50:45.936718 -
2024-12-01T17:50:45.946224 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json2024-12-01T17:50:45.946224 -
2024-12-01T17:50:45.959225 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/github-stats.json2024-12-01T17:50:45.959225 -
2024-12-01T17:50:45.996623 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json2024-12-01T17:50:45.996623 -
2024-12-01T17:50:46.019622 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json2024-12-01T17:50:46.019622 -
2024-12-01T17:50:46.025620 -
Import times for custom nodes:
2024-12-01T17:50:46.025620 - 0.0 seconds: C:\Users\norbe\ComfyUI\custom_nodes\websocket_image_save.py
2024-12-01T17:50:46.025620 - 0.2 seconds: C:\Users\norbe\ComfyUI\custom_nodes\ComfyUI-VideoHelperSuite
2024-12-01T17:50:46.025620 - 0.2 seconds: C:\Users\norbe\ComfyUI\custom_nodes\ComfyUI-Manager
2024-12-01T17:50:46.025620 - 0.9 seconds: C:\Users\norbe\ComfyUI\custom_nodes\ComfyUI-LTXVideo
2024-12-01T17:50:46.025620 -
2024-12-01T17:50:46.030625 - Starting server
2024-12-01T17:50:46.030625 - To see the GUI go to: http://127.0.0.1:8188
2024-12-01T17:51:05.770946 - FETCH DATA from: C:\Users\norbe\ComfyUI\custom_nodes\ComfyUI-Manager\extension-node-map.json2024-12-01T17:51:05.770946 - 2024-12-01T17:51:05.774947 - [DONE]2024-12-01T17:51:05.774947 -
2024-12-01T17:51:08.247770 - got prompt
2024-12-01T17:51:08.503127 - model weight dtype torch.float32, manual cast: None
2024-12-01T17:51:08.511127 - model_type FLUX
2024-12-01T17:51:19.337647 - no CLIP/text encoder weights in checkpoint, the text encoder model will not be loaded.
2024-12-01T17:51:22.026087 - Requested to load MochiTEModel_
2024-12-01T17:51:22.026087 - Loading 1 new model
2024-12-01T17:51:22.034903 - loaded completely 0.0 9083.38671875 True
2024-12-01T17:51:55.065315 - Requested to load LTXV
2024-12-01T17:51:55.078318 - Loading 1 new model
2024-12-01T17:52:20.412450 - loaded completely 0.0 7335.80517578125 True
2024-12-01T17:52:20.474608 - C:\Users\norbe\ComfyUI\comfy\samplers.py:712: UserWarning: The operator 'aten::count_nonzero.dim_IntList' is not currently supported on the DML backend and will fall back to run on the CPU. This may have performance implications. (Triggered internally at C:\__w\1\s\pytorch-directml-plugin\torch_directml\csrc\dml\dml_cpu_fallback.cpp:17.)
if latent_image is not None and torch.count_nonzero(latent_image) > 0: #Don't shift the empty latent image.
2024-12-01T17:52:20.563114 -
0%| | 0/30 [00:00<?, ?it/s]2024-12-01T17:52:20.587116 - C:\Users\norbe\miniconda3\Lib\site-packages\torch\functional.py:513: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\TensorShape.cpp:3610.)
return _VF.meshgrid(tensors, **kwargs) # type: ignore[attr-defined]
2024-12-01T17:52:20.608620 -
0%| | 0/30 [00:00<?, ?it/s]2024-12-01T17:52:20.608620 -
2024-12-01T17:52:20.671757 - !!! Exception during processing !!! the dimesion of at::Tensor must be 4 or lower, but got 5
2024-12-01T17:52:20.700083 - Traceback (most recent call last):
File "C:\Users\norbe\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 "C:\Users\norbe\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 "C:\Users\norbe\ComfyUI\execution.py", line 169, in _map_node_over_list
process_inputs(input_dict, i)
File "C:\Users\norbe\ComfyUI\execution.py", line 158, in process_inputs
results.append(getattr(obj, func)(**inputs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\norbe\ComfyUI\comfy_extras\nodes_custom_sampler.py", line 476, in sample
samples = comfy.sample.sample_custom(model, noise, cfg, sampler, sigmas, positive, negative, latent_image, noise_mask=noise_mask, callback=callback, disable_pbar=disable_pbar, seed=noise_seed)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\norbe\ComfyUI\comfy\sample.py", line 48, in sample_custom
samples = comfy.samplers.sample(model, noise, positive, negative, cfg, model.load_device, sampler, sigmas, model_options=model.model_options, latent_image=latent_image, denoise_mask=noise_mask, callback=callback, disable_pbar=disable_pbar, seed=seed)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\norbe\ComfyUI\comfy\samplers.py", line 753, in sample
return cfg_guider.sample(noise, latent_image, sampler, sigmas, denoise_mask, callback, disable_pbar, seed)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\norbe\ComfyUI\comfy\samplers.py", line 740, in sample
output = self.inner_sample(noise, latent_image, device, sampler, sigmas, denoise_mask, callback, disable_pbar, seed)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\norbe\ComfyUI\comfy\samplers.py", line 719, in inner_sample
samples = sampler.sample(self, sigmas, extra_args, callback, noise, latent_image, denoise_mask, disable_pbar)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\norbe\ComfyUI\comfy\samplers.py", line 624, in sample
samples = self.sampler_function(model_k, noise, sigmas, extra_args=extra_args, callback=k_callback, disable=disable_pbar, **self.extra_options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\norbe\miniconda3\Lib\site-packages\torch\utils\_contextlib.py", line 116, in decorate_context
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\norbe\ComfyUI\comfy\k_diffusion\sampling.py", line 155, in sample_euler
denoised = model(x, sigma_hat * s_in, **extra_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\norbe\ComfyUI\comfy\samplers.py", line 299, in __call__
out = self.inner_model(x, sigma, model_options=model_options, seed=seed)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\norbe\ComfyUI\comfy\samplers.py", line 706, in __call__
return self.predict_noise(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\norbe\ComfyUI\comfy\samplers.py", line 709, in predict_noise
return sampling_function(self.inner_model, x, timestep, self.conds.get("negative", None), self.conds.get("positive", None), self.cfg, model_options=model_options, seed=seed)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\norbe\ComfyUI\comfy\samplers.py", line 279, in sampling_function
out = calc_cond_batch(model, conds, x, timestep, model_options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\norbe\ComfyUI\comfy\samplers.py", line 228, in calc_cond_batch
output = model.apply_model(input_x, timestep_, **c).chunk(batch_chunks)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\norbe\ComfyUI\comfy\model_base.py", line 145, in apply_model
model_output = self.diffusion_model(xc, t, context=context, control=control, transformer_options=transformer_options, **extra_conds).float()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\norbe\miniconda3\Lib\site-packages\torch\nn\modules\module.py", line 1553, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\norbe\miniconda3\Lib\site-packages\torch\nn\modules\module.py", line 1562, in _call_impl
return forward_call(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\norbe\ComfyUI\comfy\ldm\lightricks\model.py", line 421, in forward
indices_grid = self.patchifier.get_grid(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\norbe\ComfyUI\comfy\ldm\lightricks\symmetric_patchifier.py", line 58, in get_grid
grid = grid.unsqueeze(0).repeat(batch_size, 1, 1, 1, 1)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: the dimesion of at::Tensor must be 4 or lower, but got 5
2024-12-01T17:52:20.717189 - Prompt executed in 72.47 seconds
## Attached Workflow
Please make sure that workflow does not contain any sensitive information such as API keys or passwords.
{"last_node_id":76,"last_link_id":182,"nodes":[{"id":8,"type":"VAEDecode","pos":[1600,30],"size":[210,46],"flags":{},"order":10,"mode":0,"inputs":[{"name":"samples","type":"LATENT","link":171},{"name":"vae","type":"VAE","link":87}],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[106],"slot_index":0}],"properties":{"Node name for S&R":"VAEDecode"},"widgets_values":[]},{"id":69,"type":"LTXVConditioning","pos":[920,60],"size":[223.8660125732422,78],"flags":{},"order":8,"mode":0,"inputs":[{"name":"positive","type":"CONDITIONING","link":169},{"name":"negative","type":"CONDITIONING","link":170}],"outputs":[{"name":"positive","type":"CONDITIONING","links":[166],"slot_index":0},{"name":"negative","type":"CONDITIONING","links":[167],"slot_index":1}],"properties":{"Node name for S&R":"LTXVConditioning"},"widgets_values":[25]},{"id":72,"type":"SamplerCustom","pos":[1201,32],"size":[355.20001220703125,230],"flags":{},"order":9,"mode":0,"inputs":[{"name":"model","type":"MODEL","link":181},{"name":"positive","type":"CONDITIONING","link":166},{"name":"negative","type":"CONDITIONING","link":167},{"name":"sampler","type":"SAMPLER","link":172},{"name":"sigmas","type":"SIGMAS","link":182},{"name":"latent_image","type":"LATENT","link":175}],"outputs":[{"name":"output","type":"LATENT","links":[171],"slot_index":0},{"name":"denoised_output","type":"LATENT","links":null}],"properties":{"Node name for S&R":"SamplerCustom"},"widgets_values":[true,376281259624072,"randomize",3]},{"id":70,"type":"EmptyLTXVLatentVideo","pos":[860,240],"size":[315,130],"flags":{},"order":0,"mode":0,"inputs":[],"outputs":[{"name":"LATENT","type":"LATENT","links":[168,175],"slot_index":0}],"properties":{"Node name for S&R":"EmptyLTXVLatentVideo"},"widgets_values":[768,512,97,1]},{"id":71,"type":"LTXVScheduler","pos":[856,531],"size":[315,154],"flags":{},"order":5,"mode":0,"inputs":[{"name":"latent","type":"LATENT","link":168,"shape":7}],"outputs":[{"name":"SIGMAS","type":"SIGMAS","links":[182],"slot_index":0}],"properties":{"Node name for S&R":"LTXVScheduler"},"widgets_values":[30,2.05,0.95,true,0.1]},{"id":6,"type":"CLIPTextEncode","pos":[420,190],"size":[422.84503173828125,164.31304931640625],"flags":{},"order":6,"mode":0,"inputs":[{"name":"clip","type":"CLIP","link":74}],"outputs":[{"name":"CONDITIONING","type":"CONDITIONING","links":[169],"slot_index":0}],"title":"CLIP Text Encode (Positive Prompt)","properties":{"Node name for S&R":"CLIPTextEncode"},"widgets_values":["A woman with long brown hair and light skin smiles at another woman with long blonde hair. The woman with brown hair wears a black jacket and has a small, barely noticeable mole on her right cheek. The camera angle is a close-up, focused on the woman with brown hair's face. The lighting is warm and natural, likely from the setting sun, casting a soft glow on the scene. The scene appears to be real-life footage."],"color":"#232","bgcolor":"#353"},{"id":7,"type":"CLIPTextEncode","pos":[420,390],"size":[425.27801513671875,180.6060791015625],"flags":{},"order":7,"mode":0,"inputs":[{"name":"clip","type":"CLIP","link":75}],"outputs":[{"name":"CONDITIONING","type":"CONDITIONING","links":[170],"slot_index":0}],"title":"CLIP Text Encode (Negative Prompt)","properties":{"Node name for S&R":"CLIPTextEncode"},"widgets_values":["low quality, worst quality, deformed, distorted, disfigured, motion smear, motion artifacts, fused fingers, bad anatomy, weird hand, ugly"],"color":"#322","bgcolor":"#533"},{"id":73,"type":"KSamplerSelect","pos":[860,420],"size":[315,58],"flags":{},"order":1,"mode":0,"inputs":[],"outputs":[{"name":"SAMPLER","type":"SAMPLER","links":[172]}],"properties":{"Node name for S&R":"KSamplerSelect"},"widgets_values":["euler"]},{"id":76,"type":"Note","pos":[40,350],"size":[360,200],"flags":{},"order":2,"mode":0,"inputs":[],"outputs":[],"properties":{},"widgets_values":["This model needs long descriptive prompts, if the prompt is too short the quality will suffer greatly."],"color":"#432","bgcolor":"#653"},{"id":41,"type":"SaveAnimatedWEBP","pos":[1830,30],"size":[680,610],"flags":{},"order":11,"mode":0,"inputs":[{"name":"images","type":"IMAGE","link":106}],"outputs":[],"properties":{},"widgets_values":["ComfyUI",24,false,90,"default"]},{"id":38,"type":"CLIPLoader","pos":[60,190],"size":[315,82],"flags":{},"order":3,"mode":0,"inputs":[],"outputs":[{"name":"CLIP","type":"CLIP","links":[74,75],"slot_index":0}],"properties":{"Node name for S&R":"CLIPLoader"},"widgets_values":["t5xxl_fp16.safetensors","ltxv"]},{"id":44,"type":"CheckpointLoaderSimple","pos":[520,30],"size":[315,98],"flags":{},"order":4,"mode":0,"inputs":[],"outputs":[{"name":"MODEL","type":"MODEL","links":[181],"slot_index":0},{"name":"CLIP","type":"CLIP","links":null},{"name":"VAE","type":"VAE","links":[87],"slot_index":2}],"properties":{"Node name for S&R":"CheckpointLoaderSimple"},"widgets_values":["ltx-video-2b-v0.9.safetensors"]}],"links":[[74,38,0,6,0,"CLIP"],[75,38,0,7,0,"CLIP"],[87,44,2,8,1,"VAE"],[106,8,0,41,0,"IMAGE"],[166,69,0,72,1,"CONDITIONING"],[167,69,1,72,2,"CONDITIONING"],[168,70,0,71,0,"LATENT"],[169,6,0,69,0,"CONDITIONING"],[170,7,0,69,1,"CONDITIONING"],[171,72,0,8,0,"LATENT"],[172,73,0,72,3,"SAMPLER"],[175,70,0,72,5,"LATENT"],[181,44,0,72,0,"MODEL"],[182,71,0,72,4,"SIGMAS"]],"groups":[],"config":{},"extra":{"ds":{"scale":1,"offset":[-32.22643180622836,238.24402543154497]}},"version":0.4}
## Additional Context
(Please add any additional context or steps to reproduce the error here)
Other
does it have something to do with the latent image