## Quickstart ### 构建镜像 ```bash docker build -t text2video:v0.1 . ``` ### 模型下载 模型地址:https://modelscope.cn/models/iic/text-to-video-synthesis 并放到目录:`/mnt/contest_ceph/zhanghao/models/iic/text-to-video-synthesis`(如更改目录,请修改后面的执行脚本中的模型路径) ### 测试程序 1. 准备输入数据集,可以参考示例`dataset.json` 2. 在docker镜像里运行测试程序,会根据`dataset.json`内容,在`output`目录下生成视频文件。 ```bash python3 main.py --model "/mnt/contest_ceph/zhanghao/models/iic/text-to-video-synthesis" --json "dataset.json" --results "results.json" --outdir "output" --device cuda --dtype fp16 ``` ## 测试结果 | | A100 平均生成时间(秒) | MetaX C500 平均生成时间(秒) | |------|-------------------------|----------------------------| | 时间 | 12 | 16 |