add docs for troubleshooting GPUs (#18644)

* add docs for troubleshooting GPUs

* Fix error when blur is not enabled

* Cleanup
This commit is contained in:
Nicolas Mowen
2025-06-09 12:19:56 -06:00
committed by GitHub
parent 03768e0050
commit 99e7533de2
3 changed files with 15 additions and 1 deletions

View File

@@ -111,7 +111,7 @@ class FaceRecognizer(ABC):
def get_blur_confidence_reduction(self, input: np.ndarray) -> tuple[float, float]:
"""Calculates the reduction in confidence based on the blur of the image."""
if not self.config.face_recognition.blur_confidence_filter:
return 1.0
return 0, 0.0
variance = cv2.Laplacian(input, cv2.CV_64F).var()