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.

feat(motion): run the foot-flick repair in the seeder, cap keepers per prompt, and add 44 new motion prompts

nirholasad9d7dcd506c
diff --git a/data/motion-prompts.json b/data/motion-prompts.json
index ad4b0772b..9b387b4a7 100644
--- a/data/motion-prompts.json
+++ b/data/motion-prompts.json
@@ -38,6 +38,11 @@
{ "id": "walk-march", "label": "Marching", "prompt": "a person marches in place with high knees and sharp swinging arms", "category": "locomotion", "loop": true, "duration_seconds": 4, "icon": "🥁", "tags": ["march", "in-place"] },
{ "id": "walk-catwalk", "label": "Runway Walk", "prompt": "a model walks a runway with hips swinging and one foot crossing in front of the other", "category": "locomotion", "loop": true, "duration_seconds": 5, "icon": "👠", "tags": ["walk", "fashion"] },
{ "id": "walk-strut", "label": "Strut", "prompt": "a person struts forward with an exaggerated confident bounce in each step", "category": "locomotion", "loop": true, "duration_seconds": 4, "icon": "😎", "tags": ["walk", "swagger"] },
+ { "id": "walk-phone", "label": "Walk While Texting", "prompt": "a person walks forward slowly while looking down at a phone held in both hands", "category": "locomotion", "loop": true, "duration_seconds": 5, "icon": "🚶", "tags": ["walk", "phone"] },
+ { "id": "walk-hands-pockets", "label": "Hands In Pockets Walk", "prompt": "a person walks forward casually with both hands in their pockets", "category": "locomotion", "loop": true, "duration_seconds": 4, "icon": "🚶", "tags": ["walk", "casual"] },
+ { "id": "walk-elderly", "label": "Elderly Walk", "prompt": "an elderly person walks forward slowly with short careful steps and a slight stoop", "category": "locomotion", "loop": true, "duration_seconds": 5, "icon": "🚶", "tags": ["walk", "elderly"] },
+ { "id": "jog-in-place", "label": "Jog In Place", "prompt": "a person jogs in place lifting the knees with relaxed arm swing", "category": "locomotion", "loop": true, "duration_seconds": 4, "icon": "🏃", "tags": ["jog", "in place"] },
+ { "id": "walk-zombie", "label": "Zombie Shamble", "prompt": "a zombie shambles forward dragging one foot with both arms stretched out in front", "category": "locomotion", "loop": true, "duration_seconds": 5, "icon": "🧟", "tags": ["walk", "zombie"] },
{ "id": "idle-breathing", "label": "Calm Idle", "prompt": "a person stands still and relaxed, breathing gently with tiny weight shifts", "category": "idle", "loop": true, "duration_seconds": 5, "icon": "🧍", "tags": ["idle", "breathe"] },
{ "id": "idle-shift-weight", "label": "Weight Shift Idle", "prompt": "a person stands and shifts their weight from one hip to the other while waiting", "category": "idle", "loop": true, "duration_seconds": 5, "icon": "🧍", "tags": ["idle", "wait"] },
@@ -53,6 +58,10 @@
{ "id": "idle-crouch-down", "label": "Crouch Down", "prompt": "a person crouches down onto their heels and stays low, then rises", "category": "idle", "loop": false, "duration_seconds": 5, "icon": "🦵", "tags": ["crouch"] },
{ "id": "idle-lean-wall", "label": "Lean Back Idle", "prompt": "a person leans back casually with weight on one leg, arms loose at the sides", "category": "idle", "loop": true, "duration_seconds": 5, "icon": "🧍", "tags": ["idle", "lean"] },
{ "id": "idle-cold", "label": "Shivering Idle", "prompt": "a freezing person shivers, hugging themselves and rubbing their upper arms", "category": "idle", "loop": true, "duration_seconds": 5, "icon": "🥶", "tags": ["idle", "cold"] },
+ { "id": "idle-hands-behind-back", "label": "Hands Behind Back", "prompt": "a person stands upright with both hands clasped behind the back, rocking gently", "category": "idle", "loop": true, "duration_seconds": 5, "icon": "🧍", "tags": ["stand", "formal"] },
+ { "id": "idle-phone-call", "label": "On A Phone Call", "prompt": "a person stands holding a phone to one ear, nodding and gesturing with the free hand", "category": "idle", "loop": true, "duration_seconds": 5, "icon": "📱", "tags": ["phone", "talk"] },
+ { "id": "idle-bored", "label": "Bored Waiting", "prompt": "a bored person stands and sighs, letting the shoulders drop and swaying slightly", "category": "idle", "loop": true, "duration_seconds": 5, "icon": "🧍", "tags": ["wait", "bored"] },
+ { "id": "idle-nervous", "label": "Nervous Fidget", "prompt": "a nervous person stands fidgeting, rubbing their hands together and shifting on their feet", "category": "idle", "loop": true, "duration_seconds": 5, "icon": "🧍", "tags": ["nervous", "fidget"] },
{ "id": "wave-hello", "label": "Wave Hello", "prompt": "a person raises their right hand and waves hello in a friendly greeting", "category": "emote", "loop": false, "duration_seconds": 4, "icon": "👋", "tags": ["wave", "greeting"] },
{ "id": "wave-big", "label": "Big Wave", "prompt": "a person waves enthusiastically with a raised arm swinging wide overhead", "category": "emote", "loop": false, "duration_seconds": 4, "icon": "👋", "tags": ["wave", "excited"] },
@@ -74,6 +83,12 @@
{ "id": "shush", "label": "Shush", "prompt": "a person raises one finger to their lips asking for quiet", "category": "emote", "loop": false, "duration_seconds": 3, "icon": "🤫", "tags": ["quiet"] },
{ "id": "check-watch", "label": "Check The Time", "prompt": "a person lifts their wrist to check a watch then lets the arm drop", "category": "emote", "loop": false, "duration_seconds": 3, "icon": "⌚", "tags": ["time"] },
{ "id": "think-chin", "label": "Thinking Pose", "prompt": "a person rests a hand on their chin and looks upward while thinking", "category": "emote", "loop": false, "duration_seconds": 4, "icon": "🤔", "tags": ["think"] },
+ { "id": "emote-peace-sign", "label": "Peace Sign", "prompt": "a person raises one hand beside the face and makes a peace sign", "category": "emote", "loop": false, "duration_seconds": 3, "icon": "✌️", "tags": ["peace", "gesture"] },
+ { "id": "emote-ok-sign", "label": "OK Sign", "prompt": "a person holds up one hand and makes an okay sign with a small nod", "category": "emote", "loop": false, "duration_seconds": 3, "icon": "👌", "tags": ["ok", "gesture"] },
+ { "id": "emote-wipe-brow", "label": "Wipe Brow", "prompt": "a person wipes the sweat from their brow with the back of a hand in relief", "category": "emote", "loop": false, "duration_seconds": 3, "icon": "😅", "tags": ["relief"] },
+ { "id": "emote-cover-ears", "label": "Cover Ears", "prompt": "a person covers both ears with their hands and winces", "category": "emote", "loop": false, "duration_seconds": 3, "icon": "🙉", "tags": ["loud", "ears"] },
+ { "id": "emote-rub-hands", "label": "Rub Hands Together", "prompt": "a person rubs their hands together eagerly in anticipation", "category": "emote", "loop": false, "duration_seconds": 3, "icon": "🤲", "tags": ["eager"] },
+ { "id": "emote-fist-pump", "label": "Fist Pump", "prompt": "a person pumps one fist in the air twice in excitement", "category": "emote", "loop": false, "duration_seconds": 3, "icon": "✊", "tags": ["excited", "cheer"] },
{ "id": "dance-hip-hop", "label": "Hip Hop Groove", "prompt": "a dancer performs a bouncing hip hop groove with sharp arm accents", "category": "dance", "loop": true, "duration_seconds": 5, "icon": "🕺", "tags": ["dance", "hip-hop"] },
{ "id": "dance-two-step", "label": "Two Step", "prompt": "a person does a relaxed two-step dance shifting side to side to a beat", "category": "dance", "loop": true, "duration_seconds": 5, "icon": "💃", "tags": ["dance", "casual"] },
@@ -87,6 +102,10 @@
{ "id": "dance-traditional-circle", "label": "Circle Step Dance", "prompt": "a dancer performs a rhythmic folk circle step with linked-arm posture", "category": "dance", "loop": true, "duration_seconds": 5, "icon": "💃", "tags": ["dance", "folk"] },
{ "id": "dance-moonwalk", "label": "Backslide", "prompt": "a dancer glides smoothly backwards while the feet appear to walk forward", "category": "dance", "loop": true, "duration_seconds": 5, "icon": "🕺", "tags": ["dance", "glide"] },
{ "id": "dance-celebration-spin", "label": "Celebration Spin", "prompt": "a person spins around once with arms out wide in joyful celebration", "category": "dance", "loop": false, "duration_seconds": 4, "icon": "🎊", "tags": ["dance", "celebrate"] },
+ { "id": "dance-sway", "label": "Slow Sway", "prompt": "a person sways slowly from side to side to a slow song with arms relaxed", "category": "dance", "loop": true, "duration_seconds": 5, "icon": "💃", "tags": ["sway", "slow"] },
+ { "id": "dance-disco-point", "label": "Disco Point", "prompt": "a dancer points up to the sky and then down across the body in a disco move", "category": "dance", "loop": true, "duration_seconds": 4, "icon": "🕺", "tags": ["disco", "retro"] },
+ { "id": "dance-clap-step", "label": "Clap And Step", "prompt": "a person steps side to side and claps on every beat", "category": "dance", "loop": true, "duration_seconds": 4, "icon": "👏", "tags": ["clap", "step"] },
+ { "id": "dance-shoulder-shimmy", "label": "Shoulder Shimmy", "prompt": "a person shimmies their shoulders quickly back and forth while standing", "category": "dance", "loop": true, "duration_seconds": 4, "icon": "💃", "tags": ["shimmy"] },
{ "id": "combat-jab-cross", "label": "Jab Cross", "prompt": "a boxer throws a fast jab followed by a straight cross and returns to guard", "category": "combat", "loop": false, "duration_seconds": 3, "icon": "🥊", "tags": ["punch", "boxing"] },
{ "id": "combat-hook", "label": "Left Hook", "prompt": "a boxer pivots and throws a powerful left hook, then recovers guard", "category": "combat", "loop": false, "duration_seconds": 3, "icon": "🥊", "tags": ["punch", "boxing"] },
@@ -102,6 +121,9 @@
{ "id": "combat-knockdown", "label": "Take A Hit", "prompt": "a person is struck, staggers backwards, and catches their balance", "category": "combat", "loop": false, "duration_seconds": 4, "icon": "💥", "tags": ["hit", "stagger"] },
{ "id": "combat-tai-chi", "label": "Tai Chi Sweep", "prompt": "a person performs a slow controlled tai chi sweep shifting weight between legs", "category": "combat", "loop": true, "duration_seconds": 6, "icon": "☯️", "tags": ["tai-chi", "slow"] },
{ "id": "combat-kata-open", "label": "Kata Opening", "prompt": "a karateka bows then moves through the opening sequence of a kata", "category": "combat", "loop": false, "duration_seconds": 6, "icon": "🥋", "tags": ["karate", "kata"] },
+ { "id": "combat-guard-shuffle", "label": "Guard Shuffle", "prompt": "a boxer shuffles forward and back in a tight guard stance", "category": "combat", "loop": true, "duration_seconds": 4, "icon": "🥊", "tags": ["boxing", "footwork"] },
+ { "id": "combat-punch-combo", "label": "Punch Combo", "prompt": "a fighter throws four quick alternating punches and returns to guard", "category": "combat", "loop": false, "duration_seconds": 4, "icon": "🥊", "tags": ["boxing", "combo"] },
+ { "id": "combat-shield-block", "label": "Shield Block", "prompt": "a warrior raises a shield arm in front of the body and braces against a hit", "category": "combat", "loop": false, "duration_seconds": 3, "icon": "🛡️", "tags": ["block", "shield"] },
{ "id": "sport-basketball-shot", "label": "Jump Shot", "prompt": "a basketball player rises into a jump shot and follows through with the wrist", "category": "sport", "loop": false, "duration_seconds": 4, "icon": "🏀", "tags": ["basketball", "shoot"] },
{ "id": "sport-basketball-dribble", "label": "Dribble", "prompt": "a basketball player dribbles the ball low and steadily in place", "category": "sport", "loop": true, "duration_seconds": 4, "icon": "🏀", "tags": ["basketball", "dribble"] },
@@ -115,6 +137,11 @@
{ "id": "sport-yoga-warrior", "label": "Warrior Pose", "prompt": "a person moves into a warrior yoga pose with arms extended and front knee bent", "category": "sport", "loop": false, "duration_seconds": 5, "icon": "🧘", "tags": ["yoga", "pose"] },
{ "id": "sport-swim-stroke", "label": "Freestyle Stroke", "prompt": "a swimmer performs alternating freestyle arm strokes while standing", "category": "sport", "loop": true, "duration_seconds": 4, "icon": "🏊", "tags": ["swim", "stroke"] },
{ "id": "sport-skate-push", "label": "Skateboard Push", "prompt": "a skateboarder pushes off the ground with the back foot and rolls", "category": "sport", "loop": true, "duration_seconds": 4, "icon": "🛹", "tags": ["skate", "push"] },
+ { "id": "sport-lunge", "label": "Forward Lunge", "prompt": "a person steps forward into a deep lunge and pushes back to standing", "category": "sport", "loop": false, "duration_seconds": 4, "icon": "🏋️", "tags": ["fitness", "lunge"] },
+ { "id": "sport-arm-circles", "label": "Arm Circles", "prompt": "a person stands with arms out to the sides making large circles", "category": "sport", "loop": true, "duration_seconds": 4, "icon": "🏋️", "tags": ["fitness", "warmup"] },
+ { "id": "sport-toe-touch", "label": "Toe Touch", "prompt": "a person bends forward at the waist to touch their toes and rolls back up", "category": "sport", "loop": false, "duration_seconds": 4, "icon": "🏋️", "tags": ["fitness", "stretch"] },
+ { "id": "sport-bowling", "label": "Bowling Roll", "prompt": "a bowler steps forward and swings the arm low to roll a ball", "category": "sport", "loop": false, "duration_seconds": 4, "icon": "🎳", "tags": ["bowling"] },
+ { "id": "sport-volleyball-set", "label": "Volleyball Set", "prompt": "a volleyball player raises both hands above the forehead and sets the ball upward", "category": "sport", "loop": false, "duration_seconds": 3, "icon": "🏐", "tags": ["volleyball"] },
{ "id": "interaction-handshake", "label": "Handshake", "prompt": "a person extends their right hand forward and shakes hands with someone", "category": "interaction", "loop": false, "duration_seconds": 4, "icon": "🤝", "tags": ["handshake", "greet"] },
{ "id": "interaction-high-five", "label": "High Five", "prompt": "a person raises a hand and delivers a high five", "category": "interaction", "loop": false, "duration_seconds": 3, "icon": "🙏", "tags": ["high-five"] },
@@ -131,6 +158,10 @@
{ "id": "interaction-point-present", "label": "Present Something", "prompt": "a person sweeps an open hand outward to present something beside them", "category": "interaction", "loop": false, "duration_seconds": 4, "icon": "🫱", "tags": ["present", "show"] },
{ "id": "interaction-throw", "label": "Overhand Throw", "prompt": "a person winds up and throws an object overhand, following through", "category": "interaction", "loop": false, "duration_seconds": 4, "icon": "🤾", "tags": ["throw"] },
{ "id": "interaction-catch", "label": "Catch", "prompt": "a person reaches up with both hands and catches something out of the air", "category": "interaction", "loop": false, "duration_seconds": 3, "icon": "🧤", "tags": ["catch"] },
+ { "id": "interaction-knock-door", "label": "Knock On Door", "prompt": "a person knocks on a door three times with a closed fist", "category": "interaction", "loop": false, "duration_seconds": 3, "icon": "🚪", "tags": ["door", "knock"] },
+ { "id": "interaction-open-box", "label": "Open A Box", "prompt": "a person lifts the lid of a box held at waist height and looks inside", "category": "interaction", "loop": false, "duration_seconds": 4, "icon": "📦", "tags": ["box", "open"] },
+ { "id": "interaction-write-board", "label": "Write On Board", "prompt": "a person writes on a whiteboard in front of them with the right hand", "category": "interaction", "loop": true, "duration_seconds": 5, "icon": "✍️", "tags": ["write", "board"] },
+ { "id": "interaction-sweep-floor", "label": "Sweep The Floor", "prompt": "a person sweeps the floor with a broom in steady strokes", "category": "interaction", "loop": true, "duration_seconds": 5, "icon": "🧹", "tags": ["chore", "sweep"] },
{ "id": "reaction-surprised", "label": "Surprised", "prompt": "a person recoils in surprise with hands raised and a sharp step back", "category": "reaction", "loop": false, "duration_seconds": 3, "icon": "😲", "tags": ["surprise"] },
{ "id": "reaction-scared", "label": "Frightened", "prompt": "a frightened person flinches and shields their face with both arms", "category": "reaction", "loop": false, "duration_seconds": 3, "icon": "😨", "tags": ["fear"] },
@@ -142,6 +173,11 @@
{ "id": "reaction-defeat", "label": "Defeat", "prompt": "a person drops to their knees in defeat with arms hanging down", "category": "reaction", "loop": false, "duration_seconds": 5, "icon": "😩", "tags": ["defeat"] },
{ "id": "reaction-sneeze", "label": "Sneeze", "prompt": "a person builds up and sneezes sharply into their elbow", "category": "reaction", "loop": false, "duration_seconds": 3, "icon": "🤧", "tags": ["sneeze"] },
{ "id": "reaction-dizzy", "label": "Dizzy Stagger", "prompt": "a dizzy person sways and staggers, trying to regain their balance", "category": "reaction", "loop": false, "duration_seconds": 5, "icon": "😵", "tags": ["dizzy"] },
+ { "id": "reaction-cough", "label": "Cough", "prompt": "a person coughs into their fist, hunching forward slightly", "category": "reaction", "loop": false, "duration_seconds": 3, "icon": "😷", "tags": ["cough"] },
+ { "id": "reaction-startled-jump", "label": "Startled Jump", "prompt": "a person jumps in fright, lifting both hands, then catches their breath", "category": "reaction", "loop": false, "duration_seconds": 3, "icon": "😱", "tags": ["startled", "fright"] },
+ { "id": "reaction-relief", "label": "Sigh Of Relief", "prompt": "a person lets out a big sigh of relief and relaxes the shoulders", "category": "reaction", "loop": false, "duration_seconds": 3, "icon": "😮‍💨", "tags": ["relief"] },
+ { "id": "reaction-disgust", "label": "Disgusted", "prompt": "a disgusted person turns their head away and waves a hand in front of the nose", "category": "reaction", "loop": false, "duration_seconds": 3, "icon": "🤢", "tags": ["disgust"] },
+ { "id": "reaction-hit-stomach", "label": "Hit To The Stomach", "prompt": "a person is hit in the stomach, doubles over, and straightens up", "category": "reaction", "loop": false, "duration_seconds": 4, "icon": "🤕", "tags": ["hit", "hurt"] },
{ "id": "traversal-jump-up", "label": "Vertical Jump", "prompt": "a person crouches and jumps straight up, landing softly on both feet", "category": "traversal", "loop": false, "duration_seconds": 3, "icon": "⬆️", "tags": ["jump"] },
{ "id": "traversal-jump-forward", "label": "Broad Jump", "prompt": "a person swings their arms and leaps forward, landing in a crouch", "category": "traversal", "loop": false, "duration_seconds": 3, "icon": "➡️", "tags": ["jump", "forward"] },
@@ -153,6 +189,9 @@
{ "id": "traversal-crawl", "label": "Crawl", "prompt": "a person crawls forward on hands and knees under a low ceiling", "category": "traversal", "loop": true, "duration_seconds": 5, "icon": "🐛", "tags": ["crawl"] },
{ "id": "traversal-slide", "label": "Baseball Slide", "prompt": "a person runs then drops into a feet-first slide along the ground", "category": "traversal", "loop": false, "duration_seconds": 4, "icon": "🛝", "tags": ["slide"] },
{ "id": "traversal-balance-beam", "label": "Balance Walk", "prompt": "a person walks a narrow beam with arms out wide for balance", "category": "traversal", "loop": true, "duration_seconds": 5, "icon": "🤹", "tags": ["balance"] },
+ { "id": "traversal-step-over", "label": "Step Over", "prompt": "a person lifts one leg high and steps over a low obstacle, then the other", "category": "traversal", "loop": false, "duration_seconds": 4, "icon": "🚧", "tags": ["step", "obstacle"] },
+ { "id": "traversal-duck-under", "label": "Duck Under", "prompt": "a person walks forward and ducks under a low beam, then stands back up", "category": "traversal", "loop": false, "duration_seconds": 4, "icon": "🙇", "tags": ["duck"] },
+ { "id": "traversal-hop-one-leg", "label": "Hop On One Leg", "prompt": "a person hops forward on one leg a few times keeping balance", "category": "traversal", "loop": false, "duration_seconds": 4, "icon": "🦩", "tags": ["hop", "balance"] },
{ "id": "expressive-conduct", "label": "Conducting", "prompt": "a conductor leads an orchestra with sweeping expressive baton motions", "category": "expressive", "loop": true, "duration_seconds": 5, "icon": "🎼", "tags": ["music", "conduct"] },
{ "id": "expressive-guitar", "label": "Air Guitar", "prompt": "a person plays an energetic air guitar solo with strumming and headbanging", "category": "expressive", "loop": true, "duration_seconds": 5, "icon": "🎸", "tags": ["music", "guitar"] },
@@ -163,6 +202,10 @@
{ "id": "expressive-teach", "label": "Explain And Point", "prompt": "a teacher points to a board beside them and gestures while explaining", "category": "expressive", "loop": true, "duration_seconds": 5, "icon": "📚", "tags": ["teach", "explain"] },
{ "id": "expressive-photo-pose", "label": "Pose For A Photo", "prompt": "a person strikes a confident pose for a photo and holds it", "category": "expressive", "loop": false, "duration_seconds": 4, "icon": "📸", "tags": ["pose", "photo"] },
{ "id": "expressive-meditate", "label": "Meditate", "prompt": "a person settles into a calm seated meditation with hands resting on the knees", "category": "expressive", "loop": true, "duration_seconds": 6, "icon": "🧘", "tags": ["meditate", "calm"] },
- { "id": "expressive-stretch-routine", "label": "Warm Up Routine", "prompt": "a person rolls their shoulders and swings their arms across the body to warm up", "category": "expressive", "loop": true, "duration_seconds": 5, "icon": "🤸", "tags": ["warmup", "stretch"] }
+ { "id": "expressive-stretch-routine", "label": "Warm Up Routine", "prompt": "a person rolls their shoulders and swings their arms across the body to warm up", "category": "expressive", "loop": true, "duration_seconds": 5, "icon": "🤸", "tags": ["warmup", "stretch"] },
+ { "id": "expressive-storytelling", "label": "Storytelling", "prompt": "a storyteller gestures widely with both hands while describing something big", "category": "expressive", "loop": true, "duration_seconds": 5, "icon": "🗣️", "tags": ["story", "gesture"] },
+ { "id": "expressive-piano", "label": "Air Piano", "prompt": "a person plays an invisible piano in front of them with both hands", "category": "expressive", "loop": true, "duration_seconds": 5, "icon": "🎹", "tags": ["music", "piano"] },
+ { "id": "expressive-counting", "label": "Counting On Fingers", "prompt": "a person counts off points on their fingers while explaining", "category": "expressive", "loop": false, "duration_seconds": 4, "icon": "🔢", "tags": ["count", "explain"] },
+ { "id": "expressive-bow-stage", "label": "Stage Bow", "prompt": "a performer spreads both arms wide and takes a deep theatrical bow", "category": "expressive", "loop": false, "duration_seconds": 4, "icon": "🎭", "tags": ["theatre", "bow"] }
]
}
diff --git a/scripts/gcp/seed-motion.mjs b/scripts/gcp/seed-motion.mjs
index f9b8de9bf..36a6c2636 100644
--- a/scripts/gcp/seed-motion.mjs
+++ b/scripts/gcp/seed-motion.mjs
@@ -18,7 +18,8 @@
* node scripts/gcp/seed-motion.mjs --limit=12 # smoke batch
* node scripts/gcp/seed-motion.mjs --categories=idle,emote
* node scripts/gcp/seed-motion.mjs --concurrency=4
- * node scripts/gcp/seed-motion.mjs --samples=4 # four takes per prompt
+ * node scripts/gcp/seed-motion.mjs --samples=4 # up to four takes per prompt
+ * node scripts/gcp/seed-motion.mjs --keep-per-prompt=2 # stop a prompt at two keepers
* node scripts/gcp/seed-motion.mjs --retry-rejects # re-roll past rejects
* node scripts/gcp/seed-motion.mjs --publish # upload + manifest
* node scripts/gcp/seed-motion.mjs --report # checkpoint stats only
@@ -56,6 +57,7 @@ import { gateMotionClip, explainMotionGate, MOTION_GATE_VERSION } from '../../ap
import {
assertSelfHostedLane,
closeLoopSeam,
+ despikeFootFlicks,
flattenRootDrift,
gateMotionClip as gateRestBasis,
lockRootToContacts,
@@ -93,6 +95,9 @@ const REPAIR = !!args.repair;
// how a 137-prompt library grows into several hundred clips while the gate
// keeps only the takes that hold up.
const SAMPLES = Math.max(1, Math.min(Number(args.samples) || 1, 12));
+// Stop drawing takes of a prompt once it has this many keepers. Past that the
+// library gains near-duplicates of one prompt instead of range across prompts.
+const KEEP_PER_PROMPT = Math.max(1, Number(args['keep-per-prompt']) || 3);
// Direct transport: call the text2motion worker through the platform's own GCP
// provider, with no public endpoint and so no per-IP rate limit in the way.
// Needs GCP_TEXT2MOTION_URL and GCP_RECONSTRUCTION_KEY (both on the three-ws-api
@@ -287,7 +292,14 @@ async function runPrompt(prompt) {
// not the library's canonical one (see rebaseToCanonicalRest). Converted
// first, because every later step, and every viewer, reads the clip in the
// library's basis. Played unconverted, the legs fold up over the body.
- const fetched = needsRebase(worker) ? rebaseToCanonicalRest(worker).clip : worker;
+ const rebased = needsRebase(worker) ? rebaseToCanonicalRest(worker).clip : worker;
+
+ // The lane's foot rotation flips to its other Kabsch solution for a frame or
+ // two at a time, flicking the toe 8 cm and back (see FOOT_FLICK). Repaired
+ // before anything measures contact, because every flick reads as a planted
+ // toe skating across the floor.
+ const flicks = despikeFootFlicks(rebased);
+ const fetched = flicks.clip;
// The lane's root channel is a constant forward ramp carrying no prompt
// signal (see ROOT_DRIFT in api/_lib/motion-seed.js), so it is removed first,
@@ -350,6 +362,7 @@ async function runPrompt(prompt) {
removed_m: Number(flattened.removed.toFixed(4)),
residual_m: Number(flattened.residual.toFixed(4)),
},
+ foot_flicks_repaired: flicks.repaired,
root_lock: {
applied: locked.applied,
contact_share: Number(locked.contactShare.toFixed(3)),
@@ -645,7 +658,13 @@ async function main() {
// partial run covers the whole library before it deepens any one prompt.
const takes = [];
for (let sample = 0; sample < SAMPLES; sample++) for (const p of prompts) takes.push({ ...p, sample });
- const queue = takes.filter((p) => shouldRun(state.prompts[sampleKey(p)])).slice(0, LIMIT);
+ const keepers = {};
+ for (const record of Object.values(state.prompts)) {
+ if (record.status === 'accepted') keepers[record.prompt_id] = (keepers[record.prompt_id] || 0) + 1;
+ }
+ const queue = takes
+ .filter((p) => (keepers[p.id] || 0) < KEEP_PER_PROMPT && shouldRun(state.prompts[sampleKey(p)]))
+ .slice(0, LIMIT);
log(`Seeding motion from ${PROMPTS_PATH.replace(`${ROOT}/`, '')}`);
log(` transport ${DIRECT ? 'direct (GCP provider, no public rate limit)' : ORIGIN}`);