1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-29 07:22:12 +03:00
This commit is contained in:
Dhruv Nair
2024-01-02 12:10:43 +00:00
parent b69cddb055
commit 3ae0b8375c

View File

@@ -14,6 +14,7 @@
# limitations under the License.
import copy
import gc
import tempfile
import unittest
@@ -1024,6 +1025,11 @@ class StableDiffusionXLPipelineFastTests(
@slow
class StableDiffusionXLPipelineIntegrationTests(unittest.TestCase):
def tearDown(self):
super().tearDown()
gc.collect()
torch.cuda.empty_cache()
def test_stable_diffusion_lcm(self):
torch.manual_seed(0)
unet = UNet2DConditionModel.from_pretrained(