names sequence | face_vectors sequence |
|---|---|
[
[
"test"
]
] | [
[
[
0.1,
0.2,
0.3,
0.4,
0.5
]
]
] |
Face Vectors Dataset
This dataset contains vector representations of faces extracted using the save_faces function. Each entry in the dataset consists of a vector representation of a face along with associated metadata.
Function Description
The save_faces function extracts vector representations of faces from images using the Face Recognition library. It takes as input a marked image (with detected faces), a list of face images (as NumPy arrays or similar), and corresponding names or identifiers for each face. The function iterates over the detected faces, computes their vector representations, and stores them along with the associated names in a dataset.
Dataset Contents
The dataset contains the following information for each entry:
names: Names or identifiers corresponding to each face.face_vectors: Vector representations of the faces extracted using thesave_facesfunction.
Usage Instructions
To use this dataset:
- Obtain the
marked_img,faces, andnamesinputs for thesave_facesfunction. - Call the
save_facesfunction with the provided inputs. - The function will generate a dataset containing the vector representations of faces along with their associated names.
- The dataset will be saved to the Hugging Face Hub with the name "facenet-faces-vectors-dataset".
Example Usage
# Example usage of the save_faces function
marked_img, faces, names = ... # Obtain the inputs
marked_img, faces = save_faces(marked_img, faces, names)
- Downloads last month
- 8