2024-06-07 14:48:11 +08:00
2024-06-05 12:03:11 +08:00
2024-06-03 17:22:11 +08:00
2024-05-27 14:35:52 +08:00
2024-06-07 12:18:22 +08:00
2024-05-27 14:31:17 +08:00
2024-05-27 14:30:45 +08:00
2024-05-27 12:16:38 +08:00
2024-06-05 12:09:41 +08:00
2024-05-31 16:04:02 +08:00

ComfyUI_StoryDiffusion

You can using StoryDiffusion in ComfyUI

Update

2024/06/05
1、修复图生图unstable无法正确使用的bug,现在编辑config/models.yaml文件,记住用同样的格式,加入你喜欢的基于SDXL的扩散模型。
2、示例的playground模型运行,但是无法出图,请勿使用,仅是测试。

  1. Fix the bug where unstable graphics cannot be used correctly. Now edit the config/model.yaml file and remember to use the same format. Add your favorite SDXL based diffusion models.
  2. The playground model of the example is running, but it cannot be illustrated. Please do not use it, it is only for testing.

--- 既往更新 Previous updates
1、拼图节点分离出来,支持自定义字体和字体大小,增加了双角色的支持
2、自定义字体使用方式,把字体文件放在fonts目录下 .fonts/your_font.ttf
3、修复了只能使用SDXL的bug,现在列表里所有的模型都可以正常使用
4、加入SDXL-flash 加速模型
5、已经可以使用单模型模式,方法是 选择“Use_Single_XL_Model”,然后在ckpt_name菜单选择你想使用的XL模型(无法连外网的可能会报错,解决方法我迟点给出)

  1. Fixed a bug where only SDXL can be used, and now all models in the list can be used normally
  2. Add SDXL flash acceleration model
  3. The single model mode can now be used by selecting "UsesSingle_XL-Model" and then selecting the XL model you want to use from the ckptname menu
  4. The puzzle nodes are separated, supporting custom fonts and font sizes, and adding support for dual characters
  5. Customize font usage by placing the font file in the fonts directory. fonts/you_font. ttf

1.Installation

In the ./ComfyUI /custom_node directory, run the following:

git clone https://github.com/smthemex/ComfyUI_StoryDiffusion.git   

2.requirements

pip install -r requirements.txt

需要安装ip_adapter,整合包版本的特别需要 常规的包安装pip install -r requirements.txt
整合包安装方式pip install -r requirements.txt --target= "你的路径/python_embeded/Lib/site-packages"

If bitsandbytes reports an error in the CUDA environment, you can "pip uninstall bitsandbytes" and then "Pip install" Bitsandbytes"

如果bitsandbytes报错CUDA环境,整合包请去python_embeded/Lib/site-packages下删除以bitsandbyte开头的两个文件夹,然后再 pip install bitsandbytes --target= "你的路径/python_embeded/Lib/site-packages"

3 Need model

3.1

打开ComfyUI_StoryDiffusion/config/models.yaml的models.yaml文件,如果有预下载的默认的扩散模型,可以不填,如果地址不在默认的C盘一类,可以填写扩散模型的绝对地址,须是“/” .

如果不想下载扩散模型,可以菜单选择Use_Single_XL_Model,然后在ckpt_name菜单选择你想使用的XL模型(例如:Juggernaut-XL_v9_RunDiffusionPhoto_v2.safetensors )。

注意:如果使用单模型模式,可能会要求联外网,包括会下载一些clip文件,每个人的系统不同,不能一一例举。。

open ..ComfyUI_StoryDiffusion/config/models.yaml change or using diffusers models default...

G161222/RealVisXL_V4.0
or
stabilityai/stable-diffusion-xl-base-1.0
or
stablediffusionapi/sdxl-unstable-diffusers-y
or
sd-community/sdxl-flash
or

Menu choice 'Use_Single_XL_Model', and menu 'ckpt_name' choice any comfyUI or Web UI SDXL model

example:Juggernaut-XL_v9_RunDiffusionPhoto_v2.safetensors

3.2
在comfyUI的models目录下,确认是否有photomaker 目录,没有会自己新建并下载 photomaker-v1.bin link
如果有预下载,就把模型放进去。

make sure ..models/photomaker/photomaker-v1.bin link

4 Example

txt2img 文生图

img2img 图生图

two character 双角色

use single model 使用单模型

Citation

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

python  
@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}


S
Description
No description provided
Readme Apache-2.0
108 MiB
Languages
Python 99.6%
Jupyter Notebook 0.3%
Jinja 0.1%