mirror of
https://github.com/master-of-zen/Av1an.git
synced 2024-11-25 02:29:40 +00:00
Limit target vmaf pooling by minumum and standart deviation
This commit is contained in:
parent
b2a606f6d0
commit
c4e48fb590
1 changed files with 4 additions and 0 deletions
|
@ -32,9 +32,13 @@ def read_vmaf_json(file, percentile=0):
|
|||
# Using 2 standart deviations to weight for bad frames
|
||||
mean = np.mean(vmafs)
|
||||
dev = np.std(vmafs)
|
||||
minimum = np.min(vmafs)
|
||||
|
||||
|
||||
perc = mean - (2 * dev)
|
||||
|
||||
perc = max(perc, minimum)
|
||||
|
||||
else:
|
||||
perc = round(np.percentile(vmafs, percentile), 2)
|
||||
|
||||
|
|
Loading…
Reference in a new issue