We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3420e1f commit d15618bCopy full SHA for d15618b
tests/pipelines/controlnet/test_controlnet.py
@@ -926,7 +926,9 @@ def test_seg(self):
926
assert np.abs(expected_image - image).max() < 8e-2
927
928
def test_sequential_cpu_offloading(self):
929
- flush_memory(torch_device, gc_collect=True, reset_mem_stats=True)
+ backend_empty_cache(torch_device)
930
+ backend_reset_max_memory_allocated(torch_device)
931
+ backend_reset_peak_memory_stats(torch_device)
932
933
controlnet = ControlNetModel.from_pretrained("lllyasviel/sd-controlnet-seg")
934
0 commit comments