虽然RealSR不是效果最好速度快的算法,但是使用起来很方便,代码如下,需要提前安装paddlegan就行
from ppgan.apps import RealSRPredictor
sr = RealSRPredictor()
res_path='1.mp4'
_,out_path=sr.run(res_path)
print(out_path)
当这个方式也可以输入一张图片进行图片的超分。
虽然RealSR不是效果最好速度快的算法,但是使用起来很方便,代码如下,需要提前安装paddlegan就行
from ppgan.apps import RealSRPredictor
sr = RealSRPredictor()
res_path='1.mp4'
_,out_path=sr.run(res_path)
print(out_path)
当这个方式也可以输入一张图片进行图片的超分。