kiigii commited on
Commit
354c31f
·
verified ·
1 Parent(s): cbb9c6a

Update pipeline_imagedream.py

Browse files
Files changed (1) hide show
  1. pipeline_imagedream.py +1 -1
pipeline_imagedream.py CHANGED
@@ -75,7 +75,7 @@ class ImageDreamPipeline(StableDiffusionPipeline):
75
  )
76
  print("IP-Adapter Loaded.")
77
 
78
- if pretrained_model_name_or_path_or_dict == "kiigii/imagedream-ipmv-diffusers":
79
  setattr(self.image_encoder, "visual_projection", nn.Identity())
80
  add_imagedream_attn_processor(self.unet)
81
  logging.set_verbosity_error()
 
75
  )
76
  print("IP-Adapter Loaded.")
77
 
78
+ if weight_name == "ip-adapter-plus_imagedream.bin":
79
  setattr(self.image_encoder, "visual_projection", nn.Identity())
80
  add_imagedream_attn_processor(self.unet)
81
  logging.set_verbosity_error()