ZHO-ZHO-ZHO / ComfyUI-YoloWorld-EfficientSAM

Unofficial implementation of YOLO-World + EfficientSAM for ComfyUI
GNU General Public License v3.0
600 stars 55 forks source link

'WorldModel' object has no attribute 'clip_model' #31

Open 602387193c opened 6 months ago

602387193c commented 6 months ago

Error occurred when executing Yoloworld_ESAM_Zho:

'WorldModel' object has no attribute 'clip_model'

File "C:\AI\ComfyUI_windows_portable\ComfyUI\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\AI\ComfyUI_windows_portable\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 "C:\AI\ComfyUI_windows_portable\ComfyUI\execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-YoloWorld-EfficientSAM\YOLO_WORLD_EfficientSAM.py", line 139, in yoloworld_esam_image YOLO_WORLD_MODEL.set_classes(categories) File "C:\anaconda3\envs\ComfyUI\Lib\site-packages\inference\models\yolo_world\yolo_world.py", line 133, in set_classes self.model.set_classes(text) File "C:\anaconda3\envs\ComfyUI\Lib\site-packages\ultralytics\models\yolo\model.py", line 96, in set_classes self.model.set_classes(classes) File "C:\anaconda3\envs\ComfyUI\Lib\site-packages\ultralytics\nn\tasks.py", line 575, in set_classes if not self.clip_model: ^^^^^^^^^^^^^^^ File "C:\anaconda3\envs\ComfyUI\Lib\site-packages\torch\nn\modules\module.py", line 1695, in getattr raise AttributeError(f"'{type(self).name}' object has no attribute '{name}'")

allanftmckay commented 6 months ago

Hi, did you ever resolve this? I've been running intot he same issue for days :\

602387193c commented 6 months ago

yes,i just creat a new Environment,with Anaconda,I think i just installed too many stuff.And then conflict to each other.

metalwen commented 6 months ago

yes,i just creat a new Environment,with Anaconda,I think i just installed too many stuff.And then conflict to each other.

I'm having the same problem, can I ask what specific adjustments you made?

Jasonhomme commented 6 months ago

I'm having the same problem

Lcorinst commented 4 months ago

it is version promblem, please install using this: for new version , after install requirement inference-gpu==0.9.22, then install yoloworld: your\path\ComfyUI_windows_portable\python_embeded\python.exe -m pip install inference[yolo-world], that is ok for me