removed dead vmaf code

This commit is contained in:
Zen 2021-06-01 20:57:35 +03:00
parent 0fb7ad4b7d
commit 6dc82db96c

View file

@ -173,24 +173,6 @@ class VMAF:
# return -ln(1-99.99/100)
return 9.210340371976184
@staticmethod
def read_vmaf_with_motion_compensation(file, percentile=0):
"""Reads vmaf file with vmaf scores in it and return N percentile score from it.
:return: N percentile score
:rtype: float
"""
jsn = VMAF.read_json(file)
vmafs = sorted([x["metrics"]["vmaf"] for x in jsn["frames"]])
motion = np.average([x["metrics"]["motion2"] for x in jsn["frames"]])
print(round(motion, 1))
percentile = percentile if percentile != 0 else 0.25
score = VMAF.get_percentile(vmafs, percentile)
return round(score, 2)
@staticmethod
def read_weighted_vmaf(file, percentile=0):
"""Reads vmaf file with vmaf scores in it and return N percentile score from it.