Image Generation AI with ComfyUI: IPAdapter Edition

2 min read
Modified
Progress 6 / 15
Table of Contents

IPAdapter (Image Prompt Adapter) of Stable Diffusion is a technology further enhancing Stable Diffusion which is image generation model. This technology enables input of image prompt in addition to text prompt, allowing more accurate control of style and content of generated image. With this technology, user can generate images having specific art style, composition, colors etc. for example, which is very useful in creative work.

Please refer to article below for explanation of specific method.

This time I will introduce method to actually use IPAdapter using ComfyUI. Furthermore, through generation results, I will verify its effect.

Work Flow

1. Introduction of ComfyUI

Please refer to this article.

【Stable Diffusion】ComfyUIを使って画像生成AIで遊んでみよう【導入編】

>-

blog.otama-playground.com

2. Introduction of Custom Node

Introduce ComfyU_IPAdapter_plus. Either from ComfyUI-Manager or method using git clone is fine.

GitHub - cubiq/ComfyUI_IPAdapter_plus

Contribute to cubiq/ComfyUI_IPAdapter_plus development by creating an account on GitHub.

github.com

3. Download model of IPAdapter

Download ones to use from below and place in /ComfyUI/models/ipadapter.

Note: Create ipadapter folder if not exists

Copy-paste list from repository below

Download below and place in /ComfyUI/models/clip_vision. Please change filename matching name of ↓. (If you forget, it won’t work with error)

4. Create Workflow

Minimum configuration becomes like this. Yellow is node added from default workflow.

Workflow
Workflow
Workflow addition part expansion
Workflow addition part expansion

Generation Result 1

Put image of Mona Lisa, and try replacing only person with bearded man.

Prompt

a man with beard

Input Image

Input Image
Input Image

Generated Image

Generated Image
Generated Image

Generation Result 2 (Face Only Specification)

If using Face Model, you can generate with specified face. Please use image of face only when using this function.

Prompt

a man playing soccer, stadium, grass field, dribbling

Input Image
Input Image
Generated Image
Generated Image

Conclusion

In this article, I verified basic usages of IPAdapter (Image Prompt Adapter) of Stable Diffusion and its effect. By using IPAdapter, combining image prompt in addition to text prompt enables more intuitive and detailed image generation. Especially when generating images having specific art style, composition, colors etc., this technology is very useful. Please try it.

If you want to try other techniques related to image generation, please utilize the link collection below.

Stable Diffusionガイド:画像生成に役立つリンク集

>-

blog.otama-playground.com