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 2638ba9 + 336159d commit 182c594Copy full SHA for 182c594
src/mock_vws/target_raters.py
@@ -32,7 +32,12 @@ def _get_brisque_target_tracking_rating(image_content: bytes) -> int:
32
with np.errstate(divide="ignore", invalid="ignore"):
33
try:
34
score = brisque_obj.score(img=image_array)
35
+ # See https://github.com/pylint-dev/pylint/issues/9332
36
+ # for why we disable these warnings - pylint has trouble with
37
+ # cv2.error and behaves differently depending on the OS.
38
+ # pylint: disable=catching-non-exception, useless-suppression
39
except (cv2.error, ValueError):
40
+ # pylint: enable=catching-non-exception, useless-suppression
41
return 0
42
if math.isnan(score):
43
0 commit comments