Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -352,7 +352,7 @@ def genie (Model, Prompt, negative_prompt, height, width, scale, steps, seed, re
|
|
352 |
if Model == 'CascadeXL':
|
353 |
torch.cuda.empty_cache()
|
354 |
from diffusers import StableCascadeCombinedPipeline
|
355 |
-
pipe = StableCascadeCombinedPipeline.from_pretrained("stabilityai/stable-cascade", torch_dtype=torch.float16
|
356 |
pipe.enable_xformers_memory_efficient_attention()
|
357 |
pipe = pipe.to(device)
|
358 |
image = pipe(prompt=Prompt, negative_prompt=negative_prompt, num_inference_steps=10, prior_num_inference_steps=20, prior_guidance_scale=3.0, width=width, height=height).images[0]
|
|
|
352 |
if Model == 'CascadeXL':
|
353 |
torch.cuda.empty_cache()
|
354 |
from diffusers import StableCascadeCombinedPipeline
|
355 |
+
pipe = StableCascadeCombinedPipeline.from_pretrained("stabilityai/stable-cascade", torch_dtype=torch.float16)
|
356 |
pipe.enable_xformers_memory_efficient_attention()
|
357 |
pipe = pipe.to(device)
|
358 |
image = pipe(prompt=Prompt, negative_prompt=negative_prompt, num_inference_steps=10, prior_num_inference_steps=20, prior_guidance_scale=3.0, width=width, height=height).images[0]
|