kijai / ComfyUI-BrushNet-Wrapper

ComfyUI nodes to use BrushNet with Diffusers
Apache License 2.0
129 stars 6 forks source link

How can I solve this problem: TypeError: For single brushnet: brushnet_conditioning_scale must be type float. #5

Open longzy1 opened 5 months ago

longzy1 commented 5 months ago

Error occurred when executing brushnet_sampler:

For single brushnet: brushnet_conditioning_scale must be type float.

File "/root/ComfyUI/execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "/root/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 "/root/ComfyUI/execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(*slice_dict(input_data_all, i))) File "/root/ComfyUI/custom_nodes/ComfyUI-BrushNet-Wrapper/nodes.py", line 328, in process images = pipe( File "/root/ComfyUI/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context return func(args, **kwargs) File "/root/ComfyUI/custom_nodes/ComfyUI-BrushNet-Wrapper/brushnet/pipeline_brushnet.py", line 1010, in call self.check_inputs( File "/root/ComfyUI/custom_nodes/ComfyUI-BrushNet-Wrapper/brushnet/pipeline_brushnet.py", line 636, in check_inputs raise TypeError("For single brushnet: brushnet_conditioning_scale must be type float.")

This issue has been troubling me for several days, and I hope the teacher can help resolve it. This prompt appears when running the brushnet sampler node 微信图片_20240415190126

kijai commented 5 months ago

Make sure this node pack is up to date, and then re-create the node. I can't think of any other reason that would happen.