mirror of
https://modelscope.cn/models/iic/Image-to-Video
synced 2026-04-02 19:42:53 +08:00
Update README.md
This commit is contained in:
21
README.md
21
README.md
@ -328,8 +328,27 @@ output_video_path = pipe(IMG_PATH, output_video='./output.mp4')[OutputKeys.OUTPU
|
|||||||
print(output_video_path)
|
print(output_video_path)
|
||||||
```
|
```
|
||||||
|
|
||||||
如果想对生成视频超分的话, 请访问 <a href="https://modelscope.cn/models/damo/Video-to-Video/summary">Video-to-Video</a>
|
如果想生成超分视频的话, 示例见下:
|
||||||
|
|
||||||
|
If you want to generate high-resolution video, please use the following code:
|
||||||
|
|
||||||
|
```python
|
||||||
|
from modelscope.pipelines import pipeline
|
||||||
|
from modelscope.outputs import OutputKeys
|
||||||
|
|
||||||
|
pipe1 = pipeline(task='image-to-video', model='damo/Image-to-Video', model_revision='v1.1.0')
|
||||||
|
pipe2 = pipeline(task="video-to-video", model='damo/Video-to-Video', model_revision='v1.1.0')
|
||||||
|
|
||||||
|
# image to video
|
||||||
|
output_video_path = pipe1("test.jpg", output_video='./output.mp4')[OutputKeys.OUTPUT_VIDEO]
|
||||||
|
|
||||||
|
# video resolution
|
||||||
|
p_input = {'video_path': output_video_path}
|
||||||
|
new_output_video_path = pipe2(p_input, output_video='./output.mp4')[OutputKeys.OUTPUT_VIDEO]
|
||||||
|
```
|
||||||
|
更多超分细节, 请访问 <a href="https://modelscope.cn/models/damo/Video-to-Video/summary">Video-to-Video</a>。
|
||||||
|
|
||||||
|
Please visit <a href="https://modelscope.cn/models/damo/Video-to-Video/summary">Video-to-Video</a> for more details.
|
||||||
|
|
||||||
### 模型局限 (Limitation)
|
### 模型局限 (Limitation)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user