Git Product home page Git Product logo

comfyui_ipadapter_plus's Introduction

ComfyUI IPAdapter plus

ComfyUI reference implementation for IPAdapter models.

The IPAdapter are very powerful models for image-to-image conditioning. The subject or even just the style of the reference image(s) can be easily transferred to a generation. Think of it as a 1-image lora.

Sponsorship

If you like my work and wish to see updates and new features please consider sponsoring my projects.

Not to mention the documentation and videos tutorials. Check my ComfyUI Advanced Understanding videos on YouTube for example, part 1 and part 2

The only way to keep the code open and free is by sponsoring its development. The more sponsorships the more time I can dedicate to my open source projects.

Please consider a Github Sponsorship or PayPal donation (Matteo "matt3o" Spinelli). For sponsorships of $50+, let me know if you'd like to be mentioned in this readme file, you can find me on Discord or matt3o ๐ŸŒ gmail.com.

Important updates

2024/04/12: Added scheduled weights. Useful for animations.

2024/04/09: Added experimental Style/Composition transfer for SD1.5. The results are often not as good as SDXL. Optimal weight seems to be from 0.8 to 2.0. The Style+Composition node doesn't work for SD1.5 at the moment, you can only alter either the Style or the Composition, I need more time for testing. Old workflows will still work but you may need to refresh the page and re-select the weight type!

2024/04/04: Added Style & Composition node. It's now possible to apply both Style and Composition from the same node

2024/04/01: Added Composition only transfer weight type for SDXL

2024/03/27: Added Style transfer weight type for SDXL

2024/03/23: Complete code rewrite!. This is a breaking update! Your previous workflows won't work and you'll need to recreate them. You've been warned! After the update, refresh your browser, delete the old IPAdapter nodes and create the new ones.

(I removed all previous updates because they were about the previous version of the extension)

Example workflows

The examples directory has many workflows that cover all IPAdapter functionalities.

IPAdapter Example workflow

Video Tutorials

Watch the video

โญ New IPAdapter features

The following videos are about the previous version of IPAdapter, but they still contain valuable information.

๐Ÿค“ Basic usage video, ๐Ÿš€ Advanced features video, ๐Ÿ‘บ Attention Masking video, ๐ŸŽฅ Animation Features video

Installation

Download or git clone this repository inside ComfyUI/custom_nodes/ directory or use the Manager. IPAdapter always requires the latest version of ComfyUI. If something doesn't work be sure to upgrade. Beware that the automatic update of the manager sometimes doesn't work and you may need to upgrade manually.

There's now a Unified Model Loader, for it to work you need to name the files exactly as described below. The legacy loaders work with any file name but you have to select them manually. The models can be placed into sub-directories.

Remember you can also use any custom location setting an ipadapter entry in the extra_model_paths.yaml file.

FaceID models require insightface, you need to install it in your ComfyUI environment. Check this issue for help. Remember that most FaceID models also need a LoRA.

For the Unified Loader to work the files need to be named exactly as shown in the table below.

Most FaceID models require a LoRA. If you use the IPAdapter Unified Loader FaceID it will be loaded automatically if you follow the naming convention. Otherwise you have to load them manually, be careful each FaceID model has to be paired with its own specific LoRA.

All models can be found on huggingface.

Community's models

The community has baked some interesting IPAdapter models.

if you know of other models please let me know and I will add them to the unified loader.

Generic suggestions

There are many workflows included in the examples directory. Please check them before asking for support.

Usually it's a good idea to lower the weight to at least 0.8 and increase the number steps. To increase adherece to the prompt you may try to change the weight type in the IPAdapter Advanced node.

Nodes reference

I'm (slowly) documenting all nodes. Please check the Nodes reference.

Troubleshooting

Please check the troubleshooting before posting a new issue. Also remember to check the previous closed issues.

Current sponsors

It's only thanks to generous sponsors that the whole community can enjoy open and free software. Please join me in thanking the following companies and individuals!

Gold sponsors

Kaiber.ai

Companies supporting my projects

Esteemed individuals

One-time Extraordinaire

Credits

comfyui_ipadapter_plus's People

Contributors

cubiq avatar laksjdjf avatar eltociear avatar sanguivore-easyco avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.