Skip to content

Commit d15618b

Browse files
faaanyhlky
andauthored
Update tests/pipelines/controlnet/test_controlnet.py
Co-authored-by: hlky <[email protected]>
1 parent 3420e1f commit d15618b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/pipelines/controlnet/test_controlnet.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -926,7 +926,9 @@ def test_seg(self):
926926
assert np.abs(expected_image - image).max() < 8e-2
927927

928928
def test_sequential_cpu_offloading(self):
929-
flush_memory(torch_device, gc_collect=True, reset_mem_stats=True)
929+
backend_empty_cache(torch_device)
930+
backend_reset_max_memory_allocated(torch_device)
931+
backend_reset_peak_memory_stats(torch_device)
930932

931933
controlnet = ControlNetModel.from_pretrained("lllyasviel/sd-controlnet-seg")
932934

0 commit comments

Comments
 (0)