jke94 commited on
Commit
fe6b64b
1 Parent(s): fcba6a3

Add pipe.to("cuda")

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -37,7 +37,9 @@ def predict(image_input, prompt, negative_prompt, sd_models_dropdown):
37
  controlnet=controlnet,
38
  torch_dtype=torch.float16
39
  )
40
-
 
 
41
  # speed up diffusion process with faster scheduler and memory optimization
42
  pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config)
43
 
 
37
  controlnet=controlnet,
38
  torch_dtype=torch.float16
39
  )
40
+
41
+ pipe = pipe.to("cuda")
42
+
43
  # speed up diffusion process with faster scheduler and memory optimization
44
  pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config)
45