Remove unnecessary lines.
This commit is contained in:
parent
daf84a5280
commit
590bf826c0
@ -101,8 +101,6 @@ class StableDiffusion:
|
|||||||
low_cpu_mem_usage=True,
|
low_cpu_mem_usage=True,
|
||||||
device_map="auto",
|
device_map="auto",
|
||||||
).to("cuda")
|
).to("cuda")
|
||||||
if self.pipe.safety_checker is not None:
|
|
||||||
self.pipe.safety_checker = lambda images, **kwargs: (images, False)
|
|
||||||
self.pipe.enable_xformers_memory_efficient_attention()
|
self.pipe.enable_xformers_memory_efficient_attention()
|
||||||
|
|
||||||
@method()
|
@method()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user