Manjushri commited on
Commit
dc0b93e
·
1 Parent(s): d0b9041

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,9 +7,9 @@ from diffusers import DiffusionPipeline
7
 
8
  device = "cuda" if torch.cuda.is_available() else "cpu"
9
 
10
- pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-0.9", variant="fp16", safety_checker=None)
11
  pipe = pipe.to(device)
12
- pipe.unet = torch.compile(pipe.unet, mode="reduce-overhead", fullgraph=True)
13
 
14
  def genie (prompt, negative_prompt, scale, steps, seed):
15
  generator = torch.Generator(device=device).manual_seed(seed)
 
7
 
8
  device = "cuda" if torch.cuda.is_available() else "cpu"
9
 
10
+ pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-0.9")
11
  pipe = pipe.to(device)
12
+ #pipe.unet = torch.compile(pipe.unet, mode="reduce-overhead", fullgraph=True)
13
 
14
  def genie (prompt, negative_prompt, scale, steps, seed):
15
  generator = torch.Generator(device=device).manual_seed(seed)