DSnake333 commited on
Commit
ade3fbf
·
verified ·
1 Parent(s): d2c4f3b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ model_id = "sam749/Photon-v1"
8
  vae = AutoencoderKL.from_pretrained("stabilityai/sd-vae-ft-mse", torch_dtype=torch.float16 if device == "cuda" else torch.float32).to(device)
9
  pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16 if device == "cuda" else torch.float32)
10
  pipe.vae = vae
11
- pipe.to("cuda")
12
 
13
  pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config)
14
 
 
8
  vae = AutoencoderKL.from_pretrained("stabilityai/sd-vae-ft-mse", torch_dtype=torch.float16 if device == "cuda" else torch.float32).to(device)
9
  pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16 if device == "cuda" else torch.float32)
10
  pipe.vae = vae
11
+ pipe.to(device)
12
 
13
  pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config)
14