我看了下,你这个是一个视频插帧的应用,和题主的不是一个东西。
我试着运行了一下官方给的示例代码
[Python] 纯文本查看 复制代码 from modelscope.pipelines import pipeline
from modelscope.utils.constant import Tasks
from modelscope.outputs import OutputKeys
video = 'https://modelscope.oss-cn-beijing.aliyuncs.com/test/videos/video_frame_interpolation_test.mp4'
video_frame_interpolation_pipeline = pipeline(Tasks.video_frame_interpolation, 'Damo_XR_Lab/cv_rife_video-frame-interpolation')
result = video_frame_interpolation_pipeline(video)[OutputKeys.OUTPUT_VIDEO]
print('pipeline: the output video path is {}'.format(result))
报错,可能是没有维护吧,我也不懂了
[Asm] 纯文本查看 复制代码 2024-09-22 09:30:00,845 - modelscope - WARNING - ('PIPELINES', 'video-frame-interpolation', 'rife_video_frame_interpolation') not found in ast index file
KeyError: 'rife_video_frame_interpolation is not in the pipelines registry group video-frame-interpolation. Please make sure the correct version of ModelScope library is used.' |