frankchieng / ComfyUI_MagicClothing

unofficial implementation of Comfyui magic clothing
Other
521 stars 44 forks source link

For single controlnet: `controlnet_conditioning_scale` must be type `float`. #75

Open yatoubusha opened 3 months ago

yatoubusha commented 3 months ago

i print the type and value of controlnet_conditioning_scale before self.check_inputs, it is float tyle and the value equals 1.0, while the code still return this error? Is it possible that there is an issue with the version of the diffusers library? image

judithdrive commented 2 months ago

same here

jh248 commented 1 month ago

same here

frankchieng commented 1 month ago

there are two methods this issue can be resolved.First,you can downgrade the diffusers version corresponding to diffusers==0.26.2 in the requirements.txt. Second,if you upgrade diffusers to updated version like 0.30.3, you should modify the code of

self.check_inputs(
            prompt,
            image,
            callback_steps,
            negative_prompt,
            prompt_embeds,
            negative_prompt_embeds,
            controlnet_conditioning_scale,
            control_guidance_start,
            control_guidance_end,
            callback_on_step_end_tensor_inputs,
        )

located in pipelines/OmsDiffusionControlNetPipeline.py as below

self.check_inputs(
            prompt,
            image,
            callback_steps,
            negative_prompt,
            prompt_embeds,
            negative_prompt_embeds,
            controlnet_conditioning_scale=controlnet_conditioning_scale,
            control_guidance_start=control_guidance_start,
            control_guidance_end=control_guidance_end,
            callback_on_step_end_tensor_inputs=callback_on_step_end_tensor_inputs,
        )