@@ -546,7 +546,6 @@ def __call__(
546546        callback_on_step_end : Optional [Callable [[int , int , Dict ], None ]] =  None ,
547547        callback_on_step_end_tensor_inputs : List [str ] =  ["latents" ],
548548        max_sequence_length : int  =  512 ,
549-         _auto_resize : bool  =  True ,
550549    ):
551550        r""" 
552551        Function invoked when calling the pipeline for generation. 
@@ -665,7 +664,6 @@ def __call__(
665664        device  =  self ._execution_device 
666665        # 3. Preprocess image 
667666        if  image  is  not None  and  not  (isinstance (image , torch .Tensor ) and  image .size (1 ) ==  self .latent_channels ):
668-             img  =  image [0 ] if  isinstance (image , list ) else  image 
669667            image  =  self .image_processor .resize (image , calculated_height , calculated_width )
670668            prompt_image  =  image 
671669            image  =  self .image_processor .preprocess (image , calculated_height , calculated_width )
@@ -685,9 +683,6 @@ def __call__(
685683            max_sequence_length = max_sequence_length ,
686684        )
687685        if  do_true_cfg :
688-             # negative image is the same size as the original image, but all pixels are white 
689-             # negative_image = Image.new("RGB", (image.width, image.height), (255, 255, 255)) 
690- 
691686            negative_prompt_embeds , negative_prompt_embeds_mask  =  self .encode_prompt (
692687                image = prompt_image ,
693688                prompt = negative_prompt ,
0 commit comments