TypeError: ModelPatcherAndInjector.patch_model() got an unexpected keyword argument 'patch_weights'
- Dominant language
- Python
- Stars
- 133k
- Forks
- 15.7k
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 155
Description
Anybody knows a solution to this
Traceback (most recent call last):
File "D:\COMFY\ComfyUI_windows_portable\ComfyUI\execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "D:\COMFY\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 "D:\COMFY\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 "D:\COMFY\ComfyUI_windows_portable\ComfyUI\comfy_extras\nodes_custom_sampler.py", line 326, in sample
samples = comfy.sample.sample_custom(model, noise, cfg, sampler, sigmas, positive, negative, latent_image, noise_mask=noise_mask, callback=callback, disable_pbar=disable_pbar, seed=noise_seed)
File "D:\COMFY\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-AnimateDiff-Evolved\animatediff\sampling.py", line 346, in motion_sample
latents = wrap_function_to_inject_xformers_bug_info(orig_comfy_sample)(model, noise, *args, **kwargs)
File "D:\COMFY\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-AnimateDiff-Evolved\animatediff\utils_model.py", line 360, in wrapped_function
return function_to_wrap(*args, **kwargs)
File "D:\COMFY\ComfyUI_windows_portable\ComfyUI\comfy\sample.py", line 108, in sample_custom
real_model, positive_copy, negative_copy, noise_mask, models = prepare_sampling(model, noise.shape, positive, negative, noise_mask)
File "D:\COMFY\ComfyUI_windows_portable\ComfyUI\comfy\sample.py", line 86, in prepare_sampling
comfy.model_management.load_models_gpu([model] + models, model.memory_required([noise_shape[0] * 2] + list(noise_shape[1:])) + inference_memory)
File "D:\COMFY\ComfyUI_windows_portable\ComfyUI\comfy\model_management.py", line 407, in load_models_gpu
cur_loaded_model = loaded_model.model_load(lowvram_model_memory)
File "D:\COMFY\ComfyUI_windows_portable\ComfyUI\comfy\model_management.py", line 300, in model_load
raise e
File "D:\COMFY\ComfyUI_windows_portable\ComfyUI\comfy\model_management.py", line 294, in model_load
self.real_model = self.model.patch_model_lowvram(device_to=patch_model_to, lowvram_model_memory=lowvram_model_memory)
File "D:\COMFY\ComfyUI_windows_portable\ComfyUI\comfy\model_patcher.py", line 225, in patch_model_lowvram
self.patch_model(device_to, patch_weights=False)
TypeError: ModelPatcherAndInjector.patch_model() got an unexpected keyword argument 'patch_weights'
Contributor guide
Assessment
This issue has not been assessed yet.