BertChristiaens commited on
Commit
cd7e597
1 Parent(s): 146caa2
Files changed (1) hide show
  1. models.py +3 -3
models.py CHANGED
@@ -31,18 +31,18 @@ class ControlNetPipeline:
31
  def __init__(self):
32
  self.in_use = False
33
  self.controlnet = ControlNetModel.from_pretrained(
34
- "BertChristiaens/controlnet-seg-room", torch_dtype=torch.float32)
35
 
36
  self.pipe = StableDiffusionControlNetInpaintImg2ImgPipeline.from_pretrained(
37
  "runwayml/stable-diffusion-inpainting",
38
  controlnet=self.controlnet,
39
  safety_checker=None,
40
- torch_dtype=torch.float32
41
  )
42
 
43
  self.pipe.scheduler = UniPCMultistepScheduler.from_config(self.pipe.scheduler.config)
44
  self.pipe.enable_xformers_memory_efficient_attention()
45
- self.pipe.enable_attention_slicing("max")
46
  self.pipe = self.pipe.to("cuda")
47
 
48
  self.waiting_queue = []
 
31
  def __init__(self):
32
  self.in_use = False
33
  self.controlnet = ControlNetModel.from_pretrained(
34
+ "BertChristiaens/controlnet-seg-room", torch_dtype=torch.float16)
35
 
36
  self.pipe = StableDiffusionControlNetInpaintImg2ImgPipeline.from_pretrained(
37
  "runwayml/stable-diffusion-inpainting",
38
  controlnet=self.controlnet,
39
  safety_checker=None,
40
+ torch_dtype=torch.float16
41
  )
42
 
43
  self.pipe.scheduler = UniPCMultistepScheduler.from_config(self.pipe.scheduler.config)
44
  self.pipe.enable_xformers_memory_efficient_attention()
45
+ # self.pipe.enable_attention_slicing("max")
46
  self.pipe = self.pipe.to("cuda")
47
 
48
  self.waiting_queue = []