ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

Support XLabs IPAdapter

Open JorgeR81 opened this issue 1 year ago • 4 comments

Feature Idea

Add support for XLabs IPAdapter https://huggingface.co/XLabs-AI/flux-ip-adapter

Existing Solutions

Now, it requires custom nodes from XLabs. https://github.com/XLabs-AI/x-flux-comfyui

Other

We also need XLabs custom nodes to use the Unet loader and GUFF models. https://github.com/comfyanonymous/ComfyUI/issues/4482

JorgeR81 avatar Aug 21 '24 08:08 JorgeR81

What's the benefits of using Unet Loader ? With a checkpoint loader we can use a lot more features from other packages

tetsuoo-online avatar Aug 21 '24 20:08 tetsuoo-online

The Unet loader has several benefits:

  • The Unet loader allows to use the ( larger ) fp16 versions of the Flux models and the T5 text encoder, which give better quality than fp8. You can also combine a fp16 model with a fp8 text encoder and vice versa. https://comfyanonymous.github.io/ComfyUI_examples/flux/#regular-full-version

  • The Unet allows the use of Flux finetunes, without the T5 encoder, because it can be loaded separately. This saves almost 5GB per Flux model you have, considering the checkpoints usually all have the same T5 encoder in fp8 format. ( e.g. see the size difference between the Unet (11.08 GB) and Checkpoint (15.91 GB ), both fp8 versions, of this finetune ). https://civitai.com/models/652009/fluxrealisticv1

  • The Flux GGUF versions ( Q4, Q8, etc... ) are also loaded via a custom Unet loader. They give similar quality as fp16 or fp8 formats, with smaller sizes.   https://github.com/city96/ComfyUI-GGUF

JorgeR81 avatar Aug 21 '24 21:08 JorgeR81

Thank you

tetsuoo-online avatar Aug 22 '24 10:08 tetsuoo-online

Oh, right ! Perhaps the Comfy UI team wants to wait and see if @cubiq is going to release it's custom nodes for this, like on previous models. I'm OK with that !

https://github.com/cubiq/ComfyUI_IPAdapter_plus/issues/687

JorgeR81 avatar Aug 22 '24 17:08 JorgeR81