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

Error occurred when executing Yoloworld_ModelLoader_Zho #84

Open
lunatico67 opened this issue Jul 27, 2024 · 0 comments
Open

Error occurred when executing Yoloworld_ModelLoader_Zho #84

lunatico67 opened this issue Jul 27, 2024 · 0 comments

Comments

@lunatico67
Copy link

Error occurred when executing Yoloworld_ModelLoader_Zho:

Can't get attribute 'WorldModel' on

File "C:\Users\luna\Documents\ComfyUI_windows_portable\ComfyUI\execution.py", line 152, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\luna\Documents\ComfyUI_windows_portable\ComfyUI\execution.py", line 82, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\luna\Documents\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-0246\utils.py", line 381, in new_func
res_value = old_func(*final_args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\luna\Documents\ComfyUI_windows_portable\ComfyUI\execution.py", line 75, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\luna\Documents\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-YoloWorld-EfficientSAM\YOLO_WORLD_EfficientSAM.py", line 70, in load_yolo_world_model
YOLO_WORLD_MODEL = YOLOWorld(model_id=yolo_world_model)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\luna\Documents\ComfyUI_windows_portable\python_embeded\Lib\site-packages\inference\models\yolo_world\yolo_world.py", line 36, in init
self.model = YOLO(self.cache_file("yolo-world.pt"))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\luna\Documents\ComfyUI_windows_portable\python_embeded\Lib\site-packages\ultralytics\engine\model.py", line 95, in init
self._load(model, task)
File "C:\Users\luna\Documents\ComfyUI_windows_portable\python_embeded\Lib\site-packages\ultralytics\engine\model.py", line 161, in _load
self.model, self.ckpt = attempt_load_one_weight(weights)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\luna\Documents\ComfyUI_windows_portable\python_embeded\Lib\site-packages\ultralytics\nn\tasks.py", line 700, in attempt_load_one_weight
ckpt, weight = torch_safe_load(weight) # load ckpt
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\luna\Documents\ComfyUI_windows_portable\python_embeded\Lib\site-packages\ultralytics\nn\tasks.py", line 634, in torch_safe_load
return torch.load(file, map_location="cpu"), file # load
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\luna\Documents\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\serialization.py", line 1025, in load
return _load(opened_zipfile,
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\luna\Documents\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\serialization.py", line 1446, in _load
result = unpickler.load()
^^^^^^^^^^^^^^^^
File "C:\Users\luna\Documents\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\serialization.py", line 1439, in find_class
return super().find_class(mod_name, name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

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