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 BiRefNet_ModelLoader_Zho. #4032

Closed
Jesssssss123 opened this issue Jul 16, 2024 · 1 comment
Closed

Error occurred when executing BiRefNet_ModelLoader_Zho. #4032

Jesssssss123 opened this issue Jul 16, 2024 · 1 comment
Labels
User Support A user needs help with something, probably not a bug.

Comments

@Jesssssss123
Copy link

Your question

I can't use this node!Please help!

Logs

Error occurred when executing BiRefNet_ModelLoader_Zho:

'NoneType' object has no attribute 'seek'. You can only torch.load from a file that is seekable. Please pre-load the data into a buffer like io.BytesIO and try to load from it instead.

File "D:\ComfyUI-aki-v1.3\execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "D:\ComfyUI-aki-v1.3\execution.py", line 81, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
File "D:\ComfyUI-aki-v1.3\execution.py", line 74, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "D:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-BiRefNet-ZHO\birefnet.py", line 53, in load_model
state_dict = torch.load(model_path, map_location=device)
File "D:\ComfyUI-aki-v1.3\python\lib\site-packages\torch\serialization.py", line 986, in load
with _open_file_like(f, 'rb') as opened_file:
File "D:\ComfyUI-aki-v1.3\python\lib\site-packages\torch\serialization.py", line 440, in _open_file_like
return _open_buffer_reader(name_or_buffer)
File "D:\ComfyUI-aki-v1.3\python\lib\site-packages\torch\serialization.py", line 425, in __init__
_check_seekable(buffer)
File "D:\ComfyUI-aki-v1.3\python\lib\site-packages\torch\serialization.py", line 534, in _check_seekable
raise_err_msg(["seek", "tell"], e)
File "D:\ComfyUI-aki-v1.3\python\lib\site-packages\torch\serialization.py", line 527, in raise_err_msg
raise type(e)(msg)

Other

No response

@Jesssssss123 Jesssssss123 added the User Support A user needs help with something, probably not a bug. label Jul 16, 2024
@mcmonkey4eva
Copy link
Collaborator

post on the github the custom node came from

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
User Support A user needs help with something, probably not a bug.
Projects
None yet
Development

No branches or pull requests

2 participants