Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,3 +1,73 @@
|
|
| 1 |
---
|
| 2 |
license: mit
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: mit
|
| 3 |
+
tags:
|
| 4 |
+
- face-recognition
|
| 5 |
+
- face-detection
|
| 6 |
+
- face-landmarks
|
| 7 |
+
- face-expression
|
| 8 |
+
- face-age-gender
|
| 9 |
+
- gguf
|
| 10 |
+
- vision
|
| 11 |
+
library_name: gguf
|
| 12 |
+
pipeline_tag: image-classification
|
| 13 |
---
|
| 14 |
+
|
| 15 |
+
# face-api weights (gguf + safetensors)
|
| 16 |
+
|
| 17 |
+
Pre-trained model weights from [vladmandic/face-api](https://github.com/vladmandic/face-api)
|
| 18 |
+
at commit `189226d63aabb48cb40776fd1c453ebc0fa722f1`, converted losslessly to
|
| 19 |
+
portable **safetensors** and **gguf** (float32) formats by the
|
| 20 |
+
[`CognitiveOS-Labs/face-recognition`](https://github.com/CognitiveOS-Labs/face-recognition)
|
| 21 |
+
reproducible pipeline.
|
| 22 |
+
|
| 23 |
+
## Models
|
| 24 |
+
|
| 25 |
+
| File | Tensors | Purpose |
|
| 26 |
+
|------|---------|---------|
|
| 27 |
+
| `tiny_face_detector_model.gguf` | 19 | Tiny face detection |
|
| 28 |
+
| `face_landmark_68_model.gguf` | 49 | 68-point landmarks |
|
| 29 |
+
| `face_landmark_68_tiny_model.gguf` | 28 | Tiny 68-point landmarks |
|
| 30 |
+
| `face_recognition_model.gguf` | 117 | Face embedding (128-d) |
|
| 31 |
+
| `ssd_mobilenetv1_model.gguf` | 151 | SSD face detection |
|
| 32 |
+
| `age_gender_model.gguf` | 51 | Age / gender |
|
| 33 |
+
| `face_expression_model.gguf` | 49 | Facial expression |
|
| 34 |
+
|
| 35 |
+
Every model is also provided as `.safetensors` and both formats carry a
|
| 36 |
+
`*-mapping.json` recording each tensor's name, shape, dtype, data location,
|
| 37 |
+
and the original TF.js quantization block (source traceability).
|
| 38 |
+
|
| 39 |
+
## Format notes
|
| 40 |
+
|
| 41 |
+
- **Weights only.** The face-api repo has no `model.json` — the network
|
| 42 |
+
topologies live in its TypeScript sources under `src/`. These artifacts
|
| 43 |
+
preserve the original TF.js tensor names verbatim.
|
| 44 |
+
- All tensors are **float32** (the dequantized values produced by the TF.js
|
| 45 |
+
loader), except 15 scalar `int32` constants in `ssd_mobilenetv1_model`
|
| 46 |
+
(postprocessor shape parameters).
|
| 47 |
+
- The gguf files use **generic packing** (metadata keys
|
| 48 |
+
`general.architecture`, `general.name`, `general.source`,
|
| 49 |
+
`general.source.commit`, `general.alignment`, `general.file_type`; GGML
|
| 50 |
+
dim order; `GGML_TYPE_F32`=0, `GGML_TYPE_I32`=26). They are structurally
|
| 51 |
+
valid GGUF v3 but use a custom `general.architecture`, so llama.cpp will not
|
| 52 |
+
load them yet — a runtime for these architectures is the documented
|
| 53 |
+
follow-up (see the `face-recognition` CGP repo).
|
| 54 |
+
- Reference loaders and the full bitwise-validation suite live in the
|
| 55 |
+
`face-recognition` CGP repo under `scripts/`.
|
| 56 |
+
|
| 57 |
+
## Consumed by
|
| 58 |
+
|
| 59 |
+
- [`CognitiveOS-Labs/face-recognition`](https://github.com/CognitiveOS-Labs/face-recognition)
|
| 60 |
+
— CognitiveOS patch declaring `face_recognition_model.gguf` as its remote
|
| 61 |
+
wide-model weight (downloaded at `cpm install` time).
|
| 62 |
+
- [`CognitiveOS-Labs/face-recognition-tune`](https://github.com/CognitiveOS-Labs/face-recognition-tune)
|
| 63 |
+
— `cpm tune` LoRA trainer over the frozen base weights.
|
| 64 |
+
|
| 65 |
+
## Source & license
|
| 66 |
+
|
| 67 |
+
Weights derived from `vladmandic/face-api` (MIT), commit
|
| 68 |
+
`189226d63aabb48cb40776fd1c453ebc0fa722f1`, provided "as-is". Conversion tooling
|
| 69 |
+
in the `face-recognition` CGP repo is MIT.
|
| 70 |
+
|
| 71 |
+
The recognition backbone was trained on VGGFace2-like data by the face-api
|
| 72 |
+
project; generic face recognition works out of the box, while recognizing
|
| 73 |
+
specific people is an enrollment (embedding-gallery) operation.
|