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

Help Me, eror onnxruntime gpu #464

Open
3 tasks done
Ramsky1881 opened this issue Oct 19, 2024 · 0 comments
Open
3 tasks done

Help Me, eror onnxruntime gpu #464

Ramsky1881 opened this issue Oct 19, 2024 · 0 comments
Labels
bug Something isn't working new

Comments

@Ramsky1881
Copy link

Ramsky1881 commented Oct 19, 2024

First, confirm

  • I have read the instruction carefully
  • I have searched the existing issues
  • I have updated the extension to the latest version

What happened?

hello,
i need to install ReActor Node for ComfyUI but it always get me this error: ((IMPORT FAILED) ReActor Node for ComfyUI)
Screenshot 2024-10-19 212145

I do whatever I can.
even i did this: https://github.com/Gourieff/comfyui-reactor-node#insightface but i couldn't solve it. every time i face this error. i select "fix" button but not solved. please help me.

Steps to reproduce the problem

i install this node and keep getting the error. i don't know what is the problem and how to solve it.

Sysinfo

Win 11, rtx 4070 super, 64 ram

Relevant console log

[START] Security scan
WARNING: Ignoring invalid distribution ~nnxruntime (D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\python_embeded\Lib\site-packages)
[DONE] Security scan
## ComfyUI-Manager: installing dependencies done.
** ComfyUI startup time: 2024-10-20 13:23:26.079311
** Platform: Windows
** Python version: 3.11.9 (tags/v3.11.9:de54cf5, Apr  2 2024, 10:12:12) [MSC v.1938 64 bit (AMD64)]
** Python executable: D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\python_embeded\python.exe
** ComfyUI Path: D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI
** Log path: D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\comfyui.log

Prestartup times for custom nodes:
   0.0 seconds: D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes\rgthree-comfy
   1.1 seconds: D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager

Total VRAM 12282 MB, total RAM 65349 MB
pytorch version: 2.4.1+cu124
Set vram state to: NORMAL_VRAM
Device: cuda:0 NVIDIA GeForce RTX 4070 SUPER : cudaMallocAsync
Using pytorch cross attention
[Prompt Server] web root: D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\web
D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\python_embeded\Lib\site-packages\kornia\feature\lightglue.py:44: FutureWarning: `torch.cuda.amp.custom_fwd(args...)` is deprecated. Please use `torch.amp.custom_fwd(args..., device_type='cuda')` instead.
  @torch.cuda.amp.custom_fwd(cast_inputs=torch.float32)
Traceback (most recent call last):
  File "D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\nodes.py", line 2001, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 936, in exec_module
  File "<frozen importlib._bootstrap_external>", line 1073, in get_code
  File "<frozen importlib._bootstrap_external>", line 1130, in get_data
FileNotFoundError: [Errno 2] No such file or directory: 'D:\\ComfyUI_windows_portable_nvi22dia\\ComfyUI_windows_portable\\ComfyUI\\custom_nodes\\.git\\__init__.py'

Cannot import D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes\.git module for custom nodes: [Errno 2] No such file or directory: 'D:\\ComfyUI_windows_portable_nvi22dia\\ComfyUI_windows_portable\\ComfyUI\\custom_nodes\\.git\\__init__.py'
Traceback (most recent call last):
  File "D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\nodes.py", line 2001, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 936, in exec_module
  File "<frozen importlib._bootstrap_external>", line 1073, in get_code
  File "<frozen importlib._bootstrap_external>", line 1130, in get_data
FileNotFoundError: [Errno 2] No such file or directory: 'D:\\ComfyUI_windows_portable_nvi22dia\\ComfyUI_windows_portable\\ComfyUI\\custom_nodes\\CLIPVisionLoader\\__init__.py'

