-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
auto type conversion #4270
auto type conversion #4270
Conversation
Default value of `control_guidance_start` and `control_guidance_end` in `StableDiffusionControlNetPipeline.check_inputs` causes `TypeError: object of type 'float' has no len()` Proposed fix: Convert `control_guidance_start` and `control_guidance_end` to list if float
The documentation is not available anymore as the PR was closed or merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bit safer to just check for non list or tuple (to also catch ints and tensors, ...)
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com>
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com>
Yep, makes sense |
Thanks! |
* type conversion Default value of `control_guidance_start` and `control_guidance_end` in `StableDiffusionControlNetPipeline.check_inputs` causes `TypeError: object of type 'float' has no len()` Proposed fix: Convert `control_guidance_start` and `control_guidance_end` to list if float * Update src/diffusers/pipelines/controlnet/pipeline_controlnet.py * Update src/diffusers/pipelines/controlnet/pipeline_controlnet.py Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com> * Update src/diffusers/pipelines/controlnet/pipeline_controlnet.py Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com> --------- Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com>
* type conversion Default value of `control_guidance_start` and `control_guidance_end` in `StableDiffusionControlNetPipeline.check_inputs` causes `TypeError: object of type 'float' has no len()` Proposed fix: Convert `control_guidance_start` and `control_guidance_end` to list if float * Update src/diffusers/pipelines/controlnet/pipeline_controlnet.py * Update src/diffusers/pipelines/controlnet/pipeline_controlnet.py Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com> * Update src/diffusers/pipelines/controlnet/pipeline_controlnet.py Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com> --------- Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com>
Default value of
control_guidance_start
andcontrol_guidance_end
inStableDiffusionControlNetPipeline.check_inputs
function causesTypeError: object of type 'float' has no len()
Proposed fix:
Convert
control_guidance_start
andcontrol_guidance_end
to type list if floatWhat does this PR do?
Fixes #4269
@holwech