Open g-wellsa opened 5 months ago
有人遇到这种问题吗,求解
遇到问题+1
I have the same problem. Is there a way to solve it?
No~~~
isa988 @.***
------------------ 原始邮件 ------------------ 发件人: "ZHO-ZHO-ZHO/ComfyUI-YoloWorld-EfficientSAM" @.>; 发送时间: 2024年6月29日(星期六) 下午5:06 @.>; @.**@.>; 主题: Re: [ZHO-ZHO-ZHO/ComfyUI-YoloWorld-EfficientSAM] ImportError: cannot import name 'YOLOWorld' from 'inference.models' (Issue #63)
I have the same problem. Is there a way to solve it?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
I found a way to get this up and running on MacOS M3.
cd custom_nodes/ComfyUI-YoloWorld-EfficientSAM
pip3 list | grep onnxruntime-gpu
pip3 uninstall onnxruntime-gpu
custom_nodes/ComfyUI-YoloWorld-EfficientSAM
project requirements.txt
# remove inference-gpu[yolo-world]==0.9.13
inference[yolo-world]==0.9.13
pip install -r requirements.txt
Traceback (most recent call last): File "G:\workspace\python\ComfyUI_nvidia_cu121_or_cpu\ComfyUI\nodes.py", line 1879, 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 "G:\workspace\python\ComfyUI_nvidia_cu121_or_cpu\ComfyUI\custom_nodes\ComfyUI-YoloWorld-EfficientSAM__init.py", line 1, in
from . import YOLO_WORLD_EfficientSAM
File "G:\workspace\python\ComfyUI_nvidia_cu121_or_cpu\ComfyUI\custom_nodes\ComfyUI-YoloWorld-EfficientSAM\YOLO_WORLD_EfficientSAM.py", line 9, in
from inference.models import YOLOWorld
ImportError: cannot import name 'YOLOWorld' from 'inference.models' (G:\workspace\python\ComfyUI_nvidia_cu121_or_cpu\python_embeded\Lib\site-packages\inference\models\ init__.py)
Cannot import G:\workspace\python\ComfyUI_nvidia_cu121_or_cpu\ComfyUI\custom_nodes\ComfyUI-YoloWorld-EfficientSAM module for custom nodes: cannot import name 'YOLOWorld' from 'inference.models' (G:\workspace\python\ComfyUI_nvidia_cu121_or_cpu\python_embeded\Lib\site-packages\inference\models__init__.py)