Update pipeline_imagedream.py
Browse files- 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
|
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()
|