kadirnar commited on
Commit
990f185
1 Parent(s): d0792ee

Update stable_cascade.py

Browse files
Files changed (1) hide show
  1. stable_cascade.py +0 -3
stable_cascade.py CHANGED
@@ -5,10 +5,7 @@ import gradio as gr
5
 
6
  # Initialize the prior and decoder pipelines
7
  prior = StableCascadePriorPipeline.from_pretrained("stabilityai/stable-cascade-prior", torch_dtype=torch.bfloat16).to("cuda")
8
- prior.enable_xformers_memory_efficient_attention()
9
-
10
  decoder = StableCascadeDecoderPipeline.from_pretrained("stabilityai/stable-cascade", torch_dtype=torch.float16).to("cuda")
11
- decoder.enable_xformers_memory_efficient_attention()
12
 
13
  def generate_images(
14
  prompt="a photo of a girl",
 
5
 
6
  # Initialize the prior and decoder pipelines
7
  prior = StableCascadePriorPipeline.from_pretrained("stabilityai/stable-cascade-prior", torch_dtype=torch.bfloat16).to("cuda")
 
 
8
  decoder = StableCascadeDecoderPipeline.from_pretrained("stabilityai/stable-cascade", torch_dtype=torch.float16).to("cuda")
 
9
 
10
  def generate_images(
11
  prompt="a photo of a girl",