@@ -69,7 +69,7 @@ class StableDiffusionControlNetPAGImg2ImgPipelineFastTests(
6969 PipelineTesterMixin ,
7070 unittest .TestCase ,
7171):
72- pipeline_class = StableDiffusionControlNetImg2ImgPipeline
72+ pipeline_class = StableDiffusionControlNetPAGImg2ImgPipeline
7373 params = TEXT_GUIDED_IMAGE_VARIATION_BATCH_PARAMS .union ({"pag_scale" , "pag_adaptive_scale" })
7474 batch_params = TEXT_GUIDED_IMAGE_VARIATION_BATCH_PARAMS
7575 image_params = IMAGE_TO_IMAGE_IMAGE_PARAMS .union ({"control_image" })
@@ -227,7 +227,7 @@ def test_pag_cfg(self):
227227 3 ,
228228 ), f"the shape of the output image should be (1, 64, 64, 3) but got { image .shape } "
229229 expected_slice = np .array (
230- [0.5562928 , 0.44882968 , 0.4588066 , 0.63200223 , 0.5694165 , 0.4955688 , 0.6126959 , 0.57588536 , 0.43827885 ]
230+ [0.40198064 , 0.46560404 , 0.32703918 , 0.62231624 , 0.522181 , 0.41117966 , 0.9138443 , 0.81798613 , 0.5898807 ]
231231 )
232232
233233 max_diff = np .abs (image_slice .flatten () - expected_slice ).max ()
@@ -253,7 +253,7 @@ def test_pag_uncond(self):
253253 3 ,
254254 ), f"the shape of the output image should be (1, 64, 64, 3) but got { image .shape } "
255255 expected_slice = np .array (
256- [0.5543988 , 0.45614323 , 0.4665692 , 0.6202247 , 0.5598917 , 0.49621183 , 0.6084159 , 0.5722314 , 0.43945464 ]
256+ [0.40198082 , 0.46560413 , 0.32703918 , 0.6223163 , 0.5221809 , 0.4111796 , 0.9138442 , 0.817986 , 0.5898805 ]
257257 )
258258
259259 max_diff = np .abs (image_slice .flatten () - expected_slice ).max ()
0 commit comments