GFPGAN所需用到的預訓練模型
RealESRGAN_x2plus.pth
GFPGANV1.3
experiments\pretrained_models\
detection_Resnet50_Final.pth
parsing_parsenet.pth
gfpgan\weights
相關指令
推理
python inference_gfpgan.py -i inputs/whole_imgs -o results -v 1.3 -s 2 --bg_upsampler realesrgan
視頻轉圖片
ffmpeg -i test.mp4 -r 1 -s WxH -f image2 /image-%3d.jpg
圖片轉視頻
ffmpeg -f image2 -framerate 25 -i image-%3d.jpg test1.mp4