Update README.md

This commit is contained in:
FaceZhao
2023-08-25 06:09:03 +00:00
parent 6744cd3091
commit a12a2fda43

View File

@ -273,6 +273,7 @@ Below are some examples generated by the model:
</table> </table>
</center> </center>
[2023.08.25 更新] ModelScope发布1.8.4版本image-to-video 模型更新到模型参数文件 v1.1.0;
### 依赖项 (Dependency) ### 依赖项 (Dependency)
@ -320,13 +321,15 @@ For more experiments, please stay tuned for our upcoming technical report and op
from modelscope.pipelines import pipeline from modelscope.pipelines import pipeline
from modelscope.outputs import OutputKeys from modelscope.outputs import OutputKeys
pipe = pipeline("image-to-video", 'damo/Image-to-Video') pipe = pipeline(task='image-to-video', model='damo/Image-to-Video', model_revision='v1.1.0')
# IMG_PATH: your image path (url or local file) # IMG_PATH: your image path (url or local file)
output_video_path = pipe(IMG_PATH, output_video='./output.mp4')[OutputKeys.OUTPUT_VIDEO] output_video_path = pipe(IMG_PATH, output_video='./output.mp4')[OutputKeys.OUTPUT_VIDEO]
print(output_video_path) print(output_video_path)
``` ```
如果想对生成视频超分的话, 请访问 <a href="https://modelscope.cn/models/damo/Video-to-Video/summary">Video-to-Video</a>
### 模型局限 (Limitation) ### 模型局限 (Limitation)