StoryDiffusion文字生漫画
地址 https://github.com/HVision-NKU/StoryDiffusion
安装
conda create -n storydiff python==3.11.0
conda activate storydiff
# 修改一下 requirements.txt
gradio==4.21.0
xformers==0.0.25
diffusers==0.25.0
transformers==4.36.2
huggingface-hub==0.20.2
spaces==0.19.4
numpy
accelerate
safetensors
omegaconf
peft
httpx==0.27.0
safetensors==0.4.0
pillow==9.5.0
# 再执行
pip install -r requirements.txt
安装 pytorch,之前有讲过
下载大模型,国内用魔塔可以搜到
模型1: PhotoMaker 必须!!!!
模型2:4选1,或者全都要~这里用sdxl-unstable-diffusers-y

修改源码 gradio_app_sdxl_specific_id_low_vram.py 把模型改成绝对路径,例如


浙公网安备 33010602011771号