Cannot import D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes\CLIPVisionLoader module for custom nodes: [Errno 2] No such file or directory: 'D:\\ComfyUI_windows_portable_nvi22dia\\ComfyUI_windows_portable\\ComfyUI\\custom_nodes\\CLIPVisionLoader\\__init__.py'
!!!3dphoto path was added to D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\python_embeded\Lib\site-packages/3dphoto.pth
 if meet No module named 'MiDas' error,please restart comfyui
3d-photo-inpainting use cache models,make sure your 'checkpoints' complete
[AnimateDiff] - ERROR - No models available. Please download one and put it in models folder
Adding D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes to sys.path
Efficiency Nodes: Attempting to add Control Net options to the 'HiRes-Fix Script' Node (comfyui_controlnet_aux add-on)...Success!
Loaded Efficiency nodes from D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes\efficiency-nodes-comfyui
Loaded ControlNetPreprocessors nodes from D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux
Loaded AdvancedControlNet nodes from D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Advanced-ControlNet
Loaded AnimateDiff from D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-animatediff\animatediff/sliding_schedule.py
Loaded IPAdapter nodes from D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_IPAdapter_plus
Loaded VideoHelperSuite from D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-VideoHelperSuite
### Loading: ComfyUI-Impact-Pack (V7.10.3)
### Loading: ComfyUI-Impact-Pack (Subpack: V0.7)
### Loading: ComfyUI-Impact-Pack (V7.10.3)
[Impact Pack] Wildcards loading done.
Loaded ImpactPack nodes from D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Impact-Pack
[Impact Pack] Wildcards loading done.
### Loading: ComfyUI-Impact-Pack (V7.10.3)
[Impact Pack] Wildcards loading done.
Total VRAM 12282 MB, total RAM 65349 MB
pytorch version: 2.4.1+cu124
Set vram state to: NORMAL_VRAM
Device: cuda:0 NVIDIA GeForce RTX 4070 SUPER : cudaMallocAsync
### Loading: ComfyUI-Manager (V2.51.8)
### ComfyUI Revision: 2771 [518c0dc2] | Released on '2024-10-18'
[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/custom-node-list.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/github-stats.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json
Fetching 2 files: 100%|██████████████████████████████████████████████████████████████████████████| 2/2 [00:00<?, ?it/s]
Traceback (most recent call last):
  File "D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\nodes.py", line 2001, 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 "D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-MimicMotion\__init__.py", line 4, in <module>
    from .nodes import MimicMotionNode, LoadVideo, PreViewVideo
  File "D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-MimicMotion\nodes.py", line 36, in <module>
    from mimicmotion.dwpose.preprocess import get_video_pose, get_image_pose
  File "D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-MimicMotion\mimicmotion\dwpose\preprocess.py", line 5, in <module>
    from .dwpose_detector import dwpose_detector as dwprocessor
  File "D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-MimicMotion\mimicmotion\dwpose\dwpose_detector.py", line 6, in <module>
    from .wholebody import Wholebody
  File "D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-MimicMotion\mimicmotion\dwpose\wholebody.py", line 5, in <module>
    from .onnxpose import inference_pose
  File "D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-MimicMotion\mimicmotion\dwpose\onnxpose.py", line 52, in <module>
    def inference(sess: ort.InferenceSession, img: np.ndarray) -> np.ndarray:
                        ^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'onnxruntime' has no attribute 'InferenceSession'

Cannot import D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-MimicMotion module for custom nodes: module 'onnxruntime' has no attribute 'InferenceSession'
Traceback (most recent call last):
  File "D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\nodes.py", line 2001, 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 "D:\ComfyUI_windows_portable_nvi22dia\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 "D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node\nodes.py", line 15, in <module>
    from insightface.app.common import Face
  File "D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\python_embeded\Lib\site-packages\insightface\__init__.py", line 16, in <module>
    from . import model_zoo
  File "D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\python_embeded\Lib\site-packages\insightface\model_zoo\__init__.py", line 1, in <module>
    from .model_zoo import get_model
  File "D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\python_embeded\Lib\site-packages\insightface\model_zoo\model_zoo.py", line 22, in <module>
    class PickableInferenceSession(onnxruntime.InferenceSession):
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'onnxruntime' has no attribute 'InferenceSession'

Cannot import D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node module for custom nodes: module 'onnxruntime' has no attribute 'InferenceSession'
------------------------------------------
Comfyroll Studio v1.76 :  175 Nodes Loaded
------------------------------------------
** For changes, please see patch notes at https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/blob/main/Patch_Notes.md
** For help, please see the wiki at https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/wiki
------------------------------------------
# 😺dzNodes: LayerStyle -> Cannot import name 'guidedFilter' from 'cv2.ximgproc'
A few nodes cannot works properly, while most nodes are not affected. Please REINSTALL package 'opencv-contrib-python'.
For detail refer to https://github.com/chflame163/ComfyUI_LayerStyle/issues/5
[comfy_mtb] | INFO -> loaded 81 nodes successfuly
[comfy_mtb] | INFO -> Some nodes (2) could not be loaded. This can be ignored, but go to http://127.0.0.1:8188/mtb if you want more information.

[rgthree-comfy] Loaded 42 epic nodes. 🎉

WAS Node Suite: OpenCV Python FFMPEG support is enabled
WAS Node Suite Warning: `ffmpeg_bin_path` is not set in `D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes\was-node-suite-comfyui\was_suite_config.json` config file. Will attempt to use system ffmpeg binaries if available.
WAS Node Suite: Finished. Loaded 218 nodes successfully.

        "Creativity takes courage." - Henri Matisse


Import times for custom nodes:
   0.0 seconds: D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes\websocket_image_save.py
   0.0 seconds: D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-string-converter
   0.0 seconds: D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-YCYY-LoraInfo
   0.0 seconds: D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_IPAdapter_plus
   0.0 seconds: D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes\lora-info
   0.0 seconds: D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_TiledKSampler
   0.0 seconds: D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_Cutoff
   0.0 seconds: D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes\efficiency-nodes-comfyui
   0.0 seconds: D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-VideoHelperSuite
   0.0 seconds: D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_MiniCPM-V-2_6-int4
   0.0 seconds: D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-lama-remover
   0.0 seconds (IMPORT FAILED): D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes\.git
   0.0 seconds: D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux
   0.0 seconds: D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_UltimateSDUpscale
   0.0 seconds: D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-animatediff
   0.0 seconds: D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-various
   0.0 seconds: D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Impact-Pack
   0.0 seconds: D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes\Derfuu_ComfyUI_ModdedNodes
   0.0 seconds: D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Frame-Interpolation
   0.0 seconds (IMPORT FAILED): D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes\CLIPVisionLoader
   0.0 seconds: D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-MimicMotionWrapper
   0.0 seconds: D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Advanced-ControlNet
   0.0 seconds: D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-GGUF
   0.0 seconds (IMPORT FAILED): D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node
   0.0 seconds: D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-3d-photo-inpainting
   0.0 seconds: D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes\rgthree-comfy
   0.0 seconds: D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-AnimateDiff-Evolved
   0.0 seconds: D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_Comfyroll_CustomNodes
   0.1 seconds: D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-KJNodes
   0.1 seconds: D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_LayerStyle
   0.4 seconds: D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager
   0.4 seconds: D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfy_mtb
   0.7 seconds: D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Inspyrenet-Rembg
   0.8 seconds (IMPORT FAILED): D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-MimicMotion
   1.0 seconds: D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes\was-node-suite-comfyui
   1.1 seconds: D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-art-venture
   2.2 seconds: D:\ComfyUI_windows_portable_nvi22dia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-UniAnimate


### Additional information

my comfy ui version is : v0.2.3 Release. i update all.
@Ramsky1881 Ramsky1881 added bug Something isn't working new labels Oct 19, 2024
@Ramsky1881 Ramsky1881 changed the title Help Me, ImportError insightface Help Me, eror onnxruntime gpu Oct 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working new
Projects
None yet
Development

No branches or pull requests

1 participant