2024-08-27 08:46:20 -05:00
2024-04-08 19:06:17 +08:00
2024-08-15 13:41:43 +02:00
2024-08-15 13:44:31 +02:00
2024-04-08 19:29:16 +08:00
2024-08-27 08:46:20 -05:00

ComfyUI-Long-CLIP

This project implements the comfyui for long-clip, currently supporting the replacement of clip-l. For SD1.5 and Flux.1, 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, 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

In the ComfyUI/custom_nodes directory:

git clone https://github.com/zer0int/ComfyUI-Long-CLIP.git

Download for 1.5 and Flux.1 LongCLIP-L to models/checkpoints, and thanks to Long-CLIP for making the weights available. Download for SDXL LongCLIP-B to models/checkpoints.

Workflow

We have specifically prepared examples for SD1.5, SDXL, and flux 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 SDXL FLUX.1

S
Description
No description provided
Readme
1.9 MiB
Languages
Python 100%