Snb-ai commited on
Commit
4ef65f7
·
1 Parent(s): 11a7faa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -5,8 +5,7 @@ from diffusers import StableDiffusionPipeline
5
 
6
  #model_id = "hakurei/waifu-diffusion"
7
  pipe = StableDiffusionPipeline.from_pretrained("hakurei/waifu-diffusion", torch_type=torch.float16, revision="fp16")
8
- pipe = pipe.to("cpu")
9
- #torch.backends.cudnn.benchmark = True
10
  num_samples = 2
11
 
12
  def infer(prompt):
 
5
 
6
  #model_id = "hakurei/waifu-diffusion"
7
  pipe = StableDiffusionPipeline.from_pretrained("hakurei/waifu-diffusion", torch_type=torch.float16, revision="fp16")
8
+ torch.backends.cudnn.benchmark = True
 
9
  num_samples = 2
10
 
11
  def infer(prompt):