Skip to content

Commit

Permalink
Revert "Enhance PSNR Check for Luma (Y) Channel in VPP Sharpen Filter"
Browse files Browse the repository at this point in the history
This reverts commit 25a0366.
  • Loading branch information
uartie authored Nov 22, 2024
1 parent 25a0366 commit 662774d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/mixin/vpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,7 @@ def compare(k, ref, actual):
assert actual[-2] == 100, "Cb(U) should not be affected by SHARPEN filter"
assert actual[-1] == 100, "Cr(V) should not be affected by SHARPEN filter"
assert ref is not None, "Invalid reference value"
# Only assert if actual Luma (Y) is lower than reference, using specified range condition
if actual[-3] < ref[-3]:
# Ensure the difference is within the acceptable range [0, 0.25)
assert 0 <= ref[-3] - actual[-3] < 0.25, f"Luma (Y) is lower than reference value: {actual[-3]} < {ref[-3]}"
assert abs(ref[-3] - actual[-3]) < 0.25, "Luma (Y) out of baseline range"

metrics2.check(
metric = dict(type = "psnr"), compare = compare,
Expand Down

0 comments on commit 662774d

Please sign in to comment.