LIU, Zichen commited on
Commit
54f5ad4
1 Parent(s): bda0f89

update download button

Browse files
MagicQuill/scribble_color_edit.py CHANGED
@@ -24,7 +24,7 @@ class ScribbleColorEditModel():
24
  self.ksampler = KSampler()
25
  self.vae_decoder = VAEDecode()
26
  self.blender = BlendInpaint()
27
- self.ckpt_name = "SD1.5/realisticVisionV60B1_v51VAE.safetensors"
28
  with torch.no_grad():
29
  self.model, self.clip, self.vae = self.checkpoint_loader.load_checkpoint(self.ckpt_name)
30
  self.load_models('SD1.5', 'float16')
@@ -33,11 +33,7 @@ class ScribbleColorEditModel():
33
  if base_model_version == "SD1.5":
34
  edge_controlnet_name = "control_v11p_sd15_scribble.safetensors"
35
  color_controlnet_name = "color_finetune.safetensors"
36
- brushnet_name = "brushnet/random_mask_brushnet_ckpt/diffusion_pytorch_model.safetensors"
37
- # elif base_model_version == "SDXL":
38
- # edge_controlnet_name = "controlnet-scribble-sdxl-1.0.safetensors"
39
- # color_controlnet_name = "colorGridControlnet_v10.safetensors"
40
- # brushnet_name = "brushnet_xl/random_mask_brushnet_ckpt_sdxl_v0/diffusion_pytorch_model.safetensors"
41
  else:
42
  raise ValueError("Invalid base_model_version, not supported yet!!!: {}".format(base_model_version))
43
  self.edge_controlnet = self.controlnet_loader.load_controlnet(edge_controlnet_name)[0]
 
24
  self.ksampler = KSampler()
25
  self.vae_decoder = VAEDecode()
26
  self.blender = BlendInpaint()
27
+ self.ckpt_name = os.path.normpath("SD1.5/realisticVisionV60B1_v51VAE.safetensors")
28
  with torch.no_grad():
29
  self.model, self.clip, self.vae = self.checkpoint_loader.load_checkpoint(self.ckpt_name)
30
  self.load_models('SD1.5', 'float16')
 
33
  if base_model_version == "SD1.5":
34
  edge_controlnet_name = "control_v11p_sd15_scribble.safetensors"
35
  color_controlnet_name = "color_finetune.safetensors"
36
+ brushnet_name = os.path.normpath("brushnet/random_mask_brushnet_ckpt/diffusion_pytorch_model.safetensors")
 
 
 
 
37
  else:
38
  raise ValueError("Invalid base_model_version, not supported yet!!!: {}".format(base_model_version))
39
  self.edge_controlnet = self.controlnet_loader.load_controlnet(edge_controlnet_name)[0]
gradio_magicquill-0.0.1-py3-none-any.whl CHANGED
Binary files a/gradio_magicquill-0.0.1-py3-none-any.whl and b/gradio_magicquill-0.0.1-py3-none-any.whl differ