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:
@ -321,7 +321,7 @@ For more experiments, please stay tuned for our upcoming technical report and op
|
||||
from modelscope.pipelines import pipeline
|
||||
from modelscope.outputs import OutputKeys
|
||||
|
||||
pipe = pipeline(task="video-to-video", model='damo/Video-to-Video', model_revision='v1.1.0', device='cuda:0')
|
||||
pipe = pipeline(task="image-to-video", model='damo/Image-to-Video', model_revision='v1.1.0', device='cuda:0')
|
||||
|
||||
# IMG_PATH: your image path (url or local file)
|
||||
output_video_path = pipe(IMG_PATH, output_video='./output.mp4')[OutputKeys.OUTPUT_VIDEO]
|
||||
|
||||
Reference in New Issue
Block a user