We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0651a18 + b96247e commit 7d17637Copy full SHA for 7d17637
src/mock_vws/target_raters.py
@@ -30,7 +30,7 @@ def _get_brisque_target_tracking_rating(image_content: bytes) -> int:
30
image_tensor = image_tensor.unsqueeze(0)
31
try:
32
brisque_score = piq.brisque(x=image_tensor, data_range=255)
33
- except AssertionError:
+ except (AssertionError, IndexError):
34
return 0
35
return math.ceil(int(brisque_score.item()) / 20)
36
0 commit comments