mirror of
https://github.com/master-of-zen/Av1an.git
synced 2024-11-25 02:29:40 +00:00
removed dead vmaf code
This commit is contained in:
parent
0fb7ad4b7d
commit
6dc82db96c
1 changed files with 0 additions and 18 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue