Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions nodes_extras/face_controller_3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -1276,14 +1276,14 @@ def _fingerprint_tensor(t) -> str:
try:
arr = t.cpu().numpy()
import hashlib
return shape_str + ":" + hashlib.md5(arr.tobytes()).hexdigest()
return shape_str + ":" + hashlib.sha256(arr.tobytes()).hexdigest()
except Exception:
pass
# numpy array directly.
if hasattr(t, "tobytes"):
try:
import hashlib
return shape_str + ":" + hashlib.md5(t.tobytes()).hexdigest()
return shape_str + ":" + hashlib.sha256(t.tobytes()).hexdigest()
except Exception:
pass
# Last resort: shape + dtype only (still stable for same input).
Expand Down