Compare commits

...

1 Commits

Author SHA1 Message Date
Dhruv Nair
c1032b001e fix test 2023-09-12 15:23:07 +00:00

View File

@@ -923,7 +923,9 @@ class StableDiffusionPipelineSlowTests(unittest.TestCase):
torch.cuda.reset_max_memory_allocated()
torch.cuda.reset_peak_memory_stats()
pipe = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4", torch_dtype=torch.float16)
pipe = StableDiffusionPipeline.from_pretrained(
"CompVis/stable-diffusion-v1-4", safety_checker=None, torch_dtype=torch.float16
)
pipe = pipe.to(torch_device)
pipe.set_progress_bar_config(disable=None)
pipe.enable_attention_slicing(1)