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/simplepip install sageattention==1.0.6 -i https://pypi.tuna.tsinghua.edu.cn/simplepip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple4、设置镜像站(每次启动前都要设置)
export HF_ENDPOINT=https://hf-mirror.com5、启动程序
python demo_gradio.py
评论
发表评论