1
stars
0
commits
Python
primary language
Oct 10, 2024
updated
2024/10/06
story-diffusion
ms-diffusion
story-maker
kolor
Flux and PULID-FLUX
In the ./ComfyUI /custom_node directory, run the following:
git clone https://github.com/smthemex/ComfyUI_StoryDiffusion.git
pip install -r requirements.txt
if using photomaker V2,pulid-flux,kolor,story-make:
pip install insightface==0.7.3 or new
If the module is missing, please pip install
3.1 base 1:(choice repo_id or ckpt_name)
3.1.1 ckpt_name: for example: Jumpernaut XL_v9-RunDiffusionPhoto_v2. safetensors
3.1.2 repo_id:"stablityai/table diffusion xl base-1.0" or local "x:/xx/table diffusion xl base-1.0" # support playground-v2.5-1024px-aesthetic
3.2 base 2:
photomaker-v1.bin link
photomaker-v2.bin link
├── ComfyUI/models/photomaker/
| ├── photomaker-v1.bin
| ├── photomaker-v2.bin
3.3 optional function
3.3.1 if using dual role same frame function(ms-diffuion):
Need download "ms_adapter.bin" : link
Need clip_vision model "clip_g.safetensors" or other base from "CLIP-ViT-bigG-14-laion2B-39B-b160k";
├── ComfyUI/models/photomaker/
| ├── ms_adapter.bin
├── ComfyUI/models/clip_vision/
| ├── clip_vision_g.safetensors(2.35G) or CLIP-ViT-bigG-14-laion2B-39B-b160k.safetensors(3.43G)
if using controlnet in ms-diffusion(Control_img image preprocessing, please use other nodes );
├── ComfyUI/models/controlnet/
| ├──xinsir/controlnet-openpose-sdxl-1.0
| ├──xinsir/controlnet-scribble-sdxl-1.0
| ├──diffusers/controlnet-canny-sdxl-1.0
| ├──diffusers/controlnet-depth-sdxl-1.0
| ├──controlnet-zoe-depth-sdxl-1.0
| ├──TheMistoAI/MistoLine
| ├──xinsir/controlnet-tile-sdxl-1.0
3.3.2 if using kolors:
Kwai-Kolors link
Kolors-IP-Adapter-Plus link
├── ComfyUI/models/photomaker/
| ├── ip_adapter_plus_general.bin
Kolors-IP-Adapter-FaceID-Plus link
├── ComfyUI/models/photomaker/
| ├── ipa-faceid-plus.bin
and if using Kolors-IP-Adapter-FaceID-Plus:
will auto download "DIAMONIK7777/antelopev2" insightface models....
The file structure is shown in the following figure:
├── any path/Kwai-Kolors/Kolors
| ├──model_index.json
| ├──vae
| ├── config.json
| ├── diffusion_pytorch_model.safetensors (rename from diffusion_pytorch_model.fp16.safetensors )
| ├──unet
| ├── config.json
| ├── diffusion_pytorch_model.safetensors (rename from diffusion_pytorch_model.fp16.safetensors )
| ├──tokenizer
| ├── tokenization_chatglm.py
| ├── tokenizer.model
| ├── tokenizer_config.json
| ├── vocab.txt text_encoder
| ├── text_encoder
| ├── config.json
| ├── configuration_chatglm.py
| ├── modeling_chatglm.py
| ├── pytorch_model.bin.index.json
| ├── quantization.py
| ├── tokenization_chatglm.py
| ├── tokenizer.model
| ├── tokenizer_config.json
| ├── vocab.txt
| ├── pytorch_model-00001-of-00007.bin to pytorch_model-00007-of-00007.bin
| ├── scheduler
| ├── scheduler_config.json
if using monolithic model,choice a clip vision such as: "clip-vit-large-patch14.safetensors:
├── ComfyUI/models/clip_vision/
| ├── clip-vit-large-patch14.safetensors # Kolors-IP-Adapter-Plus or Kolors-IP-Adapter-FaceID-Plus using same checkpoints.
or using default file such as below:
├── any path/Kwai-Kolors/Kolors/
| ├──Kolors-IP-Adapter-Plus # if using Kolors-IP-Adapter-Plus
| ├──model_index.json
| ├──config.json
| ├──image_encoder
| ├──config.json
| ├──preprocessor_config.json
| ├──pytorch_model.bin
| ├──tokenizer.json
| ├──tokenizer_config.json
| ├──vocab.json
| ├── clip-vit-large-patch14-336 # if using Kolors-IP-Adapter-FaceID-Plus
| ├──config.json
| ├──merges.txt
| ├──preprocessor_config.json
| ├──pytorch_model.bin
| ├──special_tokens_map.json
| ├──tokenizer.json
| ├──tokenizer_config.json
| ├──vocab.json
3.3.3 if using flux
3.3.3.1 if using fp8 repo_id
fill local flux repo dir in repo_id..
├──any_path/black-forest-labs/FLUX.1-dev
| ├──model_index.json
| ├──ae.safetensors
| ├──vae
| ├── config.json
| ├── diffusion_pytorch_model.safetensors
| ├──transformer
| ├── config.json
| ├──diffusion_pytorch_model-00001-of-00003.safetensors
| ├──diffusion_pytorch_model-00002-of-00003.safetensors
| ├──diffusion_pytorch_model-00003-of-00003.safetensors
| ├── diffusion_pytorch_model.safetensors.index.json
| ├──tokenizer
| ├── special_tokens_map.json
| ├── tokenizer_config.json
| ├── vocab.json
| ├── merges.txt
| ├──tokenizer_2
| ├── special_tokens_map.json
| ├── tokenizer_config.json
| ├── spiece.model
| ├── tokenizer.json
| ├── text_encoder
| ├── config.json
| ├── model.safetensors
| ├── text_encoder_2
| ├── config.json
| ├── model-00001-of-00002.safetensors
| ├── model-00002-of-00002.safetensors
| ├── model.safetensors.index.json
| ├── scheduler
| ├── scheduler_config.json
3.3.3.2 if using fp8 repo_id+ckpt_name
fill local flux repo dir in repo_id and choice fp8 ckpt;
├── ComfyUI/models/checkpoints/
| ├── flux1-dev-fp8.safetensors
3.3.3.3 if using nf4 repo_id+ckpt_name
fill local flux repo dir in repo_id and choice nf4 ckpt;
downlaod nf4 model link
├── ComfyUI/models/checkpoints/
| ├── rename nf4 ckpt
3.3.3.4 using flux pulid,clip+ckpt_name .
torch must > 0.24.0
optimum-quanto must >=0.2.4
pip install optimum-quanto==0.2.4
EVA02_CLIP_L_336_psz14_s6B.pt auto downlaod....link
DIAMONIK7777/antelopev2 auto downlaod....[https://huggingface.co/DIAMONIK7777/antelopev2/tree/main)
"pulid_flux_v0.9.0.safetensors" download from link
fp8 using flux1-dev-fp8.safetensors from link
make sure ae.safetensors in you FLUX.1-dev dir,example:
├── ComfyUI/models/photomaker/
| ├── pulid_flux_v0.9.0.safetensors
├── ComfyUI/models/clip_vision/
| ├── EVA02_CLIP_L_336_psz14_s6B.pt
├── ComfyUI/models/checkpoints/
| ├── flux1-dev-fp8.safetensors
├── ComfyUI/models/clip/
| ├── t5xxl_fp8_e4m3fn.safetensors
| ├── clip_l.safetensors
3.5 if using storymake..
mask.bin from link#可以自动下载
buffalo_l from link#自动下载
RMBG-1.4 from link#自动下载
├── ComfyUI/models/photomaker/
| ├── mask.bin
├── ComfyUI/models/clip_vision/
| ├── clip_vision_H.safetensors #2.4G base in laion/CLIP-ViT-H-14-laion2B-s32B-b79K
├── ComfyUI/models/buffalo_l/
| ├── 1k3d68.onnx
| ├── 2d106det.onnx
| ├── det_10g.onnx
| ├── genderage.onnx
| ├── w600k_r50.onnx
pulid-flux

comfyUI-normal
flux normal
sd1.5

story-make
img2img using controlnet and 2roles in 1 img 纯storymaker生成,最新示例 (Latest version)

img2img 纯storymaker生成,非最新示例 (outdated version examples)

flux-pulid
img2img mode use flux pulid 12G Vram,cpu Flux使用PULID功能,非最新示例(outdated version examples)

kolor-face
img2img kolor face,参数输入没变化,非最新示例 (outdated version examples)

flux-nf4

ms-diffusion


story-diffusion



<Storydiffusion_Model_Loader>
<Storydiffusion_Sampler>
<Comic_Type>
<Pre_Translate_prompt>: Pre processing of translation nodes
Tips:
StoryDiffusion
@article{zhou2024storydiffusion,
title={StoryDiffusion: Consistent Self-Attention for Long-Range Image and Video Generation},
author={Zhou, Yupeng and Zhou, Daquan and Cheng, Ming-Ming and Feng, Jiashi and Hou, Qibin},
journal={arXiv preprint arXiv:2405.01434},
year={2024}
}
IP-Adapter
@article{ye2023ip-adapter,
title={IP-Adapter: Text Compatible Image Prompt Adapter for Text-to-Image Diffusion Models},
author={Ye, Hu and Zhang, Jun and Liu, Sibo and Han, Xiao and Yang, Wei},
booktitle={arXiv preprint arxiv:2308.06721},
year={2023}
}
MS-Diffusion
@misc{wang2024msdiffusion,
title={MS-Diffusion: Multi-subject Zero-shot Image Personalization with Layout Guidance},
author={X. Wang and Siming Fu and Qihan Huang and Wanggui He and Hao Jiang},
year={2024},
eprint={2406.07209},
archivePrefix={arXiv},
primaryClass={cs.CV}
}
photomaker
@inproceedings{li2023photomaker,
title={PhotoMaker: Customizing Realistic Human Photos via Stacked ID Embedding},
author={Li, Zhen and Cao, Mingdeng and Wang, Xintao and Qi, Zhongang and Cheng, Ming-Ming and Shan, Ying},
booktitle={IEEE Conference on Computer Vision and Pattern Recognition (CVPR)},
year={2024}
}
kolors
@article{kolors,
title={Kolors: Effective Training of Diffusion Model for Photorealistic Text-to-Image Synthesis},
author={Kolors Team},
journal={arXiv preprint},
year={2024}
}
PuLID
@article{guo2024pulid,
title={PuLID: Pure and Lightning ID Customization via Contrastive Alignment},
author={Guo, Zinan and Wu, Yanze and Chen, Zhuowei and Chen, Lang and He, Qian},
journal={arXiv preprint arXiv:2404.16022},
year={2024}
}
FLUX
Python
100.0%
1
stars
0
commits
Python
primary language
Oct 10, 2024
updated
2024/10/06
story-diffusion
ms-diffusion
story-maker
kolor
Flux and PULID-FLUX
In the ./ComfyUI /custom_node directory, run the following:
git clone https://github.com/smthemex/ComfyUI_StoryDiffusion.git
pip install -r requirements.txt
if using photomaker V2,pulid-flux,kolor,story-make:
pip install insightface==0.7.3 or new
If the module is missing, please pip install
3.1 base 1:(choice repo_id or ckpt_name)
3.1.1 ckpt_name: for example: Jumpernaut XL_v9-RunDiffusionPhoto_v2. safetensors
3.1.2 repo_id:"stablityai/table diffusion xl base-1.0" or local "x:/xx/table diffusion xl base-1.0" # support playground-v2.5-1024px-aesthetic
3.2 base 2:
photomaker-v1.bin link
photomaker-v2.bin link
├── ComfyUI/models/photomaker/
| ├── photomaker-v1.bin
| ├── photomaker-v2.bin
3.3 optional function
3.3.1 if using dual role same frame function(ms-diffuion):
Need download "ms_adapter.bin" : link
Need clip_vision model "clip_g.safetensors" or other base from "CLIP-ViT-bigG-14-laion2B-39B-b160k";
├── ComfyUI/models/photomaker/
| ├── ms_adapter.bin
├── ComfyUI/models/clip_vision/
| ├── clip_vision_g.safetensors(2.35G) or CLIP-ViT-bigG-14-laion2B-39B-b160k.safetensors(3.43G)
if using controlnet in ms-diffusion(Control_img image preprocessing, please use other nodes );
├── ComfyUI/models/controlnet/
| ├──xinsir/controlnet-openpose-sdxl-1.0
| ├──xinsir/controlnet-scribble-sdxl-1.0
| ├──diffusers/controlnet-canny-sdxl-1.0
| ├──diffusers/controlnet-depth-sdxl-1.0
| ├──controlnet-zoe-depth-sdxl-1.0
| ├──TheMistoAI/MistoLine
| ├──xinsir/controlnet-tile-sdxl-1.0
3.3.2 if using kolors:
Kwai-Kolors link
Kolors-IP-Adapter-Plus link
├── ComfyUI/models/photomaker/
| ├── ip_adapter_plus_general.bin
Kolors-IP-Adapter-FaceID-Plus link
├── ComfyUI/models/photomaker/
| ├── ipa-faceid-plus.bin
and if using Kolors-IP-Adapter-FaceID-Plus:
will auto download "DIAMONIK7777/antelopev2" insightface models....
The file structure is shown in the following figure:
├── any path/Kwai-Kolors/Kolors
| ├──model_index.json
| ├──vae
| ├── config.json
| ├── diffusion_pytorch_model.safetensors (rename from diffusion_pytorch_model.fp16.safetensors )
| ├──unet
| ├── config.json
| ├── diffusion_pytorch_model.safetensors (rename from diffusion_pytorch_model.fp16.safetensors )
| ├──tokenizer
| ├── tokenization_chatglm.py
| ├── tokenizer.model
| ├── tokenizer_config.json
| ├── vocab.txt text_encoder
| ├── text_encoder
| ├── config.json
| ├── configuration_chatglm.py
| ├── modeling_chatglm.py
| ├── pytorch_model.bin.index.json
| ├── quantization.py
| ├── tokenization_chatglm.py
| ├── tokenizer.model
| ├── tokenizer_config.json
| ├── vocab.txt
| ├── pytorch_model-00001-of-00007.bin to pytorch_model-00007-of-00007.bin
| ├── scheduler
| ├── scheduler_config.json
if using monolithic model,choice a clip vision such as: "clip-vit-large-patch14.safetensors:
├── ComfyUI/models/clip_vision/
| ├── clip-vit-large-patch14.safetensors # Kolors-IP-Adapter-Plus or Kolors-IP-Adapter-FaceID-Plus using same checkpoints.
or using default file such as below:
├── any path/Kwai-Kolors/Kolors/
| ├──Kolors-IP-Adapter-Plus # if using Kolors-IP-Adapter-Plus
| ├──model_index.json
| ├──config.json
| ├──image_encoder
| ├──config.json
| ├──preprocessor_config.json
| ├──pytorch_model.bin
| ├──tokenizer.json
| ├──tokenizer_config.json
| ├──vocab.json
| ├── clip-vit-large-patch14-336 # if using Kolors-IP-Adapter-FaceID-Plus
| ├──config.json
| ├──merges.txt
| ├──preprocessor_config.json
| ├──pytorch_model.bin
| ├──special_tokens_map.json
| ├──tokenizer.json
| ├──tokenizer_config.json
| ├──vocab.json
3.3.3 if using flux
3.3.3.1 if using fp8 repo_id
fill local flux repo dir in repo_id..
├──any_path/black-forest-labs/FLUX.1-dev
| ├──model_index.json
| ├──ae.safetensors
| ├──vae
| ├── config.json
| ├── diffusion_pytorch_model.safetensors
| ├──transformer
| ├── config.json
| ├──diffusion_pytorch_model-00001-of-00003.safetensors
| ├──diffusion_pytorch_model-00002-of-00003.safetensors
| ├──diffusion_pytorch_model-00003-of-00003.safetensors
| ├── diffusion_pytorch_model.safetensors.index.json
| ├──tokenizer
| ├── special_tokens_map.json
| ├── tokenizer_config.json
| ├── vocab.json
| ├── merges.txt
| ├──tokenizer_2
| ├── special_tokens_map.json
| ├── tokenizer_config.json
| ├── spiece.model
| ├── tokenizer.json
| ├── text_encoder
| ├── config.json
| ├── model.safetensors
| ├── text_encoder_2
| ├── config.json
| ├── model-00001-of-00002.safetensors
| ├── model-00002-of-00002.safetensors
| ├── model.safetensors.index.json
| ├── scheduler
| ├── scheduler_config.json
3.3.3.2 if using fp8 repo_id+ckpt_name
fill local flux repo dir in repo_id and choice fp8 ckpt;
├── ComfyUI/models/checkpoints/
| ├── flux1-dev-fp8.safetensors
3.3.3.3 if using nf4 repo_id+ckpt_name
fill local flux repo dir in repo_id and choice nf4 ckpt;
downlaod nf4 model link
├── ComfyUI/models/checkpoints/
| ├── rename nf4 ckpt
3.3.3.4 using flux pulid,clip+ckpt_name .
torch must > 0.24.0
optimum-quanto must >=0.2.4
pip install optimum-quanto==0.2.4
EVA02_CLIP_L_336_psz14_s6B.pt auto downlaod....link
DIAMONIK7777/antelopev2 auto downlaod....[https://huggingface.co/DIAMONIK7777/antelopev2/tree/main)
"pulid_flux_v0.9.0.safetensors" download from link
fp8 using flux1-dev-fp8.safetensors from link
make sure ae.safetensors in you FLUX.1-dev dir,example:
├── ComfyUI/models/photomaker/
| ├── pulid_flux_v0.9.0.safetensors
├── ComfyUI/models/clip_vision/
| ├── EVA02_CLIP_L_336_psz14_s6B.pt
├── ComfyUI/models/checkpoints/
| ├── flux1-dev-fp8.safetensors
├── ComfyUI/models/clip/
| ├── t5xxl_fp8_e4m3fn.safetensors
| ├── clip_l.safetensors
3.5 if using storymake..
mask.bin from link#可以自动下载
buffalo_l from link#自动下载
RMBG-1.4 from link#自动下载
├── ComfyUI/models/photomaker/
| ├── mask.bin
├── ComfyUI/models/clip_vision/
| ├── clip_vision_H.safetensors #2.4G base in laion/CLIP-ViT-H-14-laion2B-s32B-b79K
├── ComfyUI/models/buffalo_l/
| ├── 1k3d68.onnx
| ├── 2d106det.onnx
| ├── det_10g.onnx
| ├── genderage.onnx
| ├── w600k_r50.onnx
pulid-flux

comfyUI-normal
flux normal
sd1.5

story-make
img2img using controlnet and 2roles in 1 img 纯storymaker生成,最新示例 (Latest version)

img2img 纯storymaker生成,非最新示例 (outdated version examples)

flux-pulid
img2img mode use flux pulid 12G Vram,cpu Flux使用PULID功能,非最新示例(outdated version examples)

kolor-face
img2img kolor face,参数输入没变化,非最新示例 (outdated version examples)

flux-nf4

ms-diffusion


story-diffusion



<Storydiffusion_Model_Loader>
<Storydiffusion_Sampler>
<Comic_Type>
<Pre_Translate_prompt>: Pre processing of translation nodes
Tips:
StoryDiffusion
@article{zhou2024storydiffusion,
title={StoryDiffusion: Consistent Self-Attention for Long-Range Image and Video Generation},
author={Zhou, Yupeng and Zhou, Daquan and Cheng, Ming-Ming and Feng, Jiashi and Hou, Qibin},
journal={arXiv preprint arXiv:2405.01434},
year={2024}
}
IP-Adapter
@article{ye2023ip-adapter,
title={IP-Adapter: Text Compatible Image Prompt Adapter for Text-to-Image Diffusion Models},
author={Ye, Hu and Zhang, Jun and Liu, Sibo and Han, Xiao and Yang, Wei},
booktitle={arXiv preprint arxiv:2308.06721},
year={2023}
}
MS-Diffusion
@misc{wang2024msdiffusion,
title={MS-Diffusion: Multi-subject Zero-shot Image Personalization with Layout Guidance},
author={X. Wang and Siming Fu and Qihan Huang and Wanggui He and Hao Jiang},
year={2024},
eprint={2406.07209},
archivePrefix={arXiv},
primaryClass={cs.CV}
}
photomaker
@inproceedings{li2023photomaker,
title={PhotoMaker: Customizing Realistic Human Photos via Stacked ID Embedding},
author={Li, Zhen and Cao, Mingdeng and Wang, Xintao and Qi, Zhongang and Cheng, Ming-Ming and Shan, Ying},
booktitle={IEEE Conference on Computer Vision and Pattern Recognition (CVPR)},
year={2024}
}
kolors
@article{kolors,
title={Kolors: Effective Training of Diffusion Model for Photorealistic Text-to-Image Synthesis},
author={Kolors Team},
journal={arXiv preprint},
year={2024}
}
PuLID
@article{guo2024pulid,
title={PuLID: Pure and Lightning ID Customization via Contrastive Alignment},
author={Guo, Zinan and Wu, Yanze and Chen, Zhuowei and Chen, Lang and He, Qian},
journal={arXiv preprint arXiv:2404.16022},
year={2024}
}
FLUX
Python
100.0%