CodeFormer
CodeFormer copied to clipboard
Video method not working
"python inference_codeformer.py --bg_upsampler realesrgan --face_upsample -w 1.0 --input_path ./inputs/whole_imgs/1.mp4 --save_video_fps 24"
=> FileNotFoundError: [WinError 2] The system cannot find the file specified
Images are working perfectly but not videos, where can be a problem ?
"python inference_codeformer.py --bg_upsampler realesrgan --face_upsample -w 1.0 --input_path ./inputs/whole_imgs/1.mp4 --save_video_fps 24"
=> FileNotFoundError: [WinError 2] The system cannot find the file specified
Images are working perfectly but not videos, where can be a problem ?
Install FFmpeg on your Computer Read this Guide: https://www.wikihow.com/Install-FFmpeg-on-Windows Its works to me ☺️
ffmpeg installed, still no output of video, no "results/video_0.5" folder. no error prompt
Face detection model: retinaface_resnet50 Background upsampling: True, Face upsampling: True
All results are saved in results/video_0.5
ffmpeg installed, still no output of video, no "results/video_0.5" folder. no error prompt
Face detection model: retinaface_resnet50 Background upsampling: True, Face upsampling: True
All results are saved in results/video_0.5
Yes, I met the same problems too.
Traceback (most recent call last): File "C:\Users***\CodeFormer\inference_codeformer.py", line 111, in raise FileNotFoundError("\nInput file is not found.") FileNotFoundError: Input file is not found. ---i have already install ffmpeg,and i am sure that my file path is correct,but when i start the video in the windows,why it says "filenotfounderror"?
I get a similar error message on Fedora linux, the solution is: (not use fps, delete "save_video_fps 24") python inference_codeformer.py --bg_upsampler realesrgan --face_upsample -w 1.0 --input_path ./img/01.mp4 --upscale 2
找不到视频文件我也是疯了,改了glob.glob之后找到了但是ffmeg各种不服,也真是,咋会有这种莫名其妙的bug的……
找不到视频文件我也是疯了,改了glob.glob之后找到了但是ffmeg各种不服,也真是,咋会有这种莫名其妙的bug的……
当处理视频的时候,需要指定视频文件,不再是文件夹了
谢谢,我是用的PyCharm运行源代码发现不识别文件夹里的视频的,如果要指定视频的话应该需要更改源代码,我通过更改代码的glob.glob的匹配代码可以找到视频文件了,但是ffmpeg运行库又有问题了,这个不知道怎么解决了。
---Original--- From: @.> Date: Fri, Oct 20, 2023 23:35 PM To: @.>; Cc: @.@.>; Subject: Re: [sczhou/CodeFormer] Video method not working (Issue #89)
找不到视频文件我也是疯了,改了glob.glob之后找到了但是ffmeg各种不服,也真是,咋会有这种莫名其妙的bug的……
当处理视频的时候,需要指定视频文件,不再是文件夹了
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
谢谢,我是用的PyCharm运行源代码发现不识别文件夹里的视频的,如果要指定视频的话应该需要更改源代码,我通过更改代码的glob.glob的匹配代码可以找到视频文件了,但是ffmpeg运行库又有问题了,这个不知道怎么解决了。 … ---Original--- From: @.> Date: Fri, Oct 20, 2023 23:35 PM To: @.>; Cc: @.@.>; Subject: Re: [sczhou/CodeFormer] Video method not working (Issue #89) 找不到视频文件我也是疯了,改了glob.glob之后找到了但是ffmeg各种不服,也真是,咋会有这种莫名其妙的bug的…… 当处理视频的时候,需要指定视频文件,不再是文件夹了 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
不知道是不是参数设置的问题,发现这个库没有宣传的那么好用
我用gui那个搞视频,分帧图片高清变脸没啥问题,就是不合并视频,看源码说是可以合并分帧成视频,但是又有其他问题,先不说库的事儿,我看他的代码可能都有错误,我也看了gui的代码,已经针对源码改了不少内容了,最近没空细看,到时候我看看gui咋回事儿
---Original--- From: @.> Date: Mon, Oct 23, 2023 15:15 PM To: @.>; Cc: @.@.>; Subject: Re: [sczhou/CodeFormer] Video method not working (Issue #89)
谢谢,我是用的PyCharm运行源代码发现不识别文件夹里的视频的,如果要指定视频的话应该需要更改源代码,我通过更改代码的glob.glob的匹配代码可以找到视频文件了,但是ffmpeg运行库又有问题了,这个不知道怎么解决了。 … ---Original--- From: @.> Date: Fri, Oct 20, 2023 23:35 PM To: @.>; Cc: @.@.>; Subject: Re: [sczhou/CodeFormer] Video method not working (Issue #89) 找不到视频文件我也是疯了,改了glob.glob之后找到了但是ffmeg各种不服,也真是,咋会有这种莫名其妙的bug的…… 当处理视频的时候,需要指定视频文件,不再是文件夹了 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
不知道是不是参数设置的问题,发现这个库没有宣传的那么好用
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>