T0KII/signatures-dataset
Viewer • Updated • 2.64k • 607
How to use T0KII/signature-similarity with Keras:
# !pip install -U keras tensorflow huggingface_hub
# Keras needs TensorFlow installed to read "hf://" paths, so the tensorflow backend is selected here;
# "jax" and "torch" also work for computation once TensorFlow is installed.
import os
os.environ["KERAS_BACKEND"] = "tensorflow"
import keras
model = keras.saving.load_model("hf://T0KII/signature-similarity")
This model is designed to verify the authenticity of handwriting signatures by comparing a query signature against a reference signature. It calculates a dissimilarity score using Euclidean distance metrics over extracted feature embeddings to assist in forgery detection.
The model is trained on the Sig-DS dataset, which consists of:
0.0, while distinct writers or forgeries scale higher towards the contrastive margin.