Open lanse6899 opened 4 months ago
downgrade your version of diffusers to 0.26.2 just as mentioned in the requirements.txt
Hi @frankchieng . Could you please tell us how to downgrade diffusers to 0.26.2
I have no idea of coding, no idea of where the diffusers are located, and no idea of how to downgrade them.
It would be great if you could make a very simple step by step guide.
Thanks a lot!
in case you run this project on ComfyUI,you should be in an operation environment,either windows, linux,apple OS or whatever,then you can check out the diffusers version thr the command line,such as cmd on windows with the(pip show diffusers) instruction,if it shows up the version not of 0.26.2 then you should type:pip install diffusers==0.26.2,it will be the same verison in the requirements.txt
Same issue here. requirements were already installed, and difussers is 0.26.2, but it returns the same error: "For single controlnet: controlnet_conditioning_scale
must be type float
."
(magic) C:\Users\User>pip show diffusers Name: diffusers Version: 0.26.2
Error occurred when executing MagicClothing_Generate:
For single controlnet: controlnet_conditioning_scale
must be type float
.
File "C:\Users\User\Comfty\ComfyUI_windows_portable\ComfyUI\execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "C:\Users\User\Comfty\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 "C:\Users\User\Comfty\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 "C:\Users\User\Comfty\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_MagicClothing\nodes.py", line 286, in garment_generation
result = ip_model.generate(cloth_image, face_image, cloth_mask_image, prompt, a_prompt, n_prompt, num_samples, seed, scale, cloth_guidance_scale, sample_steps, height, width, shortcut=v2, image=pose_image)
File "C:\Users\User\Comfty\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_MagicClothing\garment_adapter\garment_ipadapter_faceid.py", line 513, in generate
images = self.pipe(
File "C:\Users\User\Comfty\ComfyUI_windows_portable\python_embeded\lib\site-packages\torch\utils_contextlib.py", line 115, in decorate_context
return func(args, **kwargs)
File "C:\Users\User\Comfty\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_MagicClothing\pipelines\OmsDiffusionControlNetPipeline.py", line 168, in call
self.check_inputs(
File "C:\Users\User\Comfty\ComfyUI_windows_portable\python_embeded\lib\site-packages\diffusers\pipelines\controlnet\pipeline_controlnet.py", line 677, in check_inputs
raise TypeError("For single controlnet: controlnet_conditioning_scale
must be type float
.")
Solved it. Hope it works for you too @velmont-ctk
Install diffusers==0.26.3 Then replace .\python_embeded\Lib\site-packages\diffusers\pipelines\controlnet\pipeline_controlnet_inpaint.py with this one: https://github.com/huggingface/diffusers/blob/v0.26.3/src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py
Error occurred when executing MagicClothing_Generate:
For single controlnet:
controlnet_conditioning_scale
must be typefloat
.File "G:\ComfyUI_windows_portable\ComfyUI\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "G:\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 "G:\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 "G:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_MagicClothing\nodes.py", line 286, in garment_generation result = ip_model.generate(cloth_image, face_image, cloth_mask_image, prompt, a_prompt, n_prompt, num_samples, seed, scale, cloth_guidance_scale, sample_steps, height, width, shortcut=v2, image=pose_image) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "G:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_MagicClothing\garment_adapter\garment_ipadapter_faceid.py", line 513, in generate images = self.pipe( ^^^^^^^^^^ File "G:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\utils_contextlib.py", line 115, in decorate_context return func(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "G:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_MagicClothing\pipelines\OmsDiffusionControlNetPipeline.py", line 168, in call self.check_inputs( File "G:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\diffusers\pipelines\controlnet\pipeline_controlnet.py", line 677, in check_inputs raise TypeError("For single controlnet:
controlnet_conditioning_scale
must be typefloat
.")