Manjushri commited on
Commit
106ca56
·
verified ·
1 Parent(s): d0acd83

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -15,7 +15,7 @@ def genie (Model, Prompt, negative_prompt, height, width, scale, steps, seed, pr
15
 
16
  if Model == "PhotoReal":
17
  torch.cuda.empty_cache()
18
- pipe = DiffusionPipeline.from_pretrained("circulus/canvers-real-v3.9.1", torch_dtype=torch.bfloat16, safety_checker=None) if torch.cuda.is_available() else DiffusionPipeline.from_pretrained("circulus/canvers-real-v3.9.1")
19
  pipe.enable_xformers_memory_efficient_attention()
20
  pipe = pipe.to(device)
21
  torch.cuda.empty_cache()
@@ -26,7 +26,7 @@ def genie (Model, Prompt, negative_prompt, height, width, scale, steps, seed, pr
26
 
27
  if Model == "Animagine XL 4":
28
  torch.cuda.empty_cache()
29
- animagine = DiffusionPipeline.from_pretrained("cagliostrolab/animagine-xl-4.0", torch_dtype=torch.bfloat16, safety_checker=None) if torch.cuda.is_available() else DiffusionPipeline.from_pretrained("cagliostrolab/animagine-xl-4.0")
30
  animagine.enable_xformers_memory_efficient_attention()
31
  animagine = animagine.to(device)
32
  torch.cuda.empty_cache()
 
15
 
16
  if Model == "PhotoReal":
17
  torch.cuda.empty_cache()
18
+ pipe = DiffusionPipeline.from_pretrained("circulus/canvers-real-v3.9.1", torch_dtype=torch.float16, safety_checker=None) if torch.cuda.is_available() else DiffusionPipeline.from_pretrained("circulus/canvers-real-v3.9.1")
19
  pipe.enable_xformers_memory_efficient_attention()
20
  pipe = pipe.to(device)
21
  torch.cuda.empty_cache()
 
26
 
27
  if Model == "Animagine XL 4":
28
  torch.cuda.empty_cache()
29
+ animagine = DiffusionPipeline.from_pretrained("cagliostrolab/animagine-xl-4.0", torch_dtype=torch.float16, safety_checker=None) if torch.cuda.is_available() else DiffusionPipeline.from_pretrained("cagliostrolab/animagine-xl-4.0")
30
  animagine.enable_xformers_memory_efficient_attention()
31
  animagine = animagine.to(device)
32
  torch.cuda.empty_cache()