LocalEntryNotfoundEror: Cannot find an appropriate cached snapshotfolderfor the specified revision on the local disk and
outgoing trafic has been disabled.
To enablerepo look-ups and downloads online, pass ‘local files only=False’ as input.
或者
An error occured while synchronizing the model Systran/faster-whisper-large-v3 from the Hugging Face Hub:
An error happened while trying to locate the files on the Hub and we cannot find the appropriate snapshot folder for the
specified revision on the local disk. Please check your internet connection and try again.
Trying to load the model directly from the local cache, if it exists.
MoneyPrinterTurbo 💸
简体中文 | English
只需提供一个视频 主题 或 关键词 ,就可以全自动生成视频文案、视频素材、视频字幕、视频背景音乐,然后合成一个高清的短视频。
Web界面
API界面
特别感谢 🙏
由于该项目的 部署 和 使用,对于一些小白用户来说,还是 有一定的门槛,在此特别感谢 录咖(AI智能 多媒体服务平台) 网站基于该项目,提供的免费
AI视频生成器服务,可以不用部署,直接在线使用,非常方便。感谢赞助 🙏
感谢佐糖 https://picwish.cn 对该项目的支持和赞助,使得该项目能够持续的更新和维护。
佐糖专注于图像处理领域,提供丰富的图像处理工具,将复杂操作极致简化,真正实现让图像处理更简单。
功能特性 🎯
API和Web界面1080x19201920x1080字体、位置、颜色、大小,同时支持字幕描边设置背景音乐音量后期计划 📅
视频演示 📺
竖屏 9:16
更真实的合成声音
横屏 16:9
配置要求 📦
快速开始 🚀
在 Google Colab 中运行
免去本地环境配置,点击直接在 Google Colab 中快速体验 MoneyPrinterTurbo
Windows一键启动包
下载一键启动包,解压直接使用(路径不要有 中文、特殊字符、空格)
下载后,建议先双击执行
update.bat更新到最新代码,然后双击start.bat启动启动后,会自动打开浏览器(如果打开是空白,建议换成 Chrome 或者 Edge 打开)
安装部署 📥
前提条件
全局流量模式① 克隆代码
② 修改配置文件(可选,建议启动后也可以在 WebUI 里面配置)
config.example.toml文件复制一份,命名为config.tomlconfig.toml文件中的说明,配置好pexels_api_keys和llm_provider,并根据 llm_provider 对应的服务商,配置相关的 API KeyDocker部署 🐳
① 启动Docker
如果未安装 Docker,请先安装 https://www.docker.com/products/docker-desktop/
如果是Windows系统,请参考微软的文档:
② 访问Web界面
打开浏览器,访问 http://0.0.0.0:8501
③ 访问API文档
打开浏览器,访问 http://0.0.0.0:8080/docs 或者 http://0.0.0.0:8080/redoc
手动部署 📦
① 创建虚拟环境
建议使用 conda 创建 python 虚拟环境
② 安装好 ImageMagick
Windows:
配置文件 config.toml中的imagemagick_path为你的 实际安装路径MacOS:
Ubuntu
CentOS
③ 启动Web界面 🌐
注意需要到 MoneyPrinterTurbo 项目
根目录下执行以下命令Windows
MacOS or Linux
启动后,会自动打开浏览器(如果打开是空白,建议换成 Chrome 或者 Edge 打开)
④ 启动API服务 🚀
启动后,可以查看
API文档http://127.0.0.1:8080/docs 或者 http://127.0.0.1:8080/redoc 直接在线调试接口,快速体验。语音合成 🗣
所有支持的声音列表,可以查看:声音列表
2024-04-16 v1.1.2 新增了9种Azure的语音合成声音,需要配置API KEY,该声音合成的更加真实。
字幕生成 📜
当前支持2种字幕生成方式:
速度快,性能更好,对电脑配置没有要求,但是质量可能不稳定速度慢,性能较差,对电脑配置有一定要求,但是质量更可靠。可以修改
config.toml配置文件中的subtitle_provider进行切换建议使用
edge模式,如果生成的字幕质量不好,再切换到whisper模式下载地址:
模型下载后解压,整个目录放到
.\MoneyPrinterTurbo\models里面, 最终的文件路径应该是这样:.\MoneyPrinterTurbo\models\whisper-large-v3背景音乐 🎵
用于视频的背景音乐,位于项目的
resource/songs目录下。字幕字体 🅰
用于视频字幕的渲染,位于项目的
resource/fonts目录下,你也可以放进去自己的字体。常见问题 🤔
❓RuntimeError: No ffmpeg exe could be found
通常情况下,ffmpeg 会被自动下载,并且会被自动检测到。 但是如果你的环境有问题,无法自动下载,可能会遇到如下错误:
此时你可以从 https://www.gyan.dev/ffmpeg/builds/ 下载ffmpeg,解压后,设置
ffmpeg_path为你的实际安装路径即可。❓ImageMagick的安全策略阻止了与临时文件@/tmp/tmpur5hyyto.txt相关的操作
可以在ImageMagick的配置文件policy.xml中找到这些策略。 这个文件通常位于 /etc/ImageMagick-
X/ 或 ImageMagick 安装目录的类似位置。 修改包含pattern="@"的条目,将rights="none"更改为rights="read|write"以允许对文件的读写操作。❓OSError: [Errno 24] Too many open files
这个问题是由于系统打开文件数限制导致的,可以通过修改系统的文件打开数限制来解决。
查看当前限制
如果过低,可以调高一些,比如
❓Whisper 模型下载失败,出现如下错误
LocalEntryNotfoundEror: Cannot find an appropriate cached snapshotfolderfor the specified revision on the local disk and outgoing trafic has been disabled. To enablerepo look-ups and downloads online, pass ‘local files only=False’ as input.
或者
An error occured while synchronizing the model Systran/faster-whisper-large-v3 from the Hugging Face Hub: An error happened while trying to locate the files on the Hub and we cannot find the appropriate snapshot folder for the specified revision on the local disk. Please check your internet connection and try again. Trying to load the model directly from the local cache, if it exists.
解决方法:点击查看如何从网盘手动下载模型
反馈建议 📢
许可证 📝
点击查看
LICENSE文件Star History