lixiang46 commited on
Commit
5bc0c16
1 Parent(s): d72888b
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -65,7 +65,9 @@ pipe_canny = StableDiffusionXLControlNetImg2ImgPipeline(
65
  for pipe in [pipe_depth]:
66
  if hasattr(pipe.unet, 'encoder_hid_proj'):
67
  pipe.unet.text_encoder_hid_proj = pipe.unet.encoder_hid_proj
68
- pipe.load_ip_adapter(f'{ckpt_dir_ipa}' , subfolder="", weight_name=["ip_adapter_plus_general.bin"])
 
 
69
 
70
  @spaces.GPU
71
  def process_canny_condition(image, canny_threods=[100,200]):
 
65
  for pipe in [pipe_depth]:
66
  if hasattr(pipe.unet, 'encoder_hid_proj'):
67
  pipe.unet.text_encoder_hid_proj = pipe.unet.encoder_hid_proj
68
+
69
+ pipe_depth.load_ip_adapter(f'{ckpt_dir_ipa}' , subfolder="", weight_name=["ip_adapter_plus_general.bin"])
70
+ pipe_canny.load_ip_adapter(f'{ckpt_dir_ipa}' , subfolder="", weight_name=["ip_adapter_plus_general.bin"])
71
 
72
  @spaces.GPU
73
  def process_canny_condition(image, canny_threods=[100,200]):