Open 4lt3r3go opened 3 months ago
you need to clone this repo to custom_nodes like any other custom_nodes, man
is what i did man
I have the same problem.
i managed to go through by install a clean comfy on another folder. but now i have this problem
I have the same problem
i managed to go through by install a clean comfy on another folder. but now i have this problem
This one was caused by the mask_template.png file not downloading due to some git config issue, it's been fixed but you probably need to re-install the node pack.
I have this problem
Error occurred when executing LivePortraitProcess:
Torch not compiled with CUDA enabled
File "/Users/po/Documents/ComfyUI/execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/po/Documents/ComfyUI/execution.py", line 81, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/po/Documents/ComfyUI/execution.py", line 74, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/po/Documents/ComfyUI/custom_nodes/ComfyUI-LivePortraitKJ/nodes.py", line 260, in process
cropped_frames, full_frame = pipeline.execute(img, driving_images_np)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/po/Documents/ComfyUI/custom_nodes/ComfyUI-LivePortraitKJ/liveportrait/live_portrait_pipeline.py", line 50, in execute
I_s = self.live_portrait_wrapper.prepare_source(img_crop_256x256)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/po/Documents/ComfyUI/custom_nodes/ComfyUI-LivePortraitKJ/liveportrait/live_portrait_wrapper.py", line 60, in prepare_source
x = x.cuda(self.device_id)
^^^^^^^^^^^^^^^^^^^^^^
File "/Users/po/miniconda3/lib/python3.11/site-packages/torch/cuda/__init__.py", line 293, in _lazy_init
raise AssertionError("Torch not compiled with CUDA enabled")
I get this error:
When loading the graph, the following node types were not found:
DownloadAndLoadLivePortraitModels
LivePortraitProcess
Nodes that have failed to load will show as red on the graph.
I've git cloned the repo into the custom nodes folder, but it's not detecting the nodes.
and when using the "Try Fix" button in the comfyui manager, I get this in the console:
Traceback (most recent call last):
File "C:\Users\ok\Downloads\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1890, in load_custom_node
module_spec.loader.exec_module(module)
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "C:\Users\ok\Downloads\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-LivePortraitKJ\__init__.py", line 1, in <module>
from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
File "C:\Users\ok\Downloads\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-LivePortraitKJ\nodes.py", line 12, in <module>
from .liveportrait.utils.cropper import Cropper
File "C:\Users\ok\Downloads\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-LivePortraitKJ\liveportrait\utils\cropper.py", line 9, in <module>
from .landmark_runner import LandmarkRunner
File "C:\Users\ok\Downloads\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-LivePortraitKJ\liveportrait\utils\landmark_runner.py", line 7, in <module>
import onnxruntime
File "C:\Users\ok\Downloads\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\python_embeded\Lib\site-packages\onnxruntime\__init__.py", line 57, in <module>
raise import_capi_exception
File "C:\Users\ok\Downloads\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\python_embeded\Lib\site-packages\onnxruntime\__init__.py", line 23, in <module>
from onnxruntime.capi._pybind_state import ExecutionMode # noqa: F401
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ok\Downloads\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\python_embeded\Lib\site-packages\onnxruntime\capi\_pybind_state.py", line 32, in <module>
from .onnxruntime_pybind11_state import * # noqa
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ImportError: DLL load failed while importing onnxruntime_pybind11_state: A dynamic link library (DLL) initialization routine failed.
Cannot import C:\Users\ok\Downloads\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-LivePortraitKJ module for custom nodes: DLL load failed while importing onnxruntime_pybind11_state: A dynamic link library (DLL) initialization routine failed.
### Loading: ComfyUI-Manager (V2.38)
### ComfyUI Revision: 2250 [5eb98f00] | Released on '2024-06-13'
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/github-stats.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json
Traceback (most recent call last):
File "C:\Users\ok\Downloads\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1890, in load_custom_node
module_spec.loader.exec_module(module)
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "C:\Users\ok\Downloads\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node\__init__.py", line 23, in <module>
from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
File "C:\Users\ok\Downloads\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node\nodes.py", line 15, in <module>
from insightface.app.common import Face
ModuleNotFoundError: No module named 'insightface'
Cannot import C:\Users\ok\Downloads\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node module for custom nodes: No module named 'insightface'
Import times for custom nodes:
0.0 seconds: C:\Users\ok\Downloads\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\websocket_image_save.py
0.0 seconds: C:\Users\ok\Downloads\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-ODE
0.4 seconds: C:\Users\ok\Downloads\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager
0.9 seconds: C:\Users\ok\Downloads\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-KJNodes
1.1 seconds (IMPORT FAILED): C:\Users\ok\Downloads\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node
1.1 seconds: C:\Users\ok\Downloads\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-VideoHelperSuite
2.8 seconds (IMPORT FAILED): C:\Users\ok\Downloads\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-LivePortraitKJ
Starting server
To see the GUI go to: http://127.0.0.1:8188
FETCH DATA from: C:\Users\ok\Downloads\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager\extension-node-map.json [DONE]
I get this error:
When loading the graph, the following node types were not found: DownloadAndLoadLivePortraitModels LivePortraitProcess Nodes that have failed to load will show as red on the graph.
I've git cloned the repo into the custom nodes folder, but it's not detecting the nodes.
and when using the "Try Fix" button in the comfyui manager, I get this in the console:
Traceback (most recent call last): File "C:\Users\ok\Downloads\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1890, in load_custom_node module_spec.loader.exec_module(module) File "<frozen importlib._bootstrap_external>", line 940, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "C:\Users\ok\Downloads\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-LivePortraitKJ\__init__.py", line 1, in <module> from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS File "C:\Users\ok\Downloads\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-LivePortraitKJ\nodes.py", line 12, in <module> from .liveportrait.utils.cropper import Cropper File "C:\Users\ok\Downloads\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-LivePortraitKJ\liveportrait\utils\cropper.py", line 9, in <module> from .landmark_runner import LandmarkRunner File "C:\Users\ok\Downloads\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-LivePortraitKJ\liveportrait\utils\landmark_runner.py", line 7, in <module> import onnxruntime File "C:\Users\ok\Downloads\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\python_embeded\Lib\site-packages\onnxruntime\__init__.py", line 57, in <module> raise import_capi_exception File "C:\Users\ok\Downloads\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\python_embeded\Lib\site-packages\onnxruntime\__init__.py", line 23, in <module> from onnxruntime.capi._pybind_state import ExecutionMode # noqa: F401 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\ok\Downloads\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\python_embeded\Lib\site-packages\onnxruntime\capi\_pybind_state.py", line 32, in <module> from .onnxruntime_pybind11_state import * # noqa ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ImportError: DLL load failed while importing onnxruntime_pybind11_state: A dynamic link library (DLL) initialization routine failed. Cannot import C:\Users\ok\Downloads\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-LivePortraitKJ module for custom nodes: DLL load failed while importing onnxruntime_pybind11_state: A dynamic link library (DLL) initialization routine failed. ### Loading: ComfyUI-Manager (V2.38) ### ComfyUI Revision: 2250 [5eb98f00] | Released on '2024-06-13' [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/github-stats.json [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json Traceback (most recent call last): File "C:\Users\ok\Downloads\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1890, in load_custom_node module_spec.loader.exec_module(module) File "<frozen importlib._bootstrap_external>", line 940, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "C:\Users\ok\Downloads\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node\__init__.py", line 23, in <module> from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS File "C:\Users\ok\Downloads\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node\nodes.py", line 15, in <module> from insightface.app.common import Face ModuleNotFoundError: No module named 'insightface' Cannot import C:\Users\ok\Downloads\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node module for custom nodes: No module named 'insightface' Import times for custom nodes: 0.0 seconds: C:\Users\ok\Downloads\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\websocket_image_save.py 0.0 seconds: C:\Users\ok\Downloads\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-ODE 0.4 seconds: C:\Users\ok\Downloads\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager 0.9 seconds: C:\Users\ok\Downloads\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-KJNodes 1.1 seconds (IMPORT FAILED): C:\Users\ok\Downloads\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node 1.1 seconds: C:\Users\ok\Downloads\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-VideoHelperSuite 2.8 seconds (IMPORT FAILED): C:\Users\ok\Downloads\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-LivePortraitKJ Starting server To see the GUI go to: http://127.0.0.1:8188 FETCH DATA from: C:\Users\ok\Downloads\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager\extension-node-map.json [DONE]
You are missing insightface -module, check the readme for info about that.
Tagging on here...
I seem to have several missing nodes. Insightface is installed, git repo cloned to custom_nodes. (on macOS)
Does any of this need to be mentioned in the install instructions, am I missing a step here?
Traceback (most recent call last):
File "/ComfyUI/nodes.py", line 1907, in load_custom_node
module_spec.loader.exec_module(module)
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/ComfyUI/custom_nodes/ComfyUI-LivePortraitKJ/__init__.py", line 1, in <module>
from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
File "/ComfyUI/custom_nodes/ComfyUI-LivePortraitKJ/nodes.py", line 11, in <module>
from .liveportrait.live_portrait_pipeline import LivePortraitPipeline
File "/ComfyUI/custom_nodes/ComfyUI-LivePortraitKJ/liveportrait/live_portrait_pipeline.py", line 10, in <module>
from rich.progress import track
ModuleNotFoundError: No module named 'rich'
Cannot import /ComfyUI/custom_nodes/ComfyUI-LivePortraitKJ module for custom nodes: No module named 'rich'
Adding /ComfyUI/custom_nodes to sys.path
Could not find efficiency nodes
Could not find ControlNetPreprocessors nodes
[Errno 2] No such file or directory: '/ComfyUI/custom_nodes/ComfyUI-Advanced-ControlNet/control/control.py/__init__.py'
Could not find AnimateDiff nodes
Could not find IPAdapter nodes
Could not find VideoHelperSuite nodes
Import times for custom nodes:
0.0 seconds: /ComfyUI/custom_nodes/websocket_image_save.py
0.0 seconds: /ComfyUI/custom_nodes/sdxl_prompt_styler
0.0 seconds: /ComfyUI/custom_nodes/sd-perturbed-attention
0.0 seconds: /ComfyUI/custom_nodes/ComfyUI-Eagle-PNGInfo
0.0 seconds: /ComfyUI/custom_nodes/comfyui-various
0.0 seconds (IMPORT FAILED): /ComfyUI/custom_nodes/ComfyUI-LivePortraitKJ
0.0 seconds: /ComfyUI/custom_nodes/Derfuu_ComfyUI_ModdedNodes
0.0 seconds: /ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale
0.0 seconds: /ComfyUI/custom_nodes/ComfyUI-Advanced-ControlNet
0.1 seconds: /ComfyUI/custom_nodes/comfyui-art-venture
0.1 seconds: /ComfyUI/custom_nodes/ComfyUI-Manager
0.1 seconds: /ComfyUI/custom_nodes/ComfyUI-Easy-Use
0.2 seconds: /ComfyUI/custom_nodes/ComfyUI-DDColor
Starting server
To see the GUI go to: http://127.0.0.1:8188
Tagging on here...
I seem to have several missing nodes. Insightface is installed, git repo cloned to custom_nodes. (on macOS)
Does any of this need to be mentioned in the install instructions, am I missing a step here?
Traceback (most recent call last): File "/ComfyUI/nodes.py", line 1907, in load_custom_node module_spec.loader.exec_module(module) File "<frozen importlib._bootstrap_external>", line 940, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "/ComfyUI/custom_nodes/ComfyUI-LivePortraitKJ/__init__.py", line 1, in <module> from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS File "/ComfyUI/custom_nodes/ComfyUI-LivePortraitKJ/nodes.py", line 11, in <module> from .liveportrait.live_portrait_pipeline import LivePortraitPipeline File "/ComfyUI/custom_nodes/ComfyUI-LivePortraitKJ/liveportrait/live_portrait_pipeline.py", line 10, in <module> from rich.progress import track ModuleNotFoundError: No module named 'rich' Cannot import /ComfyUI/custom_nodes/ComfyUI-LivePortraitKJ module for custom nodes: No module named 'rich' Adding /ComfyUI/custom_nodes to sys.path Could not find efficiency nodes Could not find ControlNetPreprocessors nodes [Errno 2] No such file or directory: '/ComfyUI/custom_nodes/ComfyUI-Advanced-ControlNet/control/control.py/__init__.py' Could not find AnimateDiff nodes Could not find IPAdapter nodes Could not find VideoHelperSuite nodes Import times for custom nodes: 0.0 seconds: /ComfyUI/custom_nodes/websocket_image_save.py 0.0 seconds: /ComfyUI/custom_nodes/sdxl_prompt_styler 0.0 seconds: /ComfyUI/custom_nodes/sd-perturbed-attention 0.0 seconds: /ComfyUI/custom_nodes/ComfyUI-Eagle-PNGInfo 0.0 seconds: /ComfyUI/custom_nodes/comfyui-various 0.0 seconds (IMPORT FAILED): /ComfyUI/custom_nodes/ComfyUI-LivePortraitKJ 0.0 seconds: /ComfyUI/custom_nodes/Derfuu_ComfyUI_ModdedNodes 0.0 seconds: /ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale 0.0 seconds: /ComfyUI/custom_nodes/ComfyUI-Advanced-ControlNet 0.1 seconds: /ComfyUI/custom_nodes/comfyui-art-venture 0.1 seconds: /ComfyUI/custom_nodes/ComfyUI-Manager 0.1 seconds: /ComfyUI/custom_nodes/ComfyUI-Easy-Use 0.2 seconds: /ComfyUI/custom_nodes/ComfyUI-DDColor Starting server To see the GUI go to: http://127.0.0.1:8188
Well you're missing the basic requirements.txt installation, the Manager should do that automatically.
Missing package in that error is 'rich'
Tagging on here... I seem to have several missing nodes. Insightface is installed, git repo cloned to custom_nodes. (on macOS) Does any of this need to be mentioned in the install instructions, am I missing a step here?
Traceback (most recent call last): File "/ComfyUI/nodes.py", line 1907, in load_custom_node module_spec.loader.exec_module(module) File "<frozen importlib._bootstrap_external>", line 940, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "/ComfyUI/custom_nodes/ComfyUI-LivePortraitKJ/__init__.py", line 1, in <module> from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS File "/ComfyUI/custom_nodes/ComfyUI-LivePortraitKJ/nodes.py", line 11, in <module> from .liveportrait.live_portrait_pipeline import LivePortraitPipeline File "/ComfyUI/custom_nodes/ComfyUI-LivePortraitKJ/liveportrait/live_portrait_pipeline.py", line 10, in <module> from rich.progress import track ModuleNotFoundError: No module named 'rich' Cannot import /ComfyUI/custom_nodes/ComfyUI-LivePortraitKJ module for custom nodes: No module named 'rich' Adding /ComfyUI/custom_nodes to sys.path Could not find efficiency nodes Could not find ControlNetPreprocessors nodes [Errno 2] No such file or directory: '/ComfyUI/custom_nodes/ComfyUI-Advanced-ControlNet/control/control.py/__init__.py' Could not find AnimateDiff nodes Could not find IPAdapter nodes Could not find VideoHelperSuite nodes Import times for custom nodes: 0.0 seconds: /ComfyUI/custom_nodes/websocket_image_save.py 0.0 seconds: /ComfyUI/custom_nodes/sdxl_prompt_styler 0.0 seconds: /ComfyUI/custom_nodes/sd-perturbed-attention 0.0 seconds: /ComfyUI/custom_nodes/ComfyUI-Eagle-PNGInfo 0.0 seconds: /ComfyUI/custom_nodes/comfyui-various 0.0 seconds (IMPORT FAILED): /ComfyUI/custom_nodes/ComfyUI-LivePortraitKJ 0.0 seconds: /ComfyUI/custom_nodes/Derfuu_ComfyUI_ModdedNodes 0.0 seconds: /ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale 0.0 seconds: /ComfyUI/custom_nodes/ComfyUI-Advanced-ControlNet 0.1 seconds: /ComfyUI/custom_nodes/comfyui-art-venture 0.1 seconds: /ComfyUI/custom_nodes/ComfyUI-Manager 0.1 seconds: /ComfyUI/custom_nodes/ComfyUI-Easy-Use 0.2 seconds: /ComfyUI/custom_nodes/ComfyUI-DDColor Starting server To see the GUI go to: http://127.0.0.1:8188
Well you're missing the basic requirements.txt installation, the Manager should do that automatically.
Missing package in that error is 'rich'
I figured it be something along those lines. When I install from the requirements.txt manually I get this though:
Collecting rich (from -r requirements.txt (line 4))
Using cached rich-13.7.1-py3-none-any.whl.metadata (18 kB)
ERROR: Could not find a version that satisfies the requirement onnxruntime-gpu (from versions: none)
ERROR: No matching distribution found for onnxruntime-gpu
Is it simply incompatible with macOS?
Tagging on here... I seem to have several missing nodes. Insightface is installed, git repo cloned to custom_nodes. (on macOS) Does any of this need to be mentioned in the install instructions, am I missing a step here?
Traceback (most recent call last): File "/ComfyUI/nodes.py", line 1907, in load_custom_node module_spec.loader.exec_module(module) File "<frozen importlib._bootstrap_external>", line 940, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "/ComfyUI/custom_nodes/ComfyUI-LivePortraitKJ/__init__.py", line 1, in <module> from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS File "/ComfyUI/custom_nodes/ComfyUI-LivePortraitKJ/nodes.py", line 11, in <module> from .liveportrait.live_portrait_pipeline import LivePortraitPipeline File "/ComfyUI/custom_nodes/ComfyUI-LivePortraitKJ/liveportrait/live_portrait_pipeline.py", line 10, in <module> from rich.progress import track ModuleNotFoundError: No module named 'rich' Cannot import /ComfyUI/custom_nodes/ComfyUI-LivePortraitKJ module for custom nodes: No module named 'rich' Adding /ComfyUI/custom_nodes to sys.path Could not find efficiency nodes Could not find ControlNetPreprocessors nodes [Errno 2] No such file or directory: '/ComfyUI/custom_nodes/ComfyUI-Advanced-ControlNet/control/control.py/__init__.py' Could not find AnimateDiff nodes Could not find IPAdapter nodes Could not find VideoHelperSuite nodes Import times for custom nodes: 0.0 seconds: /ComfyUI/custom_nodes/websocket_image_save.py 0.0 seconds: /ComfyUI/custom_nodes/sdxl_prompt_styler 0.0 seconds: /ComfyUI/custom_nodes/sd-perturbed-attention 0.0 seconds: /ComfyUI/custom_nodes/ComfyUI-Eagle-PNGInfo 0.0 seconds: /ComfyUI/custom_nodes/comfyui-various 0.0 seconds (IMPORT FAILED): /ComfyUI/custom_nodes/ComfyUI-LivePortraitKJ 0.0 seconds: /ComfyUI/custom_nodes/Derfuu_ComfyUI_ModdedNodes 0.0 seconds: /ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale 0.0 seconds: /ComfyUI/custom_nodes/ComfyUI-Advanced-ControlNet 0.1 seconds: /ComfyUI/custom_nodes/comfyui-art-venture 0.1 seconds: /ComfyUI/custom_nodes/ComfyUI-Manager 0.1 seconds: /ComfyUI/custom_nodes/ComfyUI-Easy-Use 0.2 seconds: /ComfyUI/custom_nodes/ComfyUI-DDColor Starting server To see the GUI go to: http://127.0.0.1:8188
Well you're missing the basic requirements.txt installation, the Manager should do that automatically. Missing package in that error is 'rich'
I figured it be something along those lines. When I install from the requirements.txt manually I get this though:
Collecting rich (from -r requirements.txt (line 4)) Using cached rich-13.7.1-py3-none-any.whl.metadata (18 kB) ERROR: Could not find a version that satisfies the requirement onnxruntime-gpu (from versions: none) ERROR: No matching distribution found for onnxruntime-gpu
Is it simply incompatible with macOS?
I don't know as I don't have a mac, but maybe try just install 'onnxruntime' which is the cpu version.
@philippjbauer you can install the regular onnx but it will be cpu, for arm Mac's you have this one:
https://github.com/cansik/onnxruntime-silicon
we could make the requirement aware of that and only try to install the right lib for each platform @kijai
I've gotten a fresh install of comfyui portable, installed insightface into the python_embeded, then I'd installed the nodes needed by using comfyui manager when it alerts for missing nodes. The other nodes all install fine, but it keeps getting hung up on trying to install DownloadAndLoadLivePortraitModels and LivePortraitProcess. No matter how many times I retry, either through uninstalling and reinstalling or by "try update" of the node Comfyui-LivePortraitKJ, it just doesn't work and the nodes remain missing even though it is there in my custom_nodes folder.
I followed this tutorial here: https://www.youtube.com/watch?v=iMJJRKkTZo0
The rest of it is fine. It's just the liveportraitkj bit that seems not to get working.
I'm on windows 10, with a 980ti 6gb.
Same here... I got this... it says i'm instaling a mac version... but I am not on a mac... and I am installing it from the repository AND from the manager too!
` File "D:\COMFY\ComfyUI\custom_nodes\ComfyUI-LivePortraitKJ__init.py", line 1, in
Cannot import D:\COMFY\ComfyUI\custom_nodes\ComfyUI-LivePortraitKJ module for custom nodes: DLL load failed while importing onnxruntime_pybind11_state: A dynamic link library (DLL) initialization routine failed.
Traceback (most recent call last):
File "D:\COMFY\ComfyUI\nodes.py", line 1906, in load_custom_node
module_spec.loader.exec_module(module)
File "
Cannot import D:\COMFY\ComfyUI\custom_nodes\ComfyUI-LivePortraitKJ-MPS module for custom nodes: You are trying to use a Apple Silicon node on a Windows or Linux device. Download the original node from https://github.com/kijai/ComfyUI-LivePortraitKJ.`
Same here... I got this... it says i'm instaling a mac version... but I am not on a mac... and I am installing it from the repository AND from the manager too!
` File "D:\COMFY\ComfyUI\custom_nodes\ComfyUI-LivePortraitKJinit.py", line 1, in from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS File "D:\COMFY\ComfyUI\custom_nodes\ComfyUI-LivePortraitKJ\nodes.py", line 11, in from .liveportrait.utils.cropper import Cropper File "D:\COMFY\ComfyUI\custom_nodes\ComfyUI-LivePortraitKJ\liveportrait\utils\cropper.py", line 9, in from .landmark_runner import LandmarkRunner File "D:\COMFY\ComfyUI\custom_nodes\ComfyUI-LivePortraitKJ\liveportrait\utils\landmark_runner.py", line 7, in import onnxruntime File "D:\COMFY\python_embeded\Lib\site-packages\onnxruntimeinit.py", line 57, in raise import_capi_exception File "D:\COMFY\python_embeded\Lib\site-packages\onnxruntimeinit.py", line 23, in from onnxruntime.capi._pybind_state import ExecutionMode # noqa: F401 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\COMFY\python_embeded\Lib\site-packages\onnxruntime\capi_pybind_state.py", line 32, in from .onnxruntime_pybind11_state import * # noqa ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ImportError: DLL load failed while importing onnxruntime_pybind11_state: A dynamic link library (DLL) initialization routine failed.
Cannot import D:\COMFY\ComfyUI\custom_nodes\ComfyUI-LivePortraitKJ module for custom nodes: DLL load failed while importing onnxruntime_pybind11_state: A dynamic link library (DLL) initialization routine failed. Traceback (most recent call last): File "D:\COMFY\ComfyUI\nodes.py", line 1906, in load_custom_node module_spec.loader.exec_module(module) File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "D:\COMFY\ComfyUI\custom_nodes\ComfyUI-LivePortraitKJ-MPSinit.py", line 1, in from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS File "D:\COMFY\ComfyUI\custom_nodes\ComfyUI-LivePortraitKJ-MPS\nodes.py", line 8, in assert torch.backends.mps.is_available(), "You are trying to use a Apple Silicon node on a Windows or Linux device. Download the original node from https://github.com/kijai/ComfyUI-LivePortraitKJ." AssertionError: You are trying to use a Apple Silicon node on a Windows or Linux device. Download the original node from https://github.com/kijai/ComfyUI-LivePortraitKJ.
Cannot import D:\COMFY\ComfyUI\custom_nodes\ComfyUI-LivePortraitKJ-MPS module for custom nodes: You are trying to use a Apple Silicon node on a Windows or Linux device. Download the original node from https://github.com/kijai/ComfyUI-LivePortraitKJ.`
MPS = mac version, install the normal one.
I have insightface installed and working for ReActor in forge, working with root-unleashed, but had the two red nodes and ModuleNotFoundError: No module named 'insightface' 0.0 seconds (IMPORT FAILED): /ComfyUI/custom_nodes/ComfyUI-LivePortraitKJ
I found a youtube video that sort of had instructions for the non-portable ComfyUI -- mine is through Stability Matrix. His instructions almost got me there but I had to run the commands twice and was successful somehow. I dont know anything about python but I'm pretty sure this is what I had done (you need insightface-0.7.3-cp310-cp310-win_amd64.whl or python appropriate version):
cmd in comfyui root folder: venv/scripts/activate call Call X:\ComfyUI\Scripts\Activate pip install "X:\ComfyUI\insightface-0.7.3-cp310-cp310-win_amd64.whl" onnxruntime --force-reinstall
Ultimately, I ended up with an insightface folder sitting in the venv folder and now everything works. I don't understand the syntax there and maybe something might be redundant. but it's working now.
I couldnt get cuda to work until after i uninstalled all the other onxxruntimes and followed this guy's instructions off of reddit(https://www.reddit.com/r/comfyui/comments/1842k7j/how_to_resolve_dwposeonnxruntime_warning_or_how/), then reinstalled insightface with the above instructions, after uninstalling onnx, onnxruntime, and onnxruntime-gpu, and then reinstalled onnxruntime-gpu like the reddit instructions --- and then finally pip install "X:\ComfyUI\insightface-0.7.3-cp310-cp310-win_amd64.whl" onnxruntime-gpu --force-reinstall in the virtual environment.
blah
I looked through the console after trying to fix the missing nodes from the comfyui manager and I noticed that it says:
Update custom node 'ComfyUI-LivePortraitKJ'
Update: ['https://github.com/kijai/ComfyUI-LivePortraitKJ']
CUSTOM NODE PULL: None
Update was successful.
After restarting ComfyUI, please refresh the browser.
Is there something going wrong where it's not actually pulling the nodes even after trying to fix it? Is there some line somewhere that's a mismatch?
Generally you should be looking for "ModuleNotFoundError" errors and such from the console, which should point to what python package is missing.
I haven't yet found anything like a ModuleNotFoundError, but in my comfyui.log, it shows this:
## ComfyUI-Manager: installing dependencies done.
[2024-07-11 10:02] ** ComfyUI startup time: 2024-07-11 10:02:51.507678
[2024-07-11 10:02] ** Platform: Windows
[2024-07-11 10:02] ** Python version: 3.11.8 (tags/v3.11.8:db85d51, Feb 6 2024, 22:03:32) [MSC v.1937 64 bit (AMD64)]
[2024-07-11 10:02] ** Python executable: C:\Comfyui\python_embeded\python.exe
[2024-07-11 10:02] ** ComfyUI Path: C:\Comfyui\ComfyUI
[2024-07-11 10:02] ** Log path: C:\Comfyui\comfyui.log
[2024-07-11 10:02]
#######################################################################
[2024-07-11 10:02] [ComfyUI-Manager] Starting dependency installation/(de)activation for the extension
[2024-07-11 10:02]
[2024-07-11 10:02] Install: pip packages for 'C:\Comfyui\ComfyUI\custom_nodes\ComfyUI-LivePortraitKJ'
[2024-07-11 10:02]
[ComfyUI-Manager] Startup script completed.
[2024-07-11 10:02] #######################################################################
[2024-07-11 10:02]
[2024-07-11 10:02]
Prestartup times for custom nodes:
[2024-07-11 10:02] 4.0 seconds: C:\Comfyui\ComfyUI\custom_nodes\ComfyUI-Manager
[2024-07-11 10:02]
Traceback (most recent call last):
File "C:\Comfyui\ComfyUI\nodes.py", line 1906, in load_custom_node
module_spec.loader.exec_module(module)
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "C:\Comfyui\ComfyUI\custom_nodes\ComfyUI-LivePortraitKJ\__init__.py", line 1, in <module>
from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
File "C:\Comfyui\ComfyUI\custom_nodes\ComfyUI-LivePortraitKJ\nodes.py", line 11, in <module>
from .liveportrait.utils.cropper import Cropper
File "C:\Comfyui\ComfyUI\custom_nodes\ComfyUI-LivePortraitKJ\liveportrait\utils\cropper.py", line 9, in <module>
from .landmark_runner import LandmarkRunner
File "C:\Comfyui\ComfyUI\custom_nodes\ComfyUI-LivePortraitKJ\liveportrait\utils\landmark_runner.py", line 7, in <module>
import onnxruntime
File "C:\Comfyui\python_embeded\Lib\site-packages\onnxruntime\__init__.py", line 57, in <module>
raise import_capi_exception
File "C:\Comfyui\python_embeded\Lib\site-packages\onnxruntime\__init__.py", line 23, in <module>
from onnxruntime.capi._pybind_state import ExecutionMode # noqa: F401
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Comfyui\python_embeded\Lib\site-packages\onnxruntime\capi\_pybind_state.py", line 32, in <module>
from .onnxruntime_pybind11_state import * # noqa
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ImportError: DLL load failed while importing onnxruntime_pybind11_state: A dynamic link library (DLL) initialization routine failed.
[2024-07-11 10:03] Cannot import C:\Comfyui\ComfyUI\custom_nodes\ComfyUI-LivePortraitKJ module for custom nodes: DLL load failed while importing onnxruntime_pybind11_state: A dynamic link library (DLL) initialization routine failed.
[2024-07-11 10:03] ### Loading: ComfyUI-Manager (V2.46.2)
[2024-07-11 10:03] ### ComfyUI Revision: 2310 [521421f5] | Released on '2024-06-30'
[2024-07-11 10:03] [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json
[2024-07-11 10:03] [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json
[2024-07-11 10:03] [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/github-stats.json
[2024-07-11 10:03] [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json
[2024-07-11 10:03] [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json
[2024-07-11 10:03] FETCH DATA from: C:\Comfyui\ComfyUI\custom_nodes\ComfyUI-Manager\extension-node-map.json [DONE]
Same here... I got this... it says i'm instaling a mac version... but I am not on a mac... and I am installing it from the repository AND from the manager too!
File "D:\COMFY\ComfyUI\custom_nodes\ComfyUI-LivePortraitKJ__init__.py", line 1, in from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS File "D:\COMFY\ComfyUI\custom_nodes\ComfyUI-LivePortraitKJ\nodes.py", line 11, in from .liveportrait.utils.cropper import Cropper File "D:\COMFY\ComfyUI\custom_nodes\ComfyUI-LivePortraitKJ\liveportrait\utils\cropper.py", line 9, in from .landmark_runner import LandmarkRunner File "D:\COMFY\ComfyUI\custom_nodes\ComfyUI-LivePortraitKJ\liveportrait\utils\landmark_runner.py", line 7, in import onnxruntime File "D:\COMFY\python_embeded\Lib\site-packages\onnxruntime__init__.py", line 57, in raise import_capi_exception File "D:\COMFY\python_embeded\Lib\site-packages\onnxruntime__init__.py", line 23, in from onnxruntime.capi._pybind_state import ExecutionMode # noqa: F401 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\COMFY\python_embeded\Lib\site-packages\onnxruntime\capi_pybind_state.py", line 32, in from .onnxruntime_pybind11_state import * # noqa ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ImportError: DLL load failed while importing onnxruntime_pybind11_state: A dynamic link library (DLL) initialization routine failed. Cannot import D:\COMFY\ComfyUI\custom_nodes\ComfyUI-LivePortraitKJ module for custom nodes: DLL load failed while importing onnxruntime_pybind11_state: A dynamic link library (DLL) initialization routine failed. Traceback (most recent call last): File "D:\COMFY\ComfyUI\nodes.py", line 1906, in load_custom_node module_spec.loader.exec_module(module) File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "D:\COMFY\ComfyUI\custom_nodes\ComfyUI-LivePortraitKJ-MPS__init__.py", line 1, in from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS File "D:\COMFY\ComfyUI\custom_nodes\ComfyUI-LivePortraitKJ-MPS\nodes.py", line 8, in assert torch.backends.mps.is_available(), "You are trying to use a Apple Silicon node on a Windows or Linux device. Download the original node from https://github.com/kijai/ComfyUI-LivePortraitKJ." AssertionError: You are trying to use a Apple Silicon node on a Windows or Linux device. Download the original node from https://github.com/kijai/ComfyUI-LivePortraitKJ. Cannot import D:\COMFY\ComfyUI\custom_nodes\ComfyUI-LivePortraitKJ-MPS module for custom nodes: You are trying to use a Apple Silicon node on a Windows or Linux device. Download the original node from [https://github.com/kijai/ComfyUI-LivePortraitKJ.
](https://github.com/kijai/ComfyUI-LivePortraitKJ.%60)MPS = mac version, install the normal one.
How to install the "normal one"? this is what I get from both copying the repository as well as using the comfyui manager... I've made clean installs and stll get the same thing. Can you provide a bit more detail? I am not sure why I am getting the "MPS" one you are talking about
Remove the MPS one completely and install this one from manager. You probably used "install missing" at some point when using workflow from someone using the Mac version.
Hi guys, I just wanted to mention, any errors you get, copy the red text and paste it into Chat GPT. It will walk you through how to fix it.
the same problem here with "DownloadAndLoadLivePortraitModels" and "LivePortraitProcess" nodes, SOLVED Installing python 3.11 (the problem happened to me with python 3.10).
Just an update on my end. I'm now using a fresh install of comfyui portable and I now have no missing nodes for the new example workflows, so things are working for me when they weren't previously. 👍
(windows 10)
"install missing custom nodes" wont find any