robot learning from phone video

phone2policy

I filmed my hand moving a bowl onto a plate sixteen times with my phone, turned those clips into robot demonstrations in simulation, and trained ACT and SmolVLA on them. Then I measured which parts of the video actually helped.

LIBEROLeRobotACTSmolVLAMediaPipe
clip01.mp4 + rollout.mp4
Left: my hand, with the marker frame and tracked fingertips. Right: SmolVLA trained only on demos made from my clips, on a layout it never saw.
why this exists

The short version

I built this for Humanoid's robot learning internship challenge. The brief was to record your own data with a phone and use it to drive a robot arm in simulation.

Robots are usually taught from recordings of a person driving the robot with a controller. None of that was used here. Every training example came from my phone videos.

findings.txt
  • 0 โ†’ 68 of 80Copying my hand's path straight into the robot's world failed every time. Copying it relative to the bowl and plate worked 68 times out of 80.
  • 56% โ†’ 92%The phone measures where my hand is on the table well, and its height badly. Ignoring its height readings took the robot from 56% to 92% success.
  • 79 of 100One AI model trained only on my clips did all ten bowl tasks, picking the right bowl from a written instruction.
  • about levelDemos made from my clips trained the robot about as well as the real robot demonstrations that come with the simulator.
the data

Sixteen clips, one pink bowl, an iPad for a marker

I pinch the bowl by its side rim with my thumb and index finger, so my hand already works like a two-finger gripper. An ArUco marker on the table gives real distances in centimetres. I don't own a printer, so the marker is an iPad lying on the table with the image open on screen. It worked fine.

Between clips I move the bowl a few centimetres and film again, handheld, looking down from about 55 cm.

~/clips (16 items)
Six of the sixteen clips. Coloured axes are the marker's frame, green dots are my fingertips, the box is where the code looks for my hand.
the pipeline

Copy the motion relative to the objects

A one-off calibration between my table and the robot's table is never right to the centimetre, and the bowl is never in the same place twice. Relative to the bowl, though, a reach is a reach wherever the bowl is.

So each clip is cut into reach, carry and retreat. The reach is stored relative to the bowl and the carry relative to the plate. In the simulator those pieces are put back onto wherever the bowl and plate are, replayed on random layouts, and only the replays that work are kept as training data.

