Cognomen commited on
Commit
75ed273
Β·
1 Parent(s): b1eac09

pipeline to cuda

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -28,7 +28,7 @@ pipe = StableDiffusionControlNetPipeline.from_pretrained(
28
  "./models/wd-1-5-b2",
29
  controlnet=cnet,
30
  torch_dtype=torch.float16,
31
- )
32
  pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config)
33
  #pipe.enable_model_cpu_offload()
34
  #pipe.enable_xformers_memory_efficient_attention()
 
28
  "./models/wd-1-5-b2",
29
  controlnet=cnet,
30
  torch_dtype=torch.float16,
31
+ ).to("cuda")
32
  pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config)
33
  #pipe.enable_model_cpu_offload()
34
  #pipe.enable_xformers_memory_efficient_attention()