Skip to content

[IP-Adapter] add a 'unload_ip_adapter' method #6180

@yiyixuxu

Description

@yiyixuxu

fix #6088

Is anyone interested in adding a unload_ip_adapter method? it needs to undo everything we did with load_ip_adapter method:

def load_ip_adapter(

It needs to do below 3 things:

  1. remove image_encoder
  2. undo the changes we made to the UNet structure here ( ), i.e.
    python self.encoder_hid_proj = None self.config.encoder_hid_dim_type = None
  3. reset the attention processor

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions