SimdFace 1.0.0
See the version list below for details.
dotnet add package SimdFace --version 1.0.0
NuGet\Install-Package SimdFace -Version 1.0.0
<PackageReference Include="SimdFace" Version="1.0.0" />
<PackageVersion Include="SimdFace" Version="1.0.0" />
<PackageReference Include="SimdFace" />
paket add SimdFace --version 1.0.0
#r "nuget: SimdFace, 1.0.0"
#:package SimdFace@1.0.0
#addin nuget:?package=SimdFace&version=1.0.0
#tool nuget:?package=SimdFace&version=1.0.0
SimdFace
SimdFace is a .NET 10 library for local face detection and 1:1 face verification. YuNet returns face boxes and five landmarks, and SFace extracts normalized 128-dimensional embeddings. The library uses C# SIMD on the CPU and can run inference through Vulkan on 64-bit Windows or Linux with a compatible driver.
dotnet add package SimdFace --version 1.0.0
Download the pinned YuNet and SFace ONNX weights with pwsh -File ./scripts/Get-Models.ps1 from the repository root. The script verifies SHA-256. Pass the downloaded model paths to the constructors and supply tightly packed RGB24 pixels in row order. Model download instructions
using System;
using System.IO;
using SimdFace;
var detector = new FaceDetector(Path.Combine("models", FaceDetector.ModelFileName));
var recognizer = new FaceRecognizer(Path.Combine("models", FaceRecognizer.ModelFileName));
float[] Extract(ReadOnlySpan<byte> rgb, int width, int height)
{
var faces = detector.Detect(rgb, width, height);
if (faces.Count != 1)
throw new InvalidOperationException("Expected exactly one face.");
return recognizer.EmbedForVerification(rgb, width, height, faces[0].Landmarks);
}
// Compare two embeddings from the same extraction pipeline:
// float score = FaceRecognizer.CosineSimilarity(first, second);
The package contains the inference library and its embedded Vulkan shaders. Download model weights separately. The repository also provides image decoding, a CLI, and a web app. English documentation · 中文文档
SimdFace is MIT-licensed. The package includes the MIT notices for SimdFace and the Vulkan bindings adapted from SimdSkia. Model weights have separate upstream licenses.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.