• Celestial Phineas's avatar
    [Fix] Multiple image conditionings in a single batch for... · 1040dfd9
    Celestial Phineas authored
    
    [Fix] Multiple image conditionings in a single batch for `StableDiffusionControlNetPipeline` (#6334)
    
    * [Fix] Multiple image conditionings in a single batch for `StableDiffusionControlNetPipeline`.
    
    * Refactor `check_inputs` in `StableDiffusionControlNetPipeline` to avoid redundant codes.
    
    * Make the behavior of MultiControlNetModel to be the same to the original ControlNetModel
    
    * Keep the code change minimum for nested list support
    
    * Add fast test `test_inference_nested_image_input`
    
    * Remove redundant check for nested image condition in `check_inputs`
    
    Remove `len(image) == len(prompt)` check out of `check_image()`
    Co-authored-by: default avatarYiYi Xu <yixu310@gmail.com>
    
    * Better `ValueError` message for incompatible nested image list size
    Co-authored-by: default avatarYiYi Xu <yixu310@gmail.com>
    
    * Fix syntax error in `check_inputs`
    
    * Remove warning message for multi-ControlNets with multiple prompts
    
    * Fix a typo in test_controlnet.py
    Co-authored-by: default avatarYiYi Xu <yixu310@gmail.com>
    
    * Add test case for multiple prompts, single image conditioning in `StableDiffusionMultiControlNetPipelineFastTests`
    
    * Improved `ValueError` message for nested `controlnet_conditioning_scale`
    
    * Documenting the behavior of image list as `StableDiffusionControlNetPipeline` input
    
    ---------
    Co-authored-by: default avatarYiYi Xu <yixu310@gmail.com>
    1040dfd9
pipeline_controlnet.py 64.4 KB