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

[Import Failed] Cannot import name 'YOLO' from 'ultralytics' #77

Open
Ryxx opened this issue Dec 23, 2024 · 0 comments
Open

[Import Failed] Cannot import name 'YOLO' from 'ultralytics' #77

Ryxx opened this issue Dec 23, 2024 · 0 comments

Comments

@Ryxx
Copy link

Ryxx commented Dec 23, 2024

Hello, I recently switched from ComfyUI Portable to ComfyUI Desktop, and I can't make this custom node work anymore.
I checked my .venv (located here : L:\COMFY UI\ComfyUI\.venv\Lib\site-packages) and I already have these packages:

  • ultralytics
  • ultralytics_thop-2.0.12.dist-info
  • ultralytics-8.3.46.dist-info

They also have various Yolo files inside them, but the import fails. I tried fixing with ComfyUI Manager but nothing works.

Any solutions to this error?
Thanks.

[Prompt Server] web root: C:\Users\Utilisateur\AppData\Local\Programs\@comfyorgcomfyui-electron\resources\ComfyUI\web_custom_versions\desktop_app
Traceback (most recent call last):
  File "C:\Users\Utilisateur\AppData\Local\Programs\@comfyorgcomfyui-electron\resources\ComfyUI\nodes.py", line 2072, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 995, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "L:\COMFY UI\ComfyUI\custom_nodes/ComfyUI-AdvancedLivePortrait\__init__.py", line 1, in <module>
    from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
  File "L:\COMFY UI\ComfyUI\custom_nodes/ComfyUI-AdvancedLivePortrait\nodes.py", line 13, in <module>
    from ultralytics import YOLO
ImportError: cannot import name 'YOLO' from 'ultralytics' (unknown location)

Cannot import L:\COMFY UI\ComfyUI\custom_nodes/ComfyUI-AdvancedLivePortrait module for custom nodes: cannot import name 'YOLO' from 'ultralytics' (unknown location)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant