From 93756d129510dfdf18d74608e841be9b4b085c45 Mon Sep 17 00:00:00 2001 From: henryruhs Date: Wed, 18 Jun 2025 00:24:30 +0200 Subject: [PATCH] Update face store to faster hashing --- facefusion/face_store.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/facefusion/face_store.py b/facefusion/face_store.py index 59e6d5d..ccb8380 100644 --- a/facefusion/face_store.py +++ b/facefusion/face_store.py @@ -1,8 +1,8 @@ -import hashlib from typing import List, Optional import numpy +from facefusion.hash_helper import create_hash from facefusion.types import Face, FaceSet, FaceStore, VisionFrame FACE_STORE : FaceStore =\ @@ -35,7 +35,7 @@ def clear_static_faces() -> None: def create_frame_hash(vision_frame : VisionFrame) -> Optional[str]: if numpy.any(vision_frame): - frame_hash = hashlib.blake2b(vision_frame.tobytes(), digest_size = 16).hexdigest() + frame_hash = create_hash(vision_frame.tobytes()) return frame_hash return None