湖北营销型网站建设价格,定制网站开发介绍图,江门网站推广技巧付费,搜索引擎优化特点#x1f552; 生成时间#xff1a;每张图大概 10–60 秒#xff08;取决于设备#xff09; ✅ 二、文生视频#xff08;Text-to-Video#xff09;
以下项目中#xff0c;很多都基于 SD 模型扩展#xff0c;但视频生成复杂度高#xff0c;生成时间一般 超过 30 秒 生成时间每张图大概 10–60 秒取决于设备 ✅ 二、文生视频Text-to-Video
以下项目中很多都基于 SD 模型扩展但视频生成复杂度高生成时间一般 超过 30 秒也正好符合你要求。
1. ModelScopes text-to-video-synthesis 地址modelscope/modelscope 模型text-to-video-synthesis 视频时长2–4秒支持中文 prompt 本地部署建议至少 8GB GPU ️ 安装
pip install modelscope
pip install modelscope[multimodal] 示例代码
from modelscope.pipelines
import pipeline from modelscope.utils.constant
import Tasks
p pipeline(Tasks.text_to_video_synthesis, modeldamo/text-to-video-synthesis) video_path p({text: 一个骑自行车的少年在夕阳下})[output_video]