Skip to content

Commit 741a44f

Browse files
committed
remove
1 parent 286af0e commit 741a44f

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

tests/lora/test_lora_layers_flux.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,6 @@ def test_flux_the_last_ben(self):
215215
generator=torch.manual_seed(self.seed),
216216
).images
217217
out_slice = out[0, -3:, -3:, -1].flatten()
218-
print_tensor_test(out_slice)
219218
expected_slice = np.array([0.1855, 0.1855, 0.1836, 0.1855, 0.1836, 0.1875, 0.1777, 0.1758, 0.2246])
220219

221220
max_diff = numpy_cosine_similarity_distance(expected_slice.flatten(), out_slice)
@@ -241,7 +240,6 @@ def test_flux_kohya(self):
241240
).images
242241

243242
out_slice = out[0, -3:, -3:, -1].flatten()
244-
print_tensor_test(out_slice)
245243
expected_slice = np.array([0.6367, 0.6367, 0.6328, 0.6367, 0.6328, 0.6289, 0.6367, 0.6328, 0.6484])
246244

247245
max_diff = numpy_cosine_similarity_distance(expected_slice.flatten(), out_slice)
@@ -264,7 +262,6 @@ def test_flux_kohya_with_text_encoder(self):
264262
).images
265263

266264
out_slice = out[0, -3:, -3:, -1].flatten()
267-
print_tensor_test(out_slice)
268265
expected_slice = np.array([0.4023, 0.4023, 0.4023, 0.3965, 0.3984, 0.3965, 0.3926, 0.3906, 0.4219])
269266

270267
max_diff = numpy_cosine_similarity_distance(expected_slice.flatten(), out_slice)
@@ -287,7 +284,6 @@ def test_flux_xlabs(self):
287284
generator=torch.manual_seed(self.seed),
288285
).images
289286
out_slice = out[0, -3:, -3:, -1].flatten()
290-
print_tensor_test(out_slice)
291287
expected_slice = np.array([0.3965, 0.4180, 0.4434, 0.4082, 0.4375, 0.4590, 0.4141, 0.4375, 0.4980])
292288

293289
max_diff = numpy_cosine_similarity_distance(expected_slice.flatten(), out_slice)

tests/lora/test_lora_layers_sd3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ def test_sd3_img2img_lora(self):
184184

185185
image = pipe(**inputs).images[0]
186186
image_slice = image[0, :10, :10]
187-
print_tensor_test(image[0, -3:, -3:, -1].flatten())
187+
print_tensor_test(image[0, :10, :10].flatten())
188188
expected_slice = np.array(
189189
[
190190
0.47827148,

0 commit comments

Comments
 (0)