LTX2 Issue - AttributeError: module 'tensorflow' has no attribute 'Tensor'
- Dominant language
- Python
- Stars
- 133k
- Forks
- 15.7k
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 158
Description
### Custom Node Testing
- [x] I have tried disabling custom nodes and the issue persists (see [how to disable custom nodes](https://docs.comfy.org/troubleshooting/custom-node-issues#step-1%3A-test-with-all-custom-nodes-disabled) if you need help)
### Expected Behavior
### Actual Behavior
Getting below error with LTX2 Template work flow. Any idea to resolve?
### Steps to Reproduce
Run the work flow.
### Debug Logs
```powershell
!!! Exception during processing !!! module 'tensorflow' has no attribute 'Tensor'
Traceback (most recent call last):
File "K:\Projects\ComfyUI-Easy-Install_Main\ComfyUI-Easy-Install\ComfyUI\execution.py", line 518, 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 "K:\Projects\ComfyUI-Easy-Install_Main\ComfyUI-Easy-Install\ComfyUI\execution.py", line 329, 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 "K:\Projects\ComfyUI-Easy-Install_Main\ComfyUI-Easy-Install\ComfyUI\custom_nodes\comfyui-lora-manager\py\metadata_collector\metadata_hook.py", line 165, in async_map_node_over_list_with_metadata
results = await original_map_node_over_list(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "K:\Projects\ComfyUI-Easy-Install_Main\ComfyUI-Easy-Install\ComfyUI\execution.py", line 303, in _async_map_node_over_list
await process_inputs(input_dict, i)
File "K:\Projects\ComfyUI-Easy-Install_Main\ComfyUI-Easy-Install\ComfyUI\execution.py", line 291, in process_inputs
result = f(**inputs)
^^^^^^^^^^^
File "K:\Projects\ComfyUI-Easy-Install_Main\ComfyUI-Easy-Install\ComfyUI\comfy_api\internal\__init__.py", line 149, in wrapped_func
return method(locked_class, **inputs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "K:\Projects\ComfyUI-Easy-Install_Main\ComfyUI-Easy-Install\ComfyUI\comfy_api\latest\_io.py", line 1570, in EXECUTE_NORMALIZED
to_return = cls.execute(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "K:\Projects\ComfyUI-Easy-Install_Main\ComfyUI-Easy-Install\ComfyUI\comfy_extras\nodes_lt.py", line 121, in execute
t = vae.encode(encode_pixels)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "K:\Projects\ComfyUI-Easy-Install_Main\ComfyUI-Easy-Install\ComfyUI\comfy\sd.py", line 880, in encode
out = self.first_stage_model.encode(pixels_in).to(self.output_device).float()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "K:\Projects\ComfyUI-Easy-Install_Main\ComfyUI-Easy-Install\ComfyUI\comfy\ldm\lightricks\vae\causal_video_autoencoder.py", line 1085, in encode
means, logvar = torch.chunk(self.encoder(x), 2, dim=1)
^^^^^^^^^^^^^^^
File "K:\Projects\ComfyUI-Easy-Install_Main\ComfyUI-Easy-Install\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1773, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "K:\Projects\ComfyUI-Easy-Install_Main\ComfyUI-Easy-Install\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1784, in _call_impl
return forward_call(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "K:\Projects\ComfyUI-Easy-Install_Main\ComfyUI-Easy-Install\ComfyUI\comfy\ldm\lightricks\vae\causal_video_autoencoder.py", line 211, in forward
sample = patchify(sample, patch_size_hw=self.patch_size, patch_size_t=1)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "K:\Projects\ComfyUI-Easy-Install_Main\ComfyUI-Easy-Install\ComfyUI\comfy\ldm\lightricks\vae\causal_video_autoencoder.py", line 896, in patchify
x = rearrange(
^^^^^^^^^^
File "K:\Projects\ComfyUI-Easy-Install_Main\ComfyUI-Easy-Install\python_embeded\Lib\site-packages\einops\einops.py", line 600, in rearrange
return reduce(tensor, pattern, reduction="rearrange", **axes_lengths)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "K:\Projects\ComfyUI-Easy-Install_Main\ComfyUI-Easy-Install\python_embeded\Lib\site-packages\einops\einops.py", line 527, in reduce
backend = get_backend(tensor)
^^^^^^^^^^^^^^^^^^^
File "K:\Projects\ComfyUI-Easy-Install_Main\ComfyUI-Easy-Install\python_embeded\Lib\site-packages\einops\_backends.py", line 33, in get_backend
if backend.is_appropriate_type(tensor):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "K:\Projects\ComfyUI-Easy-Install_Main\ComfyUI-Easy-Install\python_embeded\Lib\site-packages\einops\_backends.py", line 358, in is_appropriate_type
return isinstance(tensor, (self.tf.Tensor, self.tf.Variable))
^^^^^^^^^^^^^^
AttributeError: module 'tensorflow' has no attribute 'Tensor'
```
### Other
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.