@@ -195,7 +195,7 @@ def test_ip_adapter_single(self, from_ssd1b=False, expected_pipe_slice=None):
195195 expected_pipe_slice = None
196196 if torch_device == "cpu" :
197197 expected_pipe_slice = np .array (
198- [0.7331 , 0.5907 , 0.5667 , 0.6029 , 0.5679 , 0.5968 , 0.4033 , 0.4761 , 0.5090 ]
198+ [0.7335 , 0.5866 , 0.5623 , 0.6242 , 0.5751 , 0.5999 , 0.4091 , 0.4590 , 0.5054 ]
199199 )
200200 return super ().test_ip_adapter_single (expected_pipe_slice = expected_pipe_slice )
201201
@@ -348,9 +348,8 @@ def test_controlnet_sdxl_guess(self):
348348
349349 output = sd_pipe (** inputs )
350350 image_slice = output .images [0 , - 3 :, - 3 :, - 1 ]
351- expected_slice = np .array (
352- [0.7330834 , 0.590667 , 0.5667336 , 0.6029023 , 0.5679491 , 0.5968194 , 0.4032986 , 0.47612396 , 0.5089609 ]
353- )
351+
352+ expected_slice = np .array ([0.7335 , 0.5866 , 0.5623 , 0.6242 , 0.5751 , 0.5999 , 0.4091 , 0.4590 , 0.5054 ])
354353
355354 # make sure that it's equal
356355 assert np .abs (image_slice .flatten () - expected_slice ).max () < 1e-4
@@ -371,7 +370,7 @@ def test_controlnet_sdxl_lcm(self):
371370 image_slice = image [0 , - 3 :, - 3 :, - 1 ]
372371
373372 assert image .shape == (1 , 64 , 64 , 3 )
374- expected_slice = np .array ([0.7799 , 0.614 , 0.6162 , 0.7082 , 0.6662 , 0.5833 , 0.4148 , 0.5182 , 0.4866 ])
373+ expected_slice = np .array ([0.7820 , 0.6195 , 0.6193 , 0.7045 , 0.6706 , 0.5837 , 0.4147 , 0.5232 , 0.4868 ])
375374
376375 assert np .abs (image_slice .flatten () - expected_slice ).max () < 1e-2
377376
@@ -965,17 +964,17 @@ def test_controlnet_sdxl_guess(self):
965964
966965 output = sd_pipe (** inputs )
967966 image_slice = output .images [0 , - 3 :, - 3 :, - 1 ]
968- expected_slice = np .array (
969- [0.6831671 , 0.5702532 , 0.5459845 , 0.6299793 , 0.58563006 , 0.6033695 , 0.4493941 , 0.46132287 , 0.5035841 ]
970- )
967+
968+ expected_slice = np .array ([0.7212 , 0.5890 , 0.5491 , 0.6425 , 0.5970 , 0.6091 , 0.4418 , 0.4556 , 0.5032 ])
971969
972970 # make sure that it's equal
973971 assert np .abs (image_slice .flatten () - expected_slice ).max () < 1e-4
974972
975973 def test_ip_adapter_single (self ):
976974 expected_pipe_slice = None
977975 if torch_device == "cpu" :
978- expected_pipe_slice = np .array ([0.6832 , 0.5703 , 0.5460 , 0.6300 , 0.5856 , 0.6034 , 0.4494 , 0.4613 , 0.5036 ])
976+ expected_pipe_slice = np .array ([0.7212 , 0.5890 , 0.5491 , 0.6425 , 0.5970 , 0.6091 , 0.4418 , 0.4556 , 0.5032 ])
977+
979978 return super ().test_ip_adapter_single (from_ssd1b = True , expected_pipe_slice = expected_pipe_slice )
980979
981980 def test_controlnet_sdxl_lcm (self ):
@@ -994,7 +993,7 @@ def test_controlnet_sdxl_lcm(self):
994993 image_slice = image [0 , - 3 :, - 3 :, - 1 ]
995994
996995 assert image .shape == (1 , 64 , 64 , 3 )
997- expected_slice = np .array ([0.6850 , 0.5135 , 0.5545 , 0.7033 , 0.6617 , 0.5971 , 0.4165 , 0.5480 , 0.5070 ])
996+ expected_slice = np .array ([0.6787 , 0.5117 , 0.5558 , 0.6963 , 0.6571 , 0.5928 , 0.4121 , 0.5468 , 0.5057 ])
998997
999998 assert np .abs (image_slice .flatten () - expected_slice ).max () < 1e-2
1000999
0 commit comments