abhishek HF staff commited on
Commit
b80dc78
1 Parent(s): e1d0b29

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -35,8 +35,9 @@ pipe = StableDiffusionControlNetInpaintPipeline.from_pretrained(
35
  torch_dtype=torch.float16,
36
  )
37
  pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config)
38
- pipe.enable_model_cpu_offload()
39
- pipe.enable_xformers_memory_efficient_attention()
 
40
 
41
 
42
  with gr.Blocks() as demo:
35
  torch_dtype=torch.float16,
36
  )
37
  pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config)
38
+ #pipe.enable_model_cpu_offload()
39
+ #pipe.enable_xformers_memory_efficient_attention()
40
+ pipe = pipe.to(device)
41
 
42
 
43
  with gr.Blocks() as demo: