From fa7478179edca06b6f03e92a904075f19d4d787c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=97=A7=E5=83=A7?= Date: Mon, 8 Apr 2024 19:12:58 +0800 Subject: [PATCH] feat: readme --- README-CN.md | 4 ++++ README.md | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/README-CN.md b/README-CN.md index 883935f..1d09b57 100644 --- a/README-CN.md +++ b/README-CN.md @@ -1,5 +1,9 @@ # comfyui-long-clip 本项目是long-clip的comfyui实现,目前支持clip-l的替换,对于SD1.5可以使用SeaArtLongClip模块加载后替换模型中原本的clip,token的长度由77扩大至248,经过测试我们发现long-clip对成图质量有提升作用,对于SDXL模型由于clip-g的clip-long模型没有出现,所以我们的处理流程如下,对于较小的token按照原本max_len的整数倍扩大,由于最后多出来的为pad_token,所以对多余部分进行了裁剪,由于SDXL中clip-g的特征占比更多,您可能看见的更多是画面出现更多细节,最后喜欢本项目请帮我们点赞 + +## start +下载[LongCLIP-L](https://huggingface.co/BeichenZhang/LongCLIP-L)到 models/checkpoints,同时感谢[Long-CLIP](https://github.com/beichenzbc/Long-CLIP/tree/main)开放权重,后续LongCLIP-G权重开放后,我们会同步支持! + ## Workflow 我们特意准备了SD1.5和SDXL的使用例子,为了简化演示,我们例子简单,您无需安装其他插件 ![SD1.5](./image/SD1-5-long.png) diff --git a/README.md b/README.md index f0b52a3..5307fc2 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,9 @@ # 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. + +## start +Download [LongCLIP-L](https://huggingface.co/BeichenZhang/LongCLIP-L) to models/checkpoints, and thanks to [Long-CLIP](https://github.com/beichenzbc/Long-CLIP/tree/main) for making the weights available. Once the LongCLIP-G weights are released, we will also support them! + ## 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)