LiuZichen commited on
Commit
4420ac6
·
verified ·
1 Parent(s): b20a033

Update MagicQuill/scribble_color_edit.py

Browse files
Files changed (1) hide show
  1. MagicQuill/scribble_color_edit.py +2 -1
MagicQuill/scribble_color_edit.py CHANGED
@@ -41,7 +41,8 @@ class ScribbleColorEditModel():
41
  self.brushnet_loader.inpaint_files = get_files_with_extension('inpaint')
42
  print("self.brushnet_loader.inpaint_files: ", get_files_with_extension('inpaint'))
43
  self.brushnet = self.brushnet_loader.brushnet_loading(brushnet_name, dtype)[0]
44
-
 
45
  def process(self, ckpt_name, image, colored_image, positive_prompt, negative_prompt, mask, add_mask, remove_mask, grow_size, stroke_as_edge, fine_edge, edge_strength, color_strength, inpaint_strength, seed, steps, cfg, sampler_name, scheduler, base_model_version='SD1.5', dtype='float16', palette_resolution=2048):
46
  if ckpt_name != self.ckpt_name:
47
  self.ckpt_name = ckpt_name
 
41
  self.brushnet_loader.inpaint_files = get_files_with_extension('inpaint')
42
  print("self.brushnet_loader.inpaint_files: ", get_files_with_extension('inpaint'))
43
  self.brushnet = self.brushnet_loader.brushnet_loading(brushnet_name, dtype)[0]
44
+
45
+ @torch.inference_mode()
46
  def process(self, ckpt_name, image, colored_image, positive_prompt, negative_prompt, mask, add_mask, remove_mask, grow_size, stroke_as_edge, fine_edge, edge_strength, color_strength, inpaint_strength, seed, steps, cfg, sampler_name, scheduler, base_model_version='SD1.5', dtype='float16', palette_resolution=2048):
47
  if ckpt_name != self.ckpt_name:
48
  self.ckpt_name = ckpt_name