Ubuntu下部署FramePack图生视频服务

0、下载项目文件:

git clone https://github.com/lllyasviel/FramePack.git

cd FramePack


1、创建虚拟环境


conda create -n framepack python=3.10 -y && conda activate framepack


2、安装Pytorch等库


conda install pytorch torchvision torchaudio pytorch-cuda=12.4 -c pytorch -c nvidia -y


3、安装项目依赖库及加速库

pip install flash-attn==1.0.4 -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install sageattention==1.0.6 -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple


4、设置镜像站(每次启动前都要设置)


export HF_ENDPOINT=https://hf-mirror.com


5、启动程序

python demo_gradio.py

评论

此博客中的热门博文

通过命令行在Github上发布项目的新版本

利用GitHub免费的静态页面托管空间发布网页

本地部署OpenAvatarChat实时交互数字人系统