chore: removed print statements
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user