Skip to content

Commit 5d9ed4f

Browse files
uartieintel-media-ci
authored andcommitted
Revert "Enhance PSNR Check for Luma (Y) Channel in VPP Sharpen Filter"
This reverts commit 25a0366.
1 parent 25a0366 commit 5d9ed4f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/mixin/vpp.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,7 @@ def compare(k, ref, actual):
132132
assert actual[-2] == 100, "Cb(U) should not be affected by SHARPEN filter"
133133
assert actual[-1] == 100, "Cr(V) should not be affected by SHARPEN filter"
134134
assert ref is not None, "Invalid reference value"
135-
# Only assert if actual Luma (Y) is lower than reference, using specified range condition
136-
if actual[-3] < ref[-3]:
137-
# Ensure the difference is within the acceptable range [0, 0.25)
138-
assert 0 <= ref[-3] - actual[-3] < 0.25, f"Luma (Y) is lower than reference value: {actual[-3]} < {ref[-3]}"
135+
assert abs(ref[-3] - actual[-3]) < 0.25, "Luma (Y) out of baseline range"
139136

140137
metrics2.check(
141138
metric = dict(type = "psnr"), compare = compare,

0 commit comments

Comments
 (0)