terminal
$ python extract.py videos/*.mp4 --marker-cm 12.87 --rim-cm 8
# marker -> camera pose, MediaPipe -> fingertips, click bowl + plate
clip01: hand tracked 75% | grasp 6.6 cm from bowl centre ... | release 9.4 cm from plate centre

$ python retarget.py
# reach relative to the bowl, carry relative to the plate
retarget ok

$ python generate.py clips/*.npz --mode flat --tasks 0 1 2 3 4 5 6 7 8 9 --out data/multi_flat
# replay in LIBERO on random layouts, keep only successes
task 7: 31/32  pick up the black bowl on the stove and place it on the plate

$ lerobot-train --policy.path=lerobot/smolvla_base ...
$ lerobot-eval  --env.type=libero --policy.n_action_steps=25 ...
Success rate 79.0% (79/100 episodes, 95% Wilson interval 70.0% to 85.8%)
what a phone can measure

Good across the table, bad at height

From above, the marker pins my hand's position on the table to about a centimetre. Height is the camera's depth direction, and it only comes from how big my hand looks.

My grasp is 8 cm above the table. Across the sixteen clips the phone read it as anything from โˆ’7.5 cm, which is under the table, to 13.8 cm.

clip01_trajectory.png
Left: the extracted path of my fingertips seen from above, going from the bowl to the plate. Right: the measured height over time, which swings well above and below the true rim height.
One clip as the pipeline sees it. The route across the table is clean. The measured height swings by about 20 cm and reads below the true rim height at the moment of the grasp.
the experiment that mattered

What does the video actually add?

Three ways to move between the same grasp and release points, each used to train ACT on the same task. The last one uses no video at all, and it is the one that explained everything else.

Once the simulator knows where the bowl and plate are, straight lines beat my motion. Keeping my route across the table and only replacing the heights recovers 36 of the 44 points. So the video is good for what to do and the path across the table, and a poor source of height.

act_task0.chart

50 test episodes each. Whiskers are the 95% interval.

against real robot data

Phone demos vs teleoperated demos

Same ACT training on N of my phone-derived demos or N of LIBERO's own teleoperated demos for the same task.

exchange_rate.png
Success rate against number of demos. Phone demos with a fixed lift at 88 to 94 percent, teleoperated demos at 70 to 86 percent, phone demos with the video's heights between 28 and 64 percent.

I wouldn't read this as phone data beating teleoperation. My demos are made by a script, so they're all alike and easy to imitate, and the evaluation setting was tuned for them. It does show that with the height problem removed, sixteen clips match a small teleoperated set on this task.

act_success.csv
demosphone, video heightsphone, fixed liftteleoperated
1062%88%84%
2528%94%86%
4546%94%70%
one model, ten tasks

The same clips in all ten scenes

Every task in LIBERO-Spatial is "pick up the black bowl somewhere and place it on the plate": on the stove, in a drawer, on a cookie box. My clips were filmed for one layout. I replayed each of them in all ten scenes and trained one SmolVLA on whatever succeeded. The only thing telling it which bowl to pick up is the task sentence.

smolvla_10_tasks.mp4
One rollout per task from the same model: 79 of 100 test episodes succeed. The drawer task (4) never works with a fixed 10 cm lift, because that doesn't fit inside a drawer.

Why two models

ACT is small (52M parameters) and trains in about 45 minutes on my RTX 3050, so it ran every controlled comparison, about fifteen training runs. It learns one task from scratch, so when a number moves, the data moved it. SmolVLA is a pretrained vision-language-action model (450M parameters, 100M trained here) that reads the instruction, which is what makes one model for ten tasks possible. At five to six hours a run, it got the runs that mattered. Both agree: fixing the heights took ACT from 56% to 92% and SmolVLA from 63 to 79 out of 100.

things i got wrong

Two conclusions that didn't survive a closer look

! wrong

"More clips make ACT worse"

With ACT's defaults, one clip gave 52% and sixteen gave 14%, and four times the demos didn't help. I read that as variety confusing the policy. It wasn't: ACT predicts 100 actions and runs all of them before looking at the camera again. One clip means one motion to play back blind; sixteen means sixteen slightly different ones.

+ fix

Re-plan every 25 steps

Same checkpoint, only that setting changed: sixteen clips go from 14% to 56%, one clip from 52% to 66%. I picked 25 on fifty separate random layouts so the test layouts weren't used for tuning.

same_layout.mp4
The sixteen-clip ACT on one starting layout. Left: its default. Right: re-planning every 25 steps.
! wrong

"Three tasks can't be done from my clips"

Replays on the stove, drawer and cabinet tasks all failed, 0 out of 32. I assumed my motion just didn't transfer. Then I watched one: the bowl fell off the stove before the robot moved.

+ fix

Use the normal reset

A faster simulator reset I'd switched on to save time puts objects that start on furniture in the wrong place. With the normal reset the stove task replays 32 out of 32. Watch the video before believing a zero.

stove_task.mp4
The same clip on the stove task. Left: the fast reset. Right: the normal one.
next steps

Taking it further

I built this with one phone held in my hand, a desk at home and an 8 GB GPU. No mount, no depth camera, no robot. Most of the limits above come from that setup, so most of the next steps are about what changes once you have proper equipment and more compute.

run it

Try it yourself

The sixteen extracted clips are in the repo, so every result can be reproduced without my videos. Full instructions, every results table and the filming guide are in the README.

setup.sh
conda create -n h2l python=3.12 && conda activate h2l
pip install "lerobot[libero]" mediapipe

python retarget.py                # self-check
python generate.py --synthetic 3  # check the simulator side
./run_all.sh                      # main experiments, ~11 h on an RTX 3050
related work