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.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
fix(rig): make the worker image build and asset staging reproducible
nirholas1849695f1eb2
diff --git a/workers/rig/Dockerfile b/workers/rig/Dockerfileindex 81693d569..08e7bb702 100644--- a/workers/rig/Dockerfile+++ b/workers/rig/Dockerfile@@ -20,6 +20,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends \&& ln -sf /usr/bin/python3.11 /usr/bin/python \&& python3 -m pip install --upgrade pip setuptools wheel+# torch first, as its own cached layer: the cu121 wheels are multi-GB and+# some downstream packages import torch during their own install.+RUN pip install torch==2.1.2 torchvision==0.16.2 \+ --index-url https://download.pytorch.org/whl/cu121+COPY requirements.txt /app/requirements.txtRUN pip install -r /app/requirements.txtdiff --git a/workers/rig/requirements.txt b/workers/rig/requirements.txtindex 0d001380c..126f90c1d 100644--- a/workers/rig/requirements.txt+++ b/workers/rig/requirements.txt@@ -1,12 +1,13 @@# Make-It-Animatable (jasongzy, MIT) runtime set, mirrored from its# requirements.txt at the commit pinned in the Dockerfile, minus training-only# extras (tensorboard, ipykernel, ipympl, fake-bpy-module).---extra-index-url https://download.pytorch.org/whl/cu121-torch==2.1.2-torchvision==0.16.2-+#+# torch/torchvision install in their own Dockerfile layer BEFORE this file so+# anything that imports torch at build time already has it. torch-cluster is+# pinned to the exact pyg wheel build: the bare "torch-cluster" spec let pip+# pick the PyPI sdist, whose isolated build env has no torch and fails.-f https://data.pyg.org/whl/torch-2.1.2+cu121.html-torch-cluster+torch-cluster==1.6.3+pt21cu121--extra-index-url https://miropsota.github.io/torch_packages_builderpytorch3d==0.7.7+pt2.1.2cu121diff --git a/workers/rig/stage-assets.sh b/workers/rig/stage-assets.shindex 497fdfdf1..62539a80d 100755--- a/workers/rig/stage-assets.sh+++ b/workers/rig/stage-assets.sh@@ -22,10 +22,25 @@ GIT_LFS_SKIP_SMUDGE=1 git clone --depth 1 \https://huggingface.co/jasongzy/Make-It-Animatable "$WORK/hf-mia"git -C "$WORK/hf-mia" lfs pull -I output/best/new-echo "==> Mixamo bone templates (HF dataset: jasongzy/Mixamo)"-GIT_LFS_SKIP_SMUDGE=1 git clone --depth 1 \- https://huggingface.co/datasets/jasongzy/Mixamo "$WORK/hf-mixamo"-git -C "$WORK/hf-mixamo" lfs pull -I 'bones*.fbx'+echo "==> Mixamo bone templates (HF dataset: jasongzy/Mixamo, gated: auto)"+# The dataset is gated (auto-approve). Needs an HF token; the platform one+# lives on the three-ws-api Cloud Run service. First use of a token must+# accept the gate, which the ask-access POST does for auto-gated repos.+if [ -z "${HF_TOKEN:-}" ]; then+ HF_TOKEN=$(gcloud run services describe three-ws-api --region us-central1 \+ --format=json | python3 -c "+import json, sys+envs = json.load(sys.stdin)['spec']['template']['spec']['containers'][0].get('env', [])+print(next(e['value'] for e in envs if e['name'] == 'HF_TOKEN'))")+fi+curl -sf -X POST -H "Authorization: Bearer $HF_TOKEN" \+ https://huggingface.co/datasets/jasongzy/Mixamo/ask-access >/dev/null || true+mkdir -p "$WORK/hf-mixamo"+for f in bones.fbx bones_vroid.fbx; do+ curl -sfL -H "Authorization: Bearer $HF_TOKEN" \+ "https://huggingface.co/datasets/jasongzy/Mixamo/resolve/main/$f" \+ -o "$WORK/hf-mixamo/$f"+doneecho "==> ICT-FaceKit ARKit template bake"git clone --depth 1 https://github.com/ICT-VGL/ICT-FaceKit "$WORK/ict"