Git Product home page Git Product logo

ipadapter-comfyui's Introduction

Important

I decided to move my development to the better cubiq's repository.

This repository may not be available anymore due to future updates of ComfyUI.

IPAdapter-ComfyUI

IP-AdapterComfyUIカスタムノードです。

Install

  1. custom_nodesにclone
  2. IPAdapter-ComfyUI/modelsにip-adapterのモデル(例:SDv1.5用モデル)を入れる。
  3. ComfyUI/models/clip_visionにCLIP_visionモデル(例:SDv1.5用モデル)を入れる。

Usage

ip-adapter.jsonを参照してください。

Input

  • model:modelをつなげてください。LoRALoaderなどとつなげる順番の違いについては影響ありません。
  • image:画像をつなげてください。
  • clip_visionLoad CLIP Visionの出力とつなげてください。
  • mask:任意です。マスクをつなげると適用領域を制限できます。必ず生成画像と同じ解像度にしてください。
  • weight:適用強度です。
  • model_name:使うモデルのファイル名を指定してください。
  • dtype:黒い画像が生成される場合、fp32を選択してください。ほとんど生成時間が変わらないのでずっとfp32のままでもよいかもしれません。

Output

  • MODEL:KSampler等につなげてください。
  • CLIP_VISION_OUTPUT:ふつうは気にしなくていいです。Revision等を使うときに無駄な計算を省くことができます。

Multiple condition.

ノードを自然につなげることで、複数画像を入力することができます。Maskと組み合わせることで、左右で条件付けを分けるみたいなこともできます。 image 背景も分割されてしまうことが問題ですね^^;

Hint

  • 入力画像は自動で**切り抜きによって正方形にされるので、避けたい場合は予め切り取り処理をするか、preprocess/furusu Image cropを使うとよいかもしれません。preprocess/furusu Image cropにはパディングをするpaddingとキャラの顔位置を基準に切り取りをするface_cropがあります。face_cropに必要なlbpcascade_animeface.xmlは自動ダウンロードできない場合があるので、その場合は手動でリポジトリ直下に入れてください。

Bug

  • Apply ControlNetはなぜかバグるので、代わりにApply ControlNet(Advanced)を使ってください。 多分治った。

Models

CITIATION

IP-Adapter:https://github.com/tencent-ailab/IP-Adapter

ipadapter-comfyui's People

Contributors

laksjdjf avatar undrash avatar kosinkadink 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.