laksjdjf / IPAdapter-ComfyUI

experimental
GNU General Public License v3.0
214 stars 13 forks source link

clip vision encode #20

Closed cubiq closed 12 months ago

cubiq commented 12 months ago

hope you don't mind my asking, why aren't you using the clip vision encode node anymore? Every time there's a change in comfy clipvision the IPAdapter node might break (as it happened recently)

laksjdjf commented 12 months ago

That's a good question.

There are two reasons why I do not use CLIPVisionEncode.

  1. CLIPVisionEncode does not output hidden_states, but IP-Adapter-plus requires it.
  2. IP-Adapter-plus needs a black image for the negative side. I think it is inconvenient for users to prepare black image.

Relevant parts of the code: https://github.com/laksjdjf/IPAdapter-ComfyUI/blob/90e65311f6a03ac52b57a0d2d4aeaab75484c739/ip_adapter.py#L232-L241

cubiq commented 12 months ago

that's interesting. thanks for your answer