sczhou / CodeFormer

[NeurIPS 2022] Towards Robust Blind Face Restoration with Codebook Lookup Transformer
Other
15.84k stars 3.34k forks source link

For videos #60

Open Meta-Mahdi opened 2 years ago

Meta-Mahdi commented 2 years ago

Hi I hope that you be great in your life I want to know how to use CodeForme for videos? if really it is possible can you tell exactly how? It is really necessary for me...

sczhou commented 2 years ago

You can use the following command for the video enhancement:

python inference_codeformer.py --bg_upsampler realesrgan --face_upsample -w 1.0 --input_path  your_video_path.mp4 --save_video_fps 24

You can set frame rate of saved video via '--save_video_fps 24'

All commands can be also found in the README.md file.

newchcoder commented 1 year ago

python inference_codeformer.py --bg_upsampler realesrgan --face_upsampl

After running this command, there are nothing in result methods. Ffmepg has already installed but still not working. I didn't have the slightest idea……

9cat commented 1 year ago

I got all the PNGs , and when saving to video, it get killed by the system. I am trying to using to swap to see if just because the memory.

WenchenLi commented 1 year ago

I got all the PNGs , and when saving to video, it get killed by the system. I am trying to using to swap to see if just because the memory.

save here

hengsleep commented 1 year ago

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

tayiu commented 1 year ago

Inference_codeformer.py: error: unrecognized arguments: C:\Users*\CodeFormer\inputs* --- What happened?

lcloveyou commented 1 month ago

I got all the PNGs , and when saving to video, it get killed by the system. I am trying to using to swap to see if just because the memory.

I also encountered this problem, have you solved it, brother