chore: removed print statements

This commit is contained in:
Storm
2026-01-30 17:48:47 +01:00
parent 1bdfe34350
commit 0d1f43df8c

View File

@@ -33,12 +33,10 @@ class DeepFaceEmotionRecognizer(VisualEmotionRecognizer):
self.load_model() self.load_model()
def load_model(self): def load_model(self):
print("Loading Deepface Emotion Model...")
dummy_img = np.zeros((224, 224, 3), dtype=np.uint8) dummy_img = np.zeros((224, 224, 3), dtype=np.uint8)
# analyze does not take a model as an argument, calling it once on a dummy image to load # analyze does not take a model as an argument, calling it once on a dummy image to load
# the model # the model
DeepFace.analyze(dummy_img, actions=['emotion'], enforce_detection=False) DeepFace.analyze(dummy_img, actions=['emotion'], enforce_detection=False)
print("Deepface Emotion Model loaded.")
def sorted_dominant_emotions(self, image) -> list[str]: def sorted_dominant_emotions(self, image) -> list[str]:
analysis = DeepFace.analyze(image, analysis = DeepFace.analyze(image,