logo
2
0
WeChat Login
feat: open shell and cat gradio.log to get public key

一、介绍

用于一键启动FramePack,体验Ai创作视频。点击右上角“FramePack”,等待几分钟即可出现打开的方式,直接选择通过webIDE打开即可,即可在浏览器中体验。

如果无法直接启动页面,参考此项目1.1章节,手动的输入端口7860,进行转发。

二、模型下载

模型已经通过脚本在云原生环境启动的时候自动下载啦。

2.1、huggingface

huggingface-cli download --repo-type model 'hunyuanvideo-community/HunyuanVideo' --local-dir /FramePack/hf_download/models--hunyuanvideo-community--HunyuanVideo/
huggingface-cli download --repo-type model 'lllyasviel/flux_redux_bfl' --local-dir /FramePack/hf_download/models-lllyasviel--flux_redux_bfl/
huggingface-cli download --repo-type model 'lllyasviel/FramePackI2V_HY' --local-dir /FramePack/hf_download/models-lllyasviel--FramePackI2V_HY/

2.2 cnb.cool平台下载

git clone https://cnb.cool/ai-models/hunyuanvideo-community/HunyuanVideo.git
git clone https://cnb.cool/ai-models/lllyasviel/flux_redux_bfl.git
git clone https://cnb.cool/ai-models/lllyasviel/FramePackI2V_HY.git

三、使用

3.1 vscode启动

通过本地127.0.0.1:7860在本地启动,会发现图片上传不成功,暂时没有排查到原因,这个时候通过在启动的时候添加 --share的参数,运行不会报错。会生成一个gradio的公网链接。通过在项目里面cat gradio.log,可以直接获取公网IP。在webIDE里面启动不会有问题

https://fa912e070a829625c4.gradio.live/
* Running on local URL: http://0.0.0.0:7860 * Running on public URL: https://fa912e070a829625c4.gradio.live This share link expires in 1 week. For free permanent hosting and GPU upgrades, run `gradio deploy` from the terminal in the working directory to deploy to Hugging Face Spaces (https://huggingface.co/spaces)