InstaUMI guide

Set up, capture, and process X3 and X5 recordings.

Set up InstaDataCap

Start with Ubuntu 24.04. The same InstaDataCap interface supports the X5 wireless and X3 wired workflows.

Open the capture interface

Clone InstaUMI and run this from the repository root. The dry run writes a simulated session so you can practice recording and marking episodes.

python3 -m datacap.webapp --dry-run --host 127.0.0.1 --port 8788

Open http://127.0.0.1:8788/ on the capture computer.

Set up X5 cameras and VIVE trackers
sudo apt install bluez python3-dbus python3-gi python3-venv \
  libhidapi-hidraw0 libhidapi-libusb0 ffmpeg
python3 -m venv datacap/.venv
source datacap/.venv/bin/activate
bash datacap/tools/install_hardware_access.sh
cp datacap/config.example.json datacap/config.json

Set the capture directory, camera roles and tracker roles in datacap/config.json. For real tracker capture, follow the DataCap README to install a compatible tracker backend and set up device roles. Use Bluetooth Control for X5. Set insta.name_prefixes to ["X5 "] or enter your own camera BLE addresses. For X3, follow the wired setup.

python3 -m datacap.webapp --config datacap/config.json --host 127.0.0.1
View the InstaDataCap interface
InstaDataCap during a simulated dual-arm session, with capture controls and tracker status
Interface reference · Simulated devices

Collect a session

Cloth folding · Episode 150

Latest complete capture · 17 Aug 2026
Final demonstration · 10.74 s

Episode markers · final 90 seconds

  1. Check device roles. Choose Dual arm · 2 Trackers or Single arm · Right side, set the task and destination, connect the cameras, and verify live tracker poses on the correct sides.
  2. Start capture and record a sync motion. For X5 with HTC, rotate each rigid camera–tracker assembly on several axes for 5–10 seconds with irregular motion. Repeat every 10–15 minutes and before ending capture.
  3. Mark episodes. Use Start episode and End episode for each demonstration. Finish with End capture to close out the session.
  4. Bring the original X5 media into the session. Keep all INSV chapters and sidecars with the correct camera role. Keep the transfer manifest, tracker CSVs and timestamp log with the session.
Bimanual X5 session layout
capture/
├── manifest.json
├── timestamp_log.jsonl
├── htc_left.csv
├── htc_right.csv
└── insta/
    ├── transfer_manifest.json
    ├── insta_left/
    └── insta_right/

Post-process and validate

Bimanual X5 + VIVE · Cloth-folding benchmark

Source video
11.88 GB
Left 9 min 22.09 s · Right 9 min 22.04 s
Two 1920 × 1920 H.264 fisheye streams per INSV at 59.94 fps.
Marked recording · 5 min 32 s
LeRobot output
4.93 GB
25 episodes · 9,944 frames at 30 Hz
v2.1 Parquet · six 224 × 224 PNG-encoded RGB views per frame
20-D state and action vectors
Wall time
25 min 28.76 s
CPU time
101.4 core·min
Peak RAM
3.65 GiB
Peak VRAM
2.98 GiB

Intel i7-14700K · RTX 4080 SUPER · HDD. Stages 01–05 timed on a fresh run.

CPU time sums all cores. Process RAM and VRAM peaks were sampled about every 2 s. Peak GPU utilization was 90%.

01 · Extract and align

Measured camera clock offsets across the sample. Fit residual p95 is 0.25 ms on the left and 0.29 ms on the right.

Align the wrist cameras and VIVE trackers by matching angular motion.

Input
Two INSV files, VIVE pose CSVs and timestamp_log.jsonl.
Output
Two calibrated timestamp CSVs and calibration.json.
Time
43.29 s

03 · Measure gripper opening

13.10 s · Calibrated opening for both wrists. Dashed segments hold the last estimate. Calibration tops out at 85 mm.

Convert the distance between ArUco tags to gripper opening in metres.

Input
INSV wrist frames, aligned timestamps, episode markers and a gripper calibration curve.
Output
One gripper_width.csv per wrist.
Time
9 min 55.27 s for the full benchmark.

05 · Export wrist views

Optical-flow stitching

Parallel CUDA stitching, H.265 encoding and verification for two 9 min 22 s videos.

Included in the six-view export.

Export native fisheye videos or synchronized LeRobot episodes.

Input
X5 INSV files for both wrists.
LeRobot
Also uses VIVE pose and gripper-width CSVs, aligned timestamps and episode markers.

Validate export

Accepted all 9,944 frames in 2.48 s. Some VIVE sampling gaps exceeded the soft threshold.

Install and run the LeRobot pipeline

Run from the repository root on Ubuntu. Use FFmpeg and PyAV with v360, and Insta360 MediaSDK with a compatible NVIDIA driver. Gripper calibration instructions

python3 -m venv .venv-processing
source .venv-processing/bin/activate
python -m pip install -r dataprocess/requirements.txt
export PYTHON="$(command -v python)"
MEDIASDK_ROOT=/path/to/MediaSDK \
  bash dataprocess/_01_raw_extrect/insta360_pano_export/scripts/build_ubuntu.sh
bash dataprocess/run_bimanual_htc.sh \
  /absolute/path/to/capture 'Task description'

Panoramic SLAM

Stella VSLAM tracks ORB features in each X5 wrist camera’s 360° equirectangular video. Algorithm documentation

Input per wrist
HEVC MP4 · 2048 × 1024 · 59.94 fps · 3,600 frames
SLAM wall time
Left Right
Intel Core i7-14700K · separate runs

SLAM vs HTC end-effector replay

13.10 s · Both wrist panoramas. The default view looks forward from the operator’s side.

