Skip to main content
Xiaomi Robotics U1 generates RGB images of a robot’s workspace. You can specify the arm pose to generate a scene, or give the model camera images and edit them together. Each output view is a separate image.

Choose a task

For scene_gen, select an AgiBot G1, AgiBot G2, ARX Robot or AgileX Aloha with --arm-type. Pass your state in --proprio-json or use --seed to select a repeatable pose from the model’s defaults.

Edit three camera views

Set up the PhyAI CUDA environment and point the example at local copies of both checkpoints. PhyAI setup · U1 ScanAR checkpoint · Emu3.5 vision tokenizer The BF16 weights occupy about 64 GiB. The default --capacity of 32,768 slots per branch adds 16 GiB for the two KV caches. Leave room for model activations and the attention workspace. To reduce cache memory, choose a smaller capacity that fits the longer prompt plus the complete output, including headers and row delimiters for every view. Run this command from the repository root. It uses the three AgiBot G1 camera images included with the example.
Three camera views before and after the moonlight edit. Across each row are the head, left-wrist and right-wrist views. The top row shows the inputs. The bottom row shows view_0.png, view_1.png and view_2.png from the output directory. For this edit, PhyAI and Xiaomi’s Transformers generator both produced three 592 × 448 images with seed 0. The cosine similarities of the flattened RGB pixels were 0.9977 (head), 0.9983 (left wrist) and 0.9975 (right wrist). The example directory contains commands and outputs for all four tasks. PhyAI U1 examples

How ScanAR generates a view

The model writes the first row of visual tokens one token at a time. It then reads that row again with attention across all columns. Each column predicts the token directly beneath it, so all tokens in the second row can be sampled together. Subsequent rows use the same column-wise readout. The row delimiter and end-of-image token stay outside the visual codebook. Xiaomi Robotics U1 inference guide PhyAI applies classifier-free guidance to visual logits. The unconditional branch keeps the source images and their token positions while dropping the instruction. The default guidance scale is 3.0, temperature is 0.7 and top-k is 5120. If you set --max-new-tokens, the scheduler checks that limit between complete image blocks and between text tokens. A view already in progress runs to its end.