Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

fix(face-embed): fetch the pinned face models from a URL that resolves Git LFS

nirholascd2f1917d512
diff --git a/api/_lib/face-embed.js b/api/_lib/face-embed.js
index 94503b35b..d27efb652 100644
--- a/api/_lib/face-embed.js
+++ b/api/_lib/face-embed.js
@@ -45,8 +45,12 @@ import path from 'node:path';
// Pinned to one opencv_zoo commit, not to `main`: a moving ref means a model
// swap could land in a cron run nobody triggered, and every stored score before
// it would silently stop being comparable.
+// opencv_zoo keeps its weights in Git LFS, so raw.githubusercontent.com serves
+// the 130-byte pointer file rather than the model. github.com/<repo>/raw/<ref>
+// resolves LFS; the SHA-256 check below is what caught the difference, and is
+// the reason the URL form is worth a comment rather than a silent constant.
const ZOO_COMMIT = '47534e27c9851bb1128ccc0102f1145e27f23f98';
-const ZOO_RAW = `https://raw.githubusercontent.com/opencv/opencv_zoo/${ZOO_COMMIT}/models`;
+const ZOO_RAW = `https://github.com/opencv/opencv_zoo/raw/${ZOO_COMMIT}/models`;
export const MODELS = {
detect: {