mirror of
https://github.com/storytold/lightcraft.git
synced 2026-10-14 19:27:01 -04:00
Faces: model manifests, known-model table and an ONNX probe (no runtime yet)
New L1 crate `lightcraft-faces`, the base of a one-drop model install: - `ModelManifest` (role, licence with a commercial yes / no / unknown flag and a plain-language notice, provenance, input preprocessing, output, thresholds) with strict validation: sizes capped, numbers finite and sane, https-only addresses, bounded text. A manifest from any source is untrusted. - `known`: models recognised by SHA-256 (YuNet, SFace, AuraFace v1), with what is and is not known about their licences and training data. - `onnx`: a streaming, hostile-input-safe protobuf probe of a model's graph inputs and outputs. It reads a 248 MB model in about 4 ms and never loads the weights; truncation at every length and random corruption never panic. - `suggest`: known hash -> its manifest; an unknown model shaped like a face embedder -> a draft manifest with the assumptions spelled out; anything else -> a plain reason it is not supported yet. - `hash`: streamed SHA-256. Checked against the real model files with an opt-in test (LC_FACE_MODELS). It found an old exporter listing every weight as an input, now handled. Running a model (tract) is not part of this crate yet. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
1 parent
3c3b527b7f
commit
39de0e6a1c
10 files changed
+1322
No files matched your search
@@ -43,6 +43,7 @@ pub const TABLE: &[(&str, Class)] = &[
|
||||
("codecs", Class::Layer(1)),
|
||||
("meta", Class::Layer(1)),
|
||||
("develop", Class::Layer(1)),
|
||||
("faces", Class::Layer(1)),
|
||||
("scenes", Class::Layer(1)),
|
||||
("pipeline", Class::Layer(2)),
|
||||
("gpu", Class::Layer(3)),
|
||||
|
||||
Reference in new issue
Block a user