nullquant / ComfyUI-BrushNet

ComfyUI BrushNet nodes
Apache License 2.0
611 stars 23 forks source link

As soon as it is run, the model.CFGGuider cannot be found. What is the reason for this? Is there any way to solve it? #138

Open XwFounder opened 2 months ago

XwFounder commented 2 months ago

Error occurred when executing KSampler:

module 'comfy.samplers' has no attribute 'CFGGuider'

File "E:\Other\ComfyUI-aki(1)\ComfyUI-aki-v1.3\execution.py", line 152, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "E:\Other\ComfyUI-aki(1)\ComfyUI-aki-v1.3\execution.py", line 82, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) File "E:\Other\ComfyUI-aki(1)\ComfyUI-aki-v1.3\execution.py", line 75, in map_node_over_list results.append(getattr(obj, func)(slice_dict(input_data_all, i))) File "E:\Other\ComfyUI-aki(1)\ComfyUI-aki-v1.3\nodes.py", line 1368, in sample return common_ksampler(model, seed, steps, cfg, sampler_name, scheduler, positive, negative, latent_image, denoise=denoise) File "E:\Other\ComfyUI-aki(1)\ComfyUI-aki-v1.3\nodes.py", line 1338, in common_ksampler samples = comfy.sample.sample(model, noise, steps, cfg, sampler_name, scheduler, positive, negative, latent_image, File "E:\Other\ComfyUI-aki(1)\ComfyUI-aki-v1.3\custom_nodes\Comfyui-StableSR\nodes.py", line 75, in hook_sample return original_sample(*args, *kwargs) File "E:\Other\ComfyUI-aki(1)\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Impact-Pack\modules\impact\sample_error_enhancer.py", line 9, in informative_sample return original_sample(args, kwargs) # This code helps interpret error messages that occur within exceptions but does not have any impact on other operations. File "E:\Other\ComfyUI-aki(1)\ComfyUI-aki-v1.3\comfy\sample.py", line 100, in sample samples = sampler.sample(noise, positive_copy, negative_copy, cfg=cfg, latent_image=latent_image, start_step=start_step, last_step=last_step, force_full_denoise=force_full_denoise, denoise_mask=noise_mask, sigmas=sigmas, callback=callback, disable_pbar=disable_pbar, seed=seed) File "E:\Other\ComfyUI-aki(1)\ComfyUI-aki-v1.3\comfy\samplers.py", line 703, in sample return sample(self.model, noise, positive, negative, cfg, self.device, sampler, sigmas, self.model_options, latent_image=latent_image, denoise_mask=denoise_mask, callback=callback, disable_pbar=disable_pbar, seed=seed) File "E:\Other\ComfyUI-aki(1)\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-BrushNet\model_patch.py", line 100, in modified_sample cfg_guider = comfy.samplers.CFGGuider(model)

image

nullquant commented 2 months ago

Do you use some fork of ComfyUI? It seems it does not have CFGGuider class.