PaddleGAN icon indicating copy to clipboard operation
PaddleGAN copied to clipboard

在windows如何超分辨率恢复处理呢

Open ArlanCooper opened this issue 4 years ago • 4 comments

我在windows下载了paddlegan,然后按照操作步骤,转换示例的011.mp4,但是报错了:

运行命令: python ./applications/tools/video-enhance.py --input D:\program_file\pdlcv\data\011.mp4 --process_order PPMSVSR --output D:\program_file\pdlcv\data\output_dir --num_frames 100

视频文件放在:D:\program_file\pdlcv\data\011.mp4

D:\learn\gitlab_files\paddle\PaddleGAN>python ./applications/tools/video-enhance.py --input D:\program_file\pdlcv\data\011.mp4 --process_order PPMSVSR --output D:\program_file\pdlcv\data\output_dir --num_frames 100

报错信息:

Model PPMSVSR process start.. [12/25 11:44:51] ppgan INFO: Found C:\Users\cooper.cache\ppgan\modified_spynet_tiny.pdparams C:\program_file\anacanda\envs\pdlcv\lib\site-packages\paddle\framework\io.py:415: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working if isinstance(obj, collections.Iterable) and not isinstance(obj, ( [12/25 11:44:51] ppgan INFO: Found C:\Users\cooper.cache\ppgan\PP-MSVSR_reds_x4.pdparams vid: D:\program_file\pdlcv\data\011.mp4 系统找不到指定的路径。 Traceback (most recent call last): File "./applications/tools/video-enhance.py", line 156, in frames_path, temp_video_path = predictor.run(temp_video_path) File "d:\learn\gitlab_files\paddle\paddlegan\ppgan\apps\recurrent_vsr_predictor.py", line 105, in run out_path = video2frames(vid, output_path) File "d:\learn\gitlab_files\paddle\paddlegan\ppgan\utils\video.py", line 42, in video2frames raise RuntimeError('ffmpeg process video: {} error'.format(vid_name)) RuntimeError: ffmpeg process video: 011 error

还有一个问题: 我既然下载这个文件就可以运行的话,我为什么还要安装呢?有没有比较详细的说明文档呢?windows上操作好多问题

ArlanCooper avatar Dec 25 '21 03:12 ArlanCooper

看着是视频没有读入呢,确认一下输入视频路径的正确性。 下载并安装后才能运行的,仅下载文件不能运行的哈 影像修复文档: https://github.com/PaddlePaddle/PaddleGAN/blob/develop/docs/zh_CN/industrial_solution/video_restore_cn.md 其他文档可以在首页找到: https://github.com/PaddlePaddle/PaddleGAN/blob/develop/README_cn.md

wangna11BD avatar Dec 27 '21 09:12 wangna11BD

好的,谢谢。 不过,我的视频是在这个路径下的,但是,可能因为ffmpeg的问题,确实会报“系统找不到指定的路径”的错误。 我想咨询一下,这个如果只用cpu的话,是不是运行时间很长呢?

ArlanCooper avatar Dec 27 '21 09:12 ArlanCooper

是的,只用cpu运行时间很长 可以试试重新安装一下ffmpeg呢

wangna11BD avatar Dec 27 '21 10:12 wangna11BD

是的,只用cpu运行时间很长 可以试试重新安装一下ffmpeg呢

好的,谢谢,我试试

ArlanCooper avatar Dec 27 '21 10:12 ArlanCooper