When I changed cross attention from auto to pytorch, my comfyui destop (app) crashes. Cannot reopen or do anything else than a fresh reinstall. the ’ --use-pytorch-cross-attention’ in the launch setting will also result in the same problem.
Changing the cross attention to pytorch is one of the required thing to do in OpenVino node, guided by ComfyUI’s blog.
If I do not do that and only install the OpenVino node, the error would be ‘invalid for input of size’ error when using the node. In other words, I’ve never made the node work.
The hardware im running on is Intel i7 11th with Intel Iris Xe Graphics. Comfyui is installed with CPU mode.
Thanks for your effort! Wish you guys great succeed.
This was the log:
[2025-07-06 00:25:11.636] [info] Adding extra search path custom_nodes C:\Comfyui\custom_nodes
Adding extra search path download_model_base C:\Comfyui\models
[2025-07-06 00:25:11.637] [info] Adding extra search path custom_nodes C:\Users\Khoa\AppData\Local\Programs@comfyorgcomfyui-electron\resources\ComfyUI\custom_nodes
Setting output directory to: C:\Comfyui\output
Setting input directory to: C:\Comfyui\input
Setting user directory to: C:\Comfyui\user
[2025-07-06 00:25:13.195] [info] [START] Security scan
[DONE] Security scan
ComfyUI-Manager: installing dependencies done.
** ComfyUI startup time:
[2025-07-06 00:25:13.197] [info] 2025-07-06 00:25:13.196
** Platform: Windows
** Python version: 3.12.9 (main, Feb 12 2025, 14:52:31) [MSC v.1942 64 bit (AMD64)]
** Python executable: C:\Comfyui.venv\Scripts\python.exe
** ComfyUI Path: C:\Users\Khoa\AppData\Local\Programs@comfyorgcomfyui-electron\resources\ComfyUI
** ComfyUI Base Folder Path:
[2025-07-06 00:25:13.204] [info] C:\Users\Khoa\AppData\Local\Programs@comfyorgcomfyui-electron\resources\ComfyUI
** User directory: C:\Comfyui\user
** ComfyUI-Manager config path: C:\Comfyui\user\default\ComfyUI-Manager\config.ini
** Log path: C:\Comfyui\user\comfyui.log
[2025-07-06 00:25:14.094] [error] [ComfyUI-Manager] Failed to restore comfyui-frontend-package
expected str, bytes or os.PathLike object, not NoneType
[2025-07-06 00:25:14.095] [info]
Prestartup times for custom nodes:
2.5 seconds: C:\Users\Khoa\AppData\Local\Programs@comfyorgcomfyui-electron\resources\ComfyUI\custom_nodes\ComfyUI-Manager
[2025-07-06 00:25:15.436] [info] Checkpoint files will always be loaded safely.
[2025-07-06 00:25:15.450] [error] Traceback (most recent call last):
File “C:\Users\Khoa\AppData\Local\Programs@comfyorgcomfyui-electron\resources\ComfyUI\main.py”, line 129, in
[2025-07-06 00:25:15.452] [error] import execution
File “C:\Users\Khoa\AppData\Local\Programs@comfyorgcomfyui-electron\resources\ComfyUI\execution.py”, line 14, in
import comfy.model_management
File “C:\Users\Khoa\AppData\Local\Programs@comfyorgcomfyui-electron\resources\ComfyUI\comfy\model_management.py”, line 221, in
total_vram = get_total_memory(get_torch_device()) / (1024 * 1024)
[2025-07-06 00:25:15.453] [error]
[2025-07-06 00:25:15.454] [error] ^^^^^^^^^^^^^^^^^^
[2025-07-06 00:25:15.454] [error] File “C:\Users\Khoa\AppData\Local\Programs@comfyorgcomfyui-electron\resources\ComfyUI\comfy\model_management.py”, line 172, in get_torch_device
return torch.device(torch.cuda.current_device())
[2025-07-06 00:25:15.456] [error] ^^^^^^^^^^^
[2025-07-06 00:25:15.456] [error] ^^^^^^^^^^^^^^^^
[2025-07-06 00:25:15.457] [error] File “C:\Comfyui.venv\Lib\site-packages\torch\cuda_init_.py”, line 971, in current_device
[2025-07-06 00:25:15.458] [error] lazy_init()
File "C:\Comfyui.venv\Lib\site-packages\torch\cuda_init.py", line 310, in _lazy_init
raise AssertionError(“Torch not compiled with CUDA enabled”)
[2025-07-06 00:25:15.460] [error] AssertionError: Torch not compiled with CUDA enabled