From May 2023 to October 2024 I was CTO of RGA, a robotics AI company, and owned the perception stack of its quadruped robot. The work on these pages has one constraint in common. A model that is accurate on a workstation is not finished. It is finished when it runs in real time on the computer the robot carries.

  • RoleCTO, robotics AI: perception models, their deployment, the roadmap and the evaluation metrics
  • PeriodMay 2023 to October 2024
  • StackPyTorch, RT-DETR, ONNX, TensorRT, DeepStream, Nvidia Jetson Orin
  • RecognitionFirst place, CVPR 2024 AIS Challenge on Depth Compression, Upsampling and Refinement. Third place, CVPR AIS 3rd Monocular Depth Estimation Challenge

The work at a glance

Diagram in two bands. Models, each with its own page: Detection, RT-DETR variants reaching 48.0 mAP at 17 million parameters and 23 billion FLOPs; Depth, super-resolution of noisy depth, first place at CVPR 2024 AIS; Face and emotion, RADIOv2 with SimCLR and ArcFace at 15 to 20 milliseconds per frame on Orin; Locomotion, from animal video through RAC and retargeting to imitation reinforcement learning. Path to the robot's computer, as the pages state it: a PyTorch model trained on a workstation GPU, ONNX as a hardware-agnostic export, quantization to INT8 or FP16, TensorRT as an engine built for the device, and DeepStream on Orin as a multi-camera video pipeline. Detection and Face and emotion feed the path. A note says the detection and face models are reported on Nvidia Orin through TensorRT and DeepStream, and the depth model on a desktop GPU at about 24 frames per second on an RTX 3090.
Figure 1. The four lines of work and the deployment path. The numbers are the ones each project's page reports.
Line of workWhat was builtWhat the page reports
Detectionlighter variants of RT-DETR through feature-map reuse and parameter reduction, converted to TensorRT and run in a DeepStream pipeline on Orin48.0 mAP with 17M parameters and 23B FLOPs, against the baseline’s 46.5 mAP, 20M and 60B. The smallest variant has 5.2M parameters and 6.4B FLOPs at 41.2 mAP
Depthsuper-resolution of low-resolution, noisy depth maps: two encoder paths fused at four stages, with a pixel loss and an edge lossfirst place in the 2024 CVPR AIS challenge. 29M parameters, about 24 frames per second on an RTX 3090
Face and emotiona foundation-model backbone with contrastive learning, a recognition head and an emotion head, with test-time adaptation, exported and optimised for Orin15 to 20 ms per frame at 224 by 224, batch size 1, on Orin, with multi-camera streaming through DeepStream
Locomotiona path from monocular animal video to a 3D animatable model, to retargeted motion, to a policy trained by imitation in simulationa study of the method, with its comparison against earlier reconstruction methods

From a trained model to the robot

The detection and tracking that ran on the robot were trained on data collected in the field, then taken through post-training quantization, ONNX conversion and a TensorRT FP16 engine inside a DeepStream pipeline on the Jetson. The face pipeline followed the same route: PyTorch to ONNX, precision reduced to INT8 or FP16, a TensorRT engine, and DeepStream for several cameras at once.

Each step exists because of the device.

  • ONNX separates the model from the framework it was trained in, so the engine builder sees a graph and not a Python program.
  • Reduced precision trades a small amount of accuracy for memory and speed that the Jetson does not have to spare.
  • TensorRT compiles the graph for the exact GPU on the device.
  • DeepStream runs decoding, batching, inference and tracking as one pipeline for several cameras.

The lighter detector variants exist for the same reason. Cutting FLOPs from 60B to 23B at higher accuracy, or to 6.4B at lower, is what gives a choice of operating point when the detector has to share the device with everything else the robot runs.

Leading the work

I set the roadmap and the sprint process, defined evaluation metrics for each project, and set up issue tracking and documentation integrated with the code repository. The technology from this period was consolidated into seven patent applications that I drafted. I also prepared the investor material and presented at seven venture capital meetings.

Reading order

  1. DetectionLighter RT-DETR variants, their accuracy, parameters and FLOPs, and deployment through TensorRT and DeepStream.
  2. DepthThe challenge-winning depth super-resolution network: problem, architecture, losses and training settings.
  3. Face and emotionRepresentation learning on a foundation model, test-time adaptation, and inference on Orin.
  4. LocomotionFrom animal video to a quadruped policy: reconstruction, retargeting, imitation learning, domain adaptation.
  5. Locomotion notesWorking notes on combining the two papers the locomotion study builds on.
  6. Mapping demoAn interactive companion built later: a quadruped's depth camera fills a voxel map of a house in the browser, using the depth degradation model from the Depth page.

Results in three lines

  • First place in the CVPR 2024 AIS Challenge on Depth Compression, Upsampling and Refinement, and third place in the CVPR AIS 3rd Monocular Depth Estimation Challenge.
  • A detector that beats its baseline’s accuracy with fewer parameters and less than half the FLOPs, and smaller variants for tighter budgets.
  • Face and emotion recognition at 15 to 20 ms per frame on the robot’s own computer.

What these pages are

The four project pages were written as notes during the work, and they keep that form. Parts of them summarise the papers the work builds on. Where a page reports a number, this overview repeats it. Where a page does not report one, such as the detector’s latency on the device, this overview does not supply it.