中国通信建设协会网站,网站建设结课策划书,网站升级建设方案,wordpress底部小工具栏文章目录 简介CondaConda简介定义#xff1a;常用命令 Conda下载安装Conda使用 Pexels生成Api_Key MoneyPrinterTurboMoneyPrinterTurbo使用 创建MoneyPrinterTurbo使用环境创建虚拟环境激活 安装依赖修改配置文件启动并测试再次启动 简介
Conda
网址#xff1a;https://do… 文章目录 简介CondaConda简介定义常用命令 Conda下载安装Conda使用 Pexels生成Api_Key MoneyPrinterTurboMoneyPrinterTurbo使用 创建MoneyPrinterTurbo使用环境创建虚拟环境激活 安装依赖修改配置文件启动并测试再次启动 简介
Conda
网址https://docs.conda.io/en/latest
Conda简介
Conda 是一个开源的软件包管理系统和环境管理系统用于安装多个版本的软件包及其依赖关系并在它们之间轻松切换。
定义
Conda 是为 Python 程序创建的适用于 LinuxOS X 和Windows也可以打包和分发其他软件 [1]。 最流行的 Python 环境管理工具
常用命令
conda list
列出当前 conda 环境所链接的软件包 [2]
conda create
# 创建一个 conda 环境名称为 tf [2]
conda create -n 环境名 -c 镜像源Conda下载安装 点击上面的链接登录Conda官网选择适合的版本进行下载 下载成功后选择合适的安装位置尽量不要安装在C盘且最好不要有中文 然后一路next便可安装成功安装成功后本地电脑会出现下面两个项目
Conda使用
点击Anaconda PowerShell Prompt可以输入下面命令查看版本
conda --versionConda是给MoneyPrinterTurbo安装虚拟环境的工具需要提前安装
Pexels
网址https://www.pexels.com/zh-cn/api/key/
生成Api_Key
登录网址注册后可以生成Api_Key
MoneyPrinterTurbo
MoneyPrinterTurbo-Portable-Windows-1.2.6.7z 百度网盘: https://pan.baidu.com/s/1IOsTm2LZaHLlDtHo7KIjlw?pwd7anu 提取码: 7anu
MoneyPrinterTurbo使用
下载完成后解压即可使用
创建MoneyPrinterTurbo使用环境
创建虚拟环境
在解压目录下的MoneyPrinterTurbo目录下
conda create -n MoneyPrinterTurbo python3.11激活
在上一步完成的基础上继续执行激活命令
conda activate MoneyPrinterTurbo安装依赖
pip install -r requirements.txt修改配置文件 将config.example.toml复制成config.toml文件 修改配置如下
[app]
video_source pexels # pexels or pixabay# 是否隐藏配置面板
hide_config false# Pexels API Key
# Register at https://www.pexels.com/api/ to get your API key.
# You can use multiple keys to avoid rate limits.
# For example: pexels_api_keys [123adsf4567adf89,abd1321cd13efgfdfhi]
# 特别注意格式Key 用英文双引号括起来多个Key用逗号隔开
pexels_api_keys [VdkQFCH83gmWA8MnbOsVEfcwxNqwgVyU9AK6AyglrIQ42tRztqPHBwr4]# Pixabay API Key
# Register at https://pixabay.com/api/docs/ to get your API key.
# You can use multiple keys to avoid rate limits.
# For example: pixabay_api_keys [123adsf4567adf89,abd1321cd13efgfdfhi]
# 特别注意格式Key 用英文双引号括起来多个Key用逗号隔开
pixabay_api_keys []# 支持的提供商 (Supported providers):
# openai
# moonshot (月之暗面)
# azure
# qwen (通义千问)
# deepseek
# gemini
# ollama
# g4f
# oneapi
# cloudflare
# ernie (文心一言)
llm_provider qwen########## Ollama Settings
# No need to set it unless you want to use your own proxy
#ollama_base_url
# Check your available models at https://ollama.com/library
#ollama_model_name ########## OpenAI API Key
# Get your API key at https://platform.openai.com/api-keys
#openai_api_key
# No need to set it unless you want to use your own proxy
openai_base_url
# Check your available models at https://platform.openai.com/account/limits
#openai_model_name gpt-4o-mini########## Moonshot API Key
# Visit https://platform.moonshot.cn/console/api-keys to get your API key.
moonshot_api_key sk-7szdfZ03frtN3IBz70O0U5oBFsWLDQWOJmh6ZNB1zMk2RNoP
moonshot_base_url https://api.moonshot.cn/v1
moonshot_model_name moonshot-v1-8k########## OneAPI API Key
# Visit https://github.com/songquanpeng/one-api to get your API key
#oneapi_api_key
#oneapi_base_url
#oneapi_model_name ########## G4F
# Visit https://github.com/xtekky/gpt4free to get more details
# Supported model list: https://github.com/xtekky/gpt4free/blob/main/g4f/models.py
g4f_model_name gpt-3.5-turbo########## Azure API Key
# Visit https://learn.microsoft.com/zh-cn/azure/ai-services/openai/ to get more details
# API documentation: https://learn.microsoft.com/zh-cn/azure/ai-services/openai/reference
#azure_api_key
#azure_base_url
#azure_model_name gpt-35-turbo # replace with your model deployment name
#azure_api_version 2024-02-15-preview########## Gemini API Key
#gemini_api_key
#gemini_model_name gemini-1.0-pro########## Qwen API Key
# Visit https://dashscope.console.aliyun.com/apiKey to get your API key
# Visit below links to get more details
# https://tongyi.aliyun.com/qianwen/
# https://help.aliyun.com/zh/dashscope/developer-reference/model-introduction
qwen_api_key sk-c860168de7184769abd0b068a4486ad9
qwen_model_name qwen-max########## DeepSeek API Key
# Visit https://platform.deepseek.com/api_keys to get your API key
deepseek_api_key sk-c03753147d7c48d486a33ff24d480123
deepseek_base_url https://api.deepseek.com
deepseek_model_name deepseek-chat# Subtitle Provider, edge or whisper
# If empty, the subtitle will not be generated
subtitle_provider edge#
# ImageMagick
#
# Once you have installed it, ImageMagick will be automatically detected, except on Windows!
# On Windows, for example C:\Program Files (x86)\ImageMagick-7.1.1-Q16-HDRI\magick.exe
# Download from https://imagemagick.org/archive/binaries/ImageMagick-7.1.1-29-Q16-x64-static.exeimagemagick_path D:\\devSoftware\\AI_create_vedio\\ImageMagickInstall\\ImageMagick-7.1.1-Q16-HDRI\\magick.exe#
# FFMPEG
#
# 通常情况下ffmpeg 会被自动下载并且会被自动检测到。
# 但是如果你的环境有问题无法自动下载可能会遇到如下错误
# RuntimeError: No ffmpeg exe could be found.
# Install ffmpeg on your system, or set the IMAGEIO_FFMPEG_EXE environment variable.
# 此时你可以手动下载 ffmpeg 并设置 ffmpeg_path下载地址https://www.gyan.dev/ffmpeg/builds/# Under normal circumstances, ffmpeg is downloaded automatically and detected automatically.
# However, if there is an issue with your environment that prevents automatic downloading, you might encounter the following error:
# RuntimeError: No ffmpeg exe could be found.
# Install ffmpeg on your system, or set the IMAGEIO_FFMPEG_EXE environment variable.
# In such cases, you can manually download ffmpeg and set the ffmpeg_path, download link: https://www.gyan.dev/ffmpeg/builds/# ffmpeg_path C:\\Users\\harry\\Downloads\\ffmpeg.exe
########################################################################################## 当视频生成成功后API服务提供的视频下载接入点默认为当前服务的地址和监听端口
# 比如 http://127.0.0.1:8080/tasks/6357f542-a4e1-46a1-b4c9-bf3bd0df5285/final-1.mp4
# 如果你需要使用域名对外提供服务一般会用nginx做代理则可以设置为你的域名
# 比如 https://xxxx.com/tasks/6357f542-a4e1-46a1-b4c9-bf3bd0df5285/final-1.mp4
# endpointhttps://xxxx.com# When the video is successfully generated, the API service provides a download endpoint for the video, defaulting to the services current address and listening port.
# For example, http://127.0.0.1:8080/tasks/6357f542-a4e1-46a1-b4c9-bf3bd0df5285/final-1.mp4
# If you need to provide the service externally using a domain name (usually done with nginx as a proxy), you can set it to your domain name.
# For example, https://xxxx.com/tasks/6357f542-a4e1-46a1-b4c9-bf3bd0df5285/final-1.mp4
# endpointhttps://xxxx.com
endpoint # Video material storage location
# material_directory # Indicates that video materials will be downloaded to the default folder, the default folder is ./storage/cache_videos under the current project
# material_directory /user/harry/videos # Indicates that video materials will be downloaded to a specified folder
# material_directory task # Indicates that video materials will be downloaded to the current tasks folder, this method does not allow sharing of already downloaded video materials# 视频素材存放位置
# material_directory #表示将视频素材下载到默认的文件夹默认文件夹为当前项目下的 ./storage/cache_videos
# material_directory /user/harry/videos #表示将视频素材下载到指定的文件夹中
# material_directory task #表示将视频素材下载到当前任务的文件夹中这种方式无法共享已经下载的视频素材material_directory # Used for state management of the task
enable_redis false
redis_host localhost
redis_port 6379
redis_db 0
redis_password # 文生视频时的最大并发任务数
max_concurrent_tasks 5[whisper]
# Only effective when subtitle_provider is whisper# Run on GPU with FP16
# model WhisperModel(model_size, devicecuda, compute_typefloat16)# Run on GPU with INT8
# model WhisperModel(model_size, devicecuda, compute_typeint8_float16)# Run on CPU with INT8
# model WhisperModel(model_size, devicecpu, compute_typeint8)# recommended model_size: large-v3
model_size large-v3
# if you want to use GPU, set devicecuda
device CPU
compute_type int8[proxy]
### Use a proxy to access the Pexels API
### Format: http://username:passwordproxy:port
### Example: http://user:passproxy:1234
### Doc: https://requests.readthedocs.io/en/latest/user/advanced/#proxies# http http://10.10.1.10:3128
# https http://10.10.1.10:1080[azure]
# Azure Speech API Key
# Get your API key at https://portal.azure.com/#view/Microsoft_Azure_ProjectOxford/CognitiveServicesHub/~/SpeechServices
speech_key
speech_region [siliconflow]
# SiliconFlow API Key
# Get your API key at https://siliconflow.cn
api_key [ui]
# UI related settings
# 是否隐藏日志信息
# Whether to hide logs in the UI
hide_log false
必须要配置的参数
pexels_api_keys视频来源必须要配置llm_provider大语言模型必须要进行配置qwen_api_key根据上面的大语言模型进行配置api_key必须要进行配置
启动并测试
配置完上面的文件后如果命令行前面带MoneyPrinterTurbo使用webui.bat命令便可启动,否则参考再次启动
webui.bat再次启动
再次启动项目需要使用conda 进入目录先激活在使用webui.bat再次启动
//先进入目录
cd D:\devSoftware\AI_create_vedio\MoneyPrinterTurbo-Portable-Windows-1.2.6\MoneyPrinterTurbo
//激活
conda activate MoneyPrinterTurbo
//启动
webui.bat启动后页面如下 文章转载自: http://www.morning.rdlong.com.gov.cn.rdlong.com http://www.morning.rxwfg.cn.gov.cn.rxwfg.cn http://www.morning.lftpl.cn.gov.cn.lftpl.cn http://www.morning.kmwsz.cn.gov.cn.kmwsz.cn http://www.morning.dpplr.cn.gov.cn.dpplr.cn http://www.morning.xzlp.cn.gov.cn.xzlp.cn http://www.morning.gmgyt.cn.gov.cn.gmgyt.cn http://www.morning.lcbnb.cn.gov.cn.lcbnb.cn http://www.morning.dighk.com.gov.cn.dighk.com http://www.morning.fpjxs.cn.gov.cn.fpjxs.cn http://www.morning.ampingdu.com.gov.cn.ampingdu.com http://www.morning.tqklh.cn.gov.cn.tqklh.cn http://www.morning.kqgqy.cn.gov.cn.kqgqy.cn http://www.morning.xlbyx.cn.gov.cn.xlbyx.cn http://www.morning.skpdg.cn.gov.cn.skpdg.cn http://www.morning.jgncd.cn.gov.cn.jgncd.cn http://www.morning.trrpb.cn.gov.cn.trrpb.cn http://www.morning.rbnp.cn.gov.cn.rbnp.cn http://www.morning.tzzkm.cn.gov.cn.tzzkm.cn http://www.morning.lgsqy.cn.gov.cn.lgsqy.cn http://www.morning.gkpgj.cn.gov.cn.gkpgj.cn http://www.morning.lmdkn.cn.gov.cn.lmdkn.cn http://www.morning.bnlch.cn.gov.cn.bnlch.cn http://www.morning.pnmtk.cn.gov.cn.pnmtk.cn http://www.morning.cczrw.cn.gov.cn.cczrw.cn http://www.morning.rfgkf.cn.gov.cn.rfgkf.cn http://www.morning.dtrzw.cn.gov.cn.dtrzw.cn http://www.morning.sdktr.com.gov.cn.sdktr.com http://www.morning.lyzwdt.com.gov.cn.lyzwdt.com http://www.morning.xrwbc.cn.gov.cn.xrwbc.cn http://www.morning.rfgkf.cn.gov.cn.rfgkf.cn http://www.morning.qbmjf.cn.gov.cn.qbmjf.cn http://www.morning.brkc.cn.gov.cn.brkc.cn http://www.morning.bxczt.cn.gov.cn.bxczt.cn http://www.morning.hwxxh.cn.gov.cn.hwxxh.cn http://www.morning.ybnzn.cn.gov.cn.ybnzn.cn http://www.morning.mzqhb.cn.gov.cn.mzqhb.cn http://www.morning.dhxnr.cn.gov.cn.dhxnr.cn http://www.morning.pmhln.cn.gov.cn.pmhln.cn http://www.morning.lbbgf.cn.gov.cn.lbbgf.cn http://www.morning.qhfdl.cn.gov.cn.qhfdl.cn http://www.morning.dblgm.cn.gov.cn.dblgm.cn http://www.morning.htjwz.cn.gov.cn.htjwz.cn http://www.morning.qwbtr.cn.gov.cn.qwbtr.cn http://www.morning.zcfsq.cn.gov.cn.zcfsq.cn http://www.morning.xtxp.cn.gov.cn.xtxp.cn http://www.morning.skql.cn.gov.cn.skql.cn http://www.morning.mzcsp.cn.gov.cn.mzcsp.cn http://www.morning.chrbp.cn.gov.cn.chrbp.cn http://www.morning.rpkg.cn.gov.cn.rpkg.cn http://www.morning.lmmh.cn.gov.cn.lmmh.cn http://www.morning.rtjhw.cn.gov.cn.rtjhw.cn http://www.morning.nlrxh.cn.gov.cn.nlrxh.cn http://www.morning.fhqsm.cn.gov.cn.fhqsm.cn http://www.morning.gtqws.cn.gov.cn.gtqws.cn http://www.morning.bxdlrcz.cn.gov.cn.bxdlrcz.cn http://www.morning.tmfm.cn.gov.cn.tmfm.cn http://www.morning.xhgcr.cn.gov.cn.xhgcr.cn http://www.morning.wnzgm.cn.gov.cn.wnzgm.cn http://www.morning.tzlfc.cn.gov.cn.tzlfc.cn http://www.morning.gfznl.cn.gov.cn.gfznl.cn http://www.morning.llcgz.cn.gov.cn.llcgz.cn http://www.morning.fpjxs.cn.gov.cn.fpjxs.cn http://www.morning.rlqwz.cn.gov.cn.rlqwz.cn http://www.morning.hxhrg.cn.gov.cn.hxhrg.cn http://www.morning.tlfyb.cn.gov.cn.tlfyb.cn http://www.morning.qcfgd.cn.gov.cn.qcfgd.cn http://www.morning.ykxnp.cn.gov.cn.ykxnp.cn http://www.morning.xdlwm.cn.gov.cn.xdlwm.cn http://www.morning.qmbgb.cn.gov.cn.qmbgb.cn http://www.morning.hryhq.cn.gov.cn.hryhq.cn http://www.morning.fmrrr.cn.gov.cn.fmrrr.cn http://www.morning.sbqrm.cn.gov.cn.sbqrm.cn http://www.morning.lsnnc.cn.gov.cn.lsnnc.cn http://www.morning.lbfgq.cn.gov.cn.lbfgq.cn http://www.morning.hqxyt.cn.gov.cn.hqxyt.cn http://www.morning.taipinghl.cn.gov.cn.taipinghl.cn http://www.morning.nhbhc.cn.gov.cn.nhbhc.cn http://www.morning.plfy.cn.gov.cn.plfy.cn http://www.morning.jrkzk.cn.gov.cn.jrkzk.cn