TUM trajectories .txt
Position and quaternion · left 3,543 poses, 22 keyframes · right 3,540 poses, 17 keyframes
MessagePack maps .msgpack
Sparse 3D landmarks · left 1,911 · right 1,673

Timing covers MP4 decoding, tracking, mapping and file output. Stitching and metric scale calibration are separate steps.

World coordinates and end-effector conversion

SLAM estimates the X5 camera’s optical centre from video. HTC VIVE records the tracker pose. A calibrated wrist mount and the Stage 05 VIVE-to-Flexiv conversion let both paths describe the same end-effector point.

Solid paths show SLAM estimates and dashed paths show HTC references. The readout gives their 3D position difference in millimetres. Height lines extend to the ground grid, which uses 10 cm cells in the VIVE world. Red, green and blue show the local +X, +Y and +Z axes of the SLAM-derived pose.

Against HTC poses from this held-out episode, position RMSE was 3.8 mm per wrist. Orientation RMSE was 0.22° left and 0.35° right across 390 and 392 valid poses respectively.

Run Stella VSLAM on a panorama

Use a Stella runner with FFmpeg pipe support and match the equirectangular camera config to each video’s size and frame rate. The runs used all 3,600 frames per wrist and an 8,000-keypoint limit. CPU time and peak RSS were 4.85 core·min and 0.54 GiB on the left, and 5.00 core·min and 0.48 GiB on the right. The pose counts exclude the record emitted after each video’s last frame. Stella VSLAM setup

mkdir -p stella_eval
STELLA_FFMPEG_PIPE=1 /usr/bin/time -v run_video_slam \
  -v orb_vocab.fbow -c camera.yaml -m panorama.mp4 \
  --viewer none --no-sleep --auto-term --wait-loop-ba \
  --frame-skip 1 --start-timestamp 0 \
  --eval-log-dir stella_eval --map-db-out stella-map.msgpack

X3 wired workflow

Use USB Webcam mode to record 1920 × 1080 dual-fisheye MJPEG at 30 Hz directly to the Ubuntu computer.

Connect each X3

Run the commands from the repository root. Set each camera to USB Webcam mode. Assign a distinct video-index0 device path to each camera role in the config.

sudo apt install g++ pkg-config libavcodec-dev libavutil-dev libswscale-dev
bash datacap/camera_usb/build_worker.sh
cp datacap/config.usb_webcam.example.json datacap/config.usb_webcam.json
ls -l /dev/v4l/by-path/*video-index0
python3 -m datacap.webapp --config datacap/config.usb_webcam.json
Preview, record, and mark episodes

Choose Wired USB and start the preview. Check the camera and tracker roles. Start capture, mark the start and end of each episode, then end capture.

Keep the capture folder together. It contains uvc_capture_complete.json, event and tracker logs, and per-camera video.mjpeg and frames.jsonl files.

Validate and remux a capture

Run Stage 01 from the repository root. It checks the packet index, camera roles, and shared host timestamps, then writes 30 Hz MP4 and timing reports under capture/tmp/.

INPUT_DIR=/absolute/path/to/usb-capture \
  bash dataprocess/_01_raw_extrect/run_01_raw_extract_biarm.sh

The documented X3 path ends at Stage 01. It writes native_flat_master.mp4 with the original stacked lenses.

Inference views and latency

All four previews use the same left-wrist X5 frame from the cloth-folding training set. Latency was measured separately with one X5.

Camera output previews Latency

X5 USB Webcam · Flat

Forward rectilinear projection of the single-camera X5 training frame
Forward 16:9 projection · 1920 × 1080

Frame request → decoded image

19.5 ms Median34.7 ms P95

Includes waiting for the next frame and decoding MJPEG at full resolution.

16 Nov 2026 · 200 requests · 30 fps

X5 USB Webcam · Panorama

Equirectangular training panorama resampled to the 2880 by 1440 Webcam output size
360° training panorama resampled to 2880 × 1440

Frame request → decoded image

22.8 ms Median44.5 ms P95

Includes waiting for the next frame and decoding MJPEG at full resolution.

16 Nov 2026 · 200 requests

X5 USB Android · Direct dual-fisheye export

Front and rear fisheye lenses from the same X5 training frame, shown side by side
Front (left) and rear (right) · 1920 × 1920 per lens

Latency · median / P95

Camera timestamp → fisheye pair ready
181 / 195 ms
Host H.264 packet → fisheye pair ready
4.4 / 8.0 ms

17 Nov 2026 · 687 pairs · NVDEC with host readback

X5 USB Android · Dual fisheye + optical-flow stitch

The same X5 training frame stitched into an equirectangular panorama with optical flow
360° optical-flow stitch · 2048 × 1024

Latency · median / P95

Camera timestamp → panorama ready
278 / 293 ms
Host H.264 packet → panorama ready
103 / 140 ms

17 Nov 2026 · 690 panoramas · MediaSDK OPTFLOW

X5 USB Android benchmarks used one X5 streaming 3840 × 1920 H.264 at 29.97 fps to an RTX 4080 SUPER.

Can X5 Webcam stabilization be turned off?

Webcam overrides in-camera shooting settings. X5 stitches and stabilizes the 2880 × 1440 panorama in-camera. Both cameras accepted FlowState Off via CameraSDK. Persistence after switching back to Webcam is unverified. X5 Webcam manual

The August X5 test captured two stacked lenses at 1920 × 1080 and preserved camera roll. Per-lens stabilization remains unverified. The November flat-mode test captured a single 16:9 view at the same resolution. X3 Webcam has no FlowState. Insta360 stabilization FAQ

X5 dataset export matrix

Two wrists × front and rear 180° views, exported from INSV. Rear faces are masked.

See all three X5 exports
Real 2 by 2 X5 dataset frame with the left and right wrists in rows and front and rear fisheyes in columns