Limit target vmaf pooling by minumum and standart deviation

This commit is contained in:
Zen 2020-10-30 23:37:40 +02:00
parent b2a606f6d0
commit c4e48fb590

View file

@ -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)