安装4o-ghibli-at-home需要按照明确的步骤进行操作:
- Cloning Project Code:使用git命令
git clone https://github.com/TheAhmadOsman/4o-ghibli-at-home.git
将项目下载到本地 - Setting up a virtual environment:推荐使用uv工具创建Python 3.12的虚拟环境,确保依赖隔离
- Installation of dependency packages:在激活的虚拟环境中运行
uv sync
命令同步所有必要依赖 - 配置Hugging Face令牌:复制.env模板文件并填入从Hugging Face账户获取的访问令牌
- Starting services:最后运行
python3.12 app.py
Starting the Local Server
整个安装过程需要保持稳定的网络连接,因为首次运行时需要下载较大的模型文件。建议设备至少有8GB内存和4GB显存的支持,以确保流畅运行。
This answer comes from the article4o-ghibli-at-home: locally run Ghibli-style image conversion toolThe