mirror of
				https://github.com/blakeblackshear/frigate.git
				synced 2025-10-27 10:52:11 +01:00 
			
		
		
		
	Change folder
This commit is contained in:
		
							parent
							
								
									d025495374
								
							
						
					
					
						commit
						c26144da75
					
				@ -105,7 +105,7 @@ class EmbeddingMaintainer(threading.Thread):
 | 
			
		||||
        # Lazily create the classifier.
 | 
			
		||||
        if "face_detector" not in self.__dict__:
 | 
			
		||||
            self.__dict__["face_detector"] = cv2.FaceDetectorYN.create(
 | 
			
		||||
                "/config/model_cache/facenet/facedet.onnx",
 | 
			
		||||
                "/config/model_cache/facedet/facedet.onnx",
 | 
			
		||||
                config="",
 | 
			
		||||
                input_size=(320, 320),
 | 
			
		||||
                score_threshold=0.8,
 | 
			
		||||
 | 
			
		||||
@ -163,7 +163,7 @@ class FaceClassificationModel:
 | 
			
		||||
        self.config = config
 | 
			
		||||
        self.db = db
 | 
			
		||||
        self.landmark_detector = cv2.face.createFacemarkLBF()
 | 
			
		||||
        self.landmark_detector.loadModel("/config/model_cache/facenet/landmarkdet.yaml")
 | 
			
		||||
        self.landmark_detector.loadModel("/config/model_cache/facedet/landmarkdet.yaml")
 | 
			
		||||
        self.recognizer: cv2.face.LBPHFaceRecognizer = (
 | 
			
		||||
            cv2.face.LBPHFaceRecognizer_create(
 | 
			
		||||
                radius=2, threshold=(1 - config.threshold) * 1000
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user