comfyanonymous / ComfyUI_bitsandbytes_NF4

GNU Affero General Public License v3.0
321 stars 25 forks source link

load_checkpoint_guess_config() got an unexpected keyword argument 'model_options' #6

Open specblades opened 2 months ago

specblades commented 2 months ago

Error occurred when executing CheckpointLoaderNF4:

load_checkpoint_guess_config() got an unexpected keyword argument 'model_options'

File "S:\ComfyUImain\execution.py", line 152, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "S:\ComfyUImain\execution.py", line 82, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) File "S:\ComfyUImain\execution.py", line 75, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) File "S:\ComfyUImain\custom_nodes\ComfyUI_bitsandbytes_NF4__init__.py", line 176, in load_checkpoint out = comfy.sd.load_checkpoint_guess_config(ckpt_path, output_vae=True, output_clip=True, embedding_directory=folder_paths.get_folder_paths("embeddings"), model_options={"custom_operations": OPS})

efonte commented 2 months ago

Make sure your ComfyUI is updated.

MayoPonyo commented 2 months ago

I have the same issue. ComfyUi and everything else are up to date. Still getting this error. Tried with both Dev and Schnell version. Edit: I had to manually install the custom node via git, as the manager did not allow me due to "security level" error. If that might have an impact or not on the error.

Mohsyn commented 2 months ago

same issue - comfyui is updated

TenaciousDean commented 2 months ago

Same issue here

nokai commented 2 months ago

Same issue here All updated

wtesler commented 2 months ago

I had to do a more complete re-install of ComfyUI. Copying over my checkpoints and custom nodes etc... then it worked.

Mindrix95 commented 2 months ago

Just run ComfyUI\update\update_comfyui.bat

Kallamamran commented 2 months ago

Everything updated here. Same error

AllEyEsOnMe9977 commented 2 months ago

same same

MayoPonyo commented 2 months ago

Just run ComfyUI\update\update_comfyui.bat

Running the update.bat over using manager fixed the issue. But the result are extremely blurry.

AllEyEsOnMe9977 commented 2 months ago

Just run ComfyUI\update\update_comfyui.bat

Running the update.bat over using manager fixed the issue. But the result are extremely blurry.

i get this error while running it: Traceback (most recent call last): File "C:\Model Launcher\update\update.py", line 53, in repo.stash(ident) File "C:\Model Launcher\python_embeded\Lib\site-packages\pygit2\repository.py", line 1080, in stash check_error(err) File "C:\Model Launcher\python_embeded\Lib\site-packages\pygit2\errors.py", line 66, in check_error raise GitError(message) _pygit2.GitError: cannot create a tree from a not fully merged index.

AllEyEsOnMe9977 commented 2 months ago

Just run ComfyUI\update\update_comfyui.bat

Running the update.bat over using manager fixed the issue. But the result are extremely blurry.

i get this error while running it: Traceback (most recent call last): File "C:\Model Launcher\update\update.py", line 53, in repo.stash(ident) File "C:\Model Launcher\python_embeded\Lib\site-packages\pygit2\repository.py", line 1080, in stash check_error(err) File "C:\Model Launcher\python_embeded\Lib\site-packages\pygit2\errors.py", line 66, in check_error raise GitError(message) _pygit2.GitError: cannot create a tree from a not fully merged index.

nevermind, fixed it: aborted merge git poll run upbate.bat

ka1tte commented 2 months ago

same issue - comfyui is updated

https://github.com/comfyanonymous/ComfyUI/blob/e60e19b175f93f2c8fac037063de9f13259be9d4/comfy/sd.py#L509 Make sure the load_checkpoint_guess_config function in your local code contains the model_options parameter, otherwise please update the code.