Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Video method not working #89

Open
shalikas opened this issue Dec 30, 2022 · 10 comments
Open

Video method not working #89

shalikas opened this issue Dec 30, 2022 · 10 comments

Comments

@shalikas
Copy link

"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 ?

@mu-fazil-vk
Copy link

mu-fazil-vk commented Dec 31, 2022

"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 ☺️

@xyjdd
Copy link

xyjdd commented Jan 15, 2023

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

@newchcoder
Copy link

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.

@hengsleep
Copy link

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"?

@idanka
Copy link

idanka commented Apr 15, 2023

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

@YABIJIU
Copy link

YABIJIU commented Oct 14, 2023

找不到视频文件我也是疯了,改了glob.glob之后找到了但是ffmeg各种不服,也真是,咋会有这种莫名其妙的bug的……

@Lumisa-ay
Copy link

找不到视频文件我也是疯了,改了glob.glob之后找到了但是ffmeg各种不服,也真是,咋会有这种莫名其妙的bug的……

当处理视频的时候,需要指定视频文件,不再是文件夹了

@YABIJIU
Copy link

YABIJIU commented Oct 20, 2023 via email

@Lumisa-ay
Copy link

谢谢,我是用的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: @.***>

不知道是不是参数设置的问题,发现这个库没有宣传的那么好用

@YABIJIU
Copy link

YABIJIU commented Oct 23, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants