ComfyUI-Long-CLIP
https://github.com/SeaArtLab/ComfyUI-Long-CLIPSeaArtLab/ComfyUI-Long-CLIP
参考 : https://github.com/zer0int/ComfyUI-Long-CLIPzer0int/ComfyUI-Long-CLIP
CLIPをLong-CLIPに置き換えて画像生成できるようにするComfyUIカスタムノード
Long-CLIPにするとトークンの長さを77から238に拡張できる
Fluxの場合、Long-CLIPはT5に固有の長いトークンコンテキストをうまく補完します
LongCLIPモデル
https://huggingface.co/BeichenZhang/LongCLIP-L/tree/mainBeichenZhang/LongCLIP-L
https://huggingface.co/zer0int/LongCLIP-GmP-ViT-L-14/tree/mainzer0int/LongCLIP-GmP-ViT-L-14
LongCLIP-Lのファインチューニング
$ path\to\ComfyUI\models\clip
に置く
ComfyUI_workflow
それぞれノードが違うので注意
SD1.5
https://gyazo.com/639054f3200029ac677688268e8a0123
Long-CLIP_SD1.5.json
SeaArtLongXLClipMergeノード
🚨SDXL / SD3 / Fluxに関しては公式のCLIPLoaderでLong-CLIPで対応したので必要なし
SDXL
https://gyazo.com/37b6eba316a83d51c4ab8fa9833dc9d5
Long-CLIP_SDXL.json
SeaArtLongXLClipMergeノード
Flux.1 (GGUF版)
https://gyazo.com/bb500f30be1e0daf6b5b7fb5eeee0c0e
Long-CLIP_Flux.json
LongCLIPTextEncodeFluxノード
≒WebUI Stable DiffusionベースモデルのCLIPの重みを良いやつに変更する