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(workers): point the fleet scripts at the model-rig service instead of the retired unirig one

nirholasbe39f0e901b8
diff --git a/scripts/gcp/revert-to-free.sh b/scripts/gcp/revert-to-free.sh
index afe203c0c..88de74e91 100755
--- a/scripts/gcp/revert-to-free.sh
+++ b/scripts/gcp/revert-to-free.sh
@@ -77,7 +77,7 @@ for arg in "$@"; do
done
REGION="${REGION:-us-central1}"
-SERVICES="${SERVICES:-model-trellis model-hunyuan3d model-triposr model-triposg unirig avatar-pipeline-controller rembg remesh texture segment}"
+SERVICES="${SERVICES:-model-trellis model-hunyuan3d model-triposr model-triposg model-rig avatar-pipeline-controller rembg remesh texture segment}"
# ── styling ───────────────────────────────────────────────────────────────────
bold() { printf '\033[1m%s\033[0m\n' "$*"; }
diff --git a/scripts/gcp/teardown.sh b/scripts/gcp/teardown.sh
index c0e29ed6e..135292e85 100755
--- a/scripts/gcp/teardown.sh
+++ b/scripts/gcp/teardown.sh
@@ -53,7 +53,7 @@ for arg in "$@"; do
done
REGION="${REGION:-us-central1}"
-SERVICES="${SERVICES:-model-trellis model-hunyuan3d model-triposr model-triposg unirig avatar-pipeline-controller rembg remesh texture segment}"
+SERVICES="${SERVICES:-model-trellis model-hunyuan3d model-triposr model-triposg model-rig avatar-pipeline-controller rembg remesh texture segment}"
WEIGHTS_BUCKET="${WEIGHTS_BUCKET:-three-ws-model-weights}"
OUTPUT_BUCKET="${OUTPUT_BUCKET:-three-ws-avatar-reconstructions}"
ARTIFACT_REPO="${ARTIFACT_REPO:-three-ws-workers}"
diff --git a/workers/deploy/deploy-all.sh b/workers/deploy/deploy-all.sh
index f8f936604..e38ac8415 100755
--- a/workers/deploy/deploy-all.sh
+++ b/workers/deploy/deploy-all.sh
@@ -5,7 +5,7 @@
#
# Pipeline shape:
# selfie photos → controller → mesh model (Hunyuan3D/TRELLIS/TripoSR, L4 GPU)
-# → UniRig rigging (L4 GPU) → rigged GLB in GCS
+# → rig worker (L4 GPU) → rigged GLB in GCS
#
# The Vercel function api/_providers/gcp.js talks ONLY to the controller, so the
# last thing this prints is the controller URL + API key to put in Vercel env.
@@ -17,12 +17,12 @@
#
# Usage:
# PROJECT_ID=my-proj ./deploy-all.sh
-# PROJECT_ID=my-proj SERVICES="hunyuan3d trellis triposr unirig" ./deploy-all.sh
+# PROJECT_ID=my-proj SERVICES="hunyuan3d trellis triposr rig" ./deploy-all.sh
#
# Env:
# PROJECT_ID required — target GCP project
# REGION default us-central1 (must offer Cloud Run nvidia-l4)
-# SERVICES default "hunyuan3d unirig" (mesh model(s) + rigging)
+# SERVICES default "hunyuan3d rig" (mesh model(s) + rigging)
# OUTPUT_BUCKET default three-ws-avatar-reconstructions
# WEIGHTS_BUCKET default three-ws-model-weights
@@ -30,7 +30,7 @@ set -euo pipefail
PROJECT_ID="${PROJECT_ID:?set PROJECT_ID to your GCP project}"
REGION="${REGION:-us-central1}"
-SERVICES="${SERVICES:-hunyuan3d unirig}"
+SERVICES="${SERVICES:-hunyuan3d rig}"
OUTPUT_BUCKET="${OUTPUT_BUCKET:-three-ws-avatar-reconstructions}"
WEIGHTS_BUCKET="${WEIGHTS_BUCKET:-three-ws-model-weights}"
SECRET_NAME="avatar-reconstruction-key"
@@ -47,9 +47,12 @@ command -v gcloud >/dev/null 2>&1 || die "gcloud not found on PATH"
gcloud auth print-access-token >/dev/null 2>&1 || die "gcloud is not authenticated — run 'gcloud auth login'"
# service key -> "worker_dir|cloud_run_service|controller_env_var"
-svc_dir() { case "$1" in hunyuan3d) echo model-hunyuan3d;; trellis) echo model-trellis;; triposr) echo model-triposr;; triposg) echo model-triposg;; unirig) echo unirig;; *) echo "";; esac; }
-svc_runname() { case "$1" in hunyuan3d) echo model-hunyuan3d;; trellis) echo model-trellis;; triposr) echo model-triposr;; triposg) echo model-triposg;; unirig) echo unirig;; *) echo "";; esac; }
-svc_ctrlenv() { case "$1" in hunyuan3d) echo MODEL_HUNYUAN3D_URL;; trellis) echo MODEL_TRELLIS_URL;; triposr) echo MODEL_TRIPOSR_URL;; triposg) echo MODEL_TRIPOSG_URL;; unirig) echo UNIRIG_URL;; *) echo "";; esac; }
+# The `rig` key deploys workers/rig as Cloud Run service `model-rig`. Its
+# controller env var is still named UNIRIG_URL: the name predates the engine
+# swap and is live on the running services, so it is deliberately not renamed.
+svc_dir() { case "$1" in hunyuan3d) echo model-hunyuan3d;; trellis) echo model-trellis;; triposr) echo model-triposr;; triposg) echo model-triposg;; rig) echo rig;; *) echo "";; esac; }
+svc_runname() { case "$1" in hunyuan3d) echo model-hunyuan3d;; trellis) echo model-trellis;; triposr) echo model-triposr;; triposg) echo model-triposg;; rig) echo model-rig;; *) echo "";; esac; }
+svc_ctrlenv() { case "$1" in hunyuan3d) echo MODEL_HUNYUAN3D_URL;; trellis) echo MODEL_TRELLIS_URL;; triposr) echo MODEL_TRIPOSR_URL;; triposg) echo MODEL_TRIPOSG_URL;; rig) echo UNIRIG_URL;; *) echo "";; esac; }
TAG="$(git rev-parse --short HEAD 2>/dev/null || echo manual)"
@@ -151,7 +154,7 @@ build_and_deploy() {
}
for svc in $SERVICES; do
- [ -n "$(svc_dir "$svc")" ] || die "unknown service '$svc' (valid: hunyuan3d trellis triposr triposg unirig)"
+ [ -n "$(svc_dir "$svc")" ] || die "unknown service '$svc' (valid: hunyuan3d trellis triposr triposg rig)"
build_and_deploy "$svc"
done
diff --git a/workers/deploy/stage-weights.sh b/workers/deploy/stage-weights.sh
index 927cb8f1e..15f44cf4a 100755
--- a/workers/deploy/stage-weights.sh
+++ b/workers/deploy/stage-weights.sh
@@ -15,11 +15,15 @@
# box with ~80 GB free disk (e.g. a GCE VM).
#
# Usage (Cloud Shell, full fleet):
-# HF_TOKEN=hf_xxx SERVICES="hunyuan3d trellis triposr triposg unirig" ./stage-weights.sh
+# HF_TOKEN=hf_xxx SERVICES="hunyuan3d trellis triposr triposg" ./stage-weights.sh
+#
+# The rig worker is NOT staged here: its assets span an LFS-filtered model repo,
+# a gated Mixamo dataset, and a baked ARKit template, which this one-repo-per-
+# service map cannot express. Stage it with `bash workers/rig/stage-assets.sh`.
#
# Env:
# WEIGHTS_BUCKET GCS bucket name (default: three-ws-model-weights)
-# SERVICES space-separated subset (default: "hunyuan3d unirig")
+# SERVICES space-separated subset (default: "hunyuan3d")
# HF_TOKEN Hugging Face token (required for gated repos e.g. Hunyuan3D)
# LOCAL_STAGE "1" to use the local-dir+rsync path instead of gcsfuse
# MOUNT_DIR gcsfuse mountpoint (default: /tmp/three-ws-weights-mnt)
@@ -29,7 +33,7 @@
set -euo pipefail
WEIGHTS_BUCKET="${WEIGHTS_BUCKET:-three-ws-model-weights}"
-SERVICES="${SERVICES:-hunyuan3d unirig}"
+SERVICES="${SERVICES:-hunyuan3d}"
LOCAL_STAGE="${LOCAL_STAGE:-0}"
MOUNT_DIR="${MOUNT_DIR:-/tmp/three-ws-weights-mnt}"
STAGE_DIR="${STAGE_DIR:-/tmp/three-ws-weights}"
@@ -45,7 +49,6 @@ weight_source() {
trellis) echo "microsoft/TRELLIS-image-large|trellis-large" ;;
triposr) echo "stabilityai/TripoSR|triposr" ;;
triposg) echo "VAST-AI/TripoSG|triposg VAST-AI/TripoSG-scribble|triposg-scribble briaai/RMBG-1.4|rmbg-1.4" ;;
- unirig) echo "VAST-AI/UniRig|unirig" ;;
*) echo "" ;;
esac
}
@@ -100,7 +103,7 @@ fi
stage_one() {
local svc="$1" src pair
src="$(weight_source "$svc")"
- [ -n "$src" ] || die "unknown service '$svc' (valid: hunyuan3d trellis triposr triposg unirig)"
+ [ -n "$src" ] || die "unknown service '$svc' (valid: hunyuan3d trellis triposr triposg; rig stages via workers/rig/stage-assets.sh)"
# A service may need several HF repos (triposg) — stage each pair.
for pair in $src; do
stage_repo "$svc" "$pair"