Skip to content

Commit fdf4290

Browse files
committed
fix format
1 parent 3057713 commit fdf4290

File tree

1 file changed

+2
-35
lines changed

1 file changed

+2
-35
lines changed

tests/lora/test_lora_layers_sd3.py

Lines changed: 2 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -172,41 +172,8 @@ def test_sd3_img2img_lora(self):
172172
inputs = self.get_inputs(torch_device)
173173

174174
image = pipe(**inputs).images[0]
175-
image_slice = image[0, :10, :10]
176-
expected_slice = np.array(
177-
[
178-
0.5371094,
179-
0.5439453,
180-
0.67041016,
181-
0.53808594,
182-
0.5517578,
183-
0.69921875,
184-
0.49389648,
185-
0.51123047,
186-
0.6640625,
187-
0.49291992,
188-
0.5136719,
189-
0.66796875,
190-
0.46557617,
191-
0.4873047,
192-
0.65234375,
193-
0.48754883,
194-
0.5136719,
195-
0.6665039,
196-
0.48364258,
197-
0.51171875,
198-
0.67578125,
199-
0.484375,
200-
0.51464844,
201-
0.67626953,
202-
0.48876953,
203-
0.52441406,
204-
0.67871094,
205-
0.4958496,
206-
0.53027344,
207-
0.6928711,
208-
]
209-
)
175+
image_slice = image[0, :10, :-1]
176+
expected_slice = np.array([0.67041016, 0.69921875, 0.6640625, 0.66796875, 0.65234375, 0.6665039, 0.67578125, 0.67626953, 0.67871094, 0.6928711])
210177

211178
max_diff = numpy_cosine_similarity_distance(expected_slice.flatten(), image_slice.flatten())
212179

0 commit comments

Comments
 (0)