@@ -146,7 +146,7 @@ def test_ledits_pp_inversion(self):
146146 )
147147
148148 latent_slice = sd_pipe .init_latents [0 , - 1 , - 3 :, - 3 :].to (device )
149- print ( latent_slice . flatten ())
149+
150150 expected_slice = np .array ([- 0.9084 , - 0.0367 , 0.2940 , 0.0839 , 0.6890 , 0.2651 , - 0.7104 , 2.1090 , - 0.7822 ])
151151 assert np .abs (latent_slice .flatten () - expected_slice ).max () < 1e-3
152152
@@ -167,12 +167,12 @@ def test_ledits_pp_inversion_batch(self):
167167 )
168168
169169 latent_slice = sd_pipe .init_latents [0 , - 1 , - 3 :, - 3 :].to (device )
170- print ( latent_slice . flatten ())
170+
171171 expected_slice = np .array ([0.2528 , 0.1458 , - 0.2166 , 0.4565 , - 0.5657 , - 1.0286 , - 0.9961 , 0.5933 , 1.1173 ])
172172 assert np .abs (latent_slice .flatten () - expected_slice ).max () < 1e-3
173173
174174 latent_slice = sd_pipe .init_latents [1 , - 1 , - 3 :, - 3 :].to (device )
175- print ( latent_slice . flatten ())
175+
176176 expected_slice = np .array ([- 0.0796 , 2.0583 , 0.5501 , 0.5358 , 0.0282 , - 0.2803 , - 1.0470 , 0.7023 , - 0.0072 ])
177177 assert np .abs (latent_slice .flatten () - expected_slice ).max () < 1e-3
178178
0 commit comments