From e61b2364e2080fd00ac1b629ff58753604c871c6 Mon Sep 17 00:00:00 2001 From: shaseng Date: Wed, 4 Sep 2024 17:21:21 +0800 Subject: [PATCH] README --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8e683e4..d8ea071 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # ComfyUI-Long-CLIP This project implements the comfyui for long-clip, currently supporting the replacement of clip-l. For SD1.5, the SeaArtLongClip module can be used to replace the original clip in the model, expanding the token length from 77 to 248. Through testing, we found that long-clip improves the quality of the generated images. As for the SDXL model, since the clip-long model for clip-g has not been released, our processing procedure is as follows: for smaller tokens, we expand them by an integer multiple of the original max_len, and since the last added are pad_tokens, we trim the excess part. Given that clip-g features occupy a larger proportion in SDXL, you may notice more detailed images. Finally, if you like our project, please give us a thumbs up. +Thanks to [zer0int](https://github.com/zer0int)'s work, now long-clip provides support for flux. + ## Start ``` git clone https://github.com/comfyanonymous/ComfyUI.git @@ -12,4 +14,5 @@ Download [LongCLIP-L](https://huggingface.co/BeichenZhang/LongCLIP-L) to models/ ## Workflow We have specifically prepared examples for SD1.5 and SDXL for your use. To simplify the demonstration, our examples are straightforward, and you do not need to install any additional plugins. This plugin also supports operations such as clip-skip. ![SD1.5](./image/SD1-5-long.png) -![SDXL](./image/SDXL-long.png) \ No newline at end of file +![SDXL](./image/SDXL-long.png) +![FLUX.1](./image/Flux.1-long.png) \ No newline at end of file