Back to Trending
Modelrobotics
openbmb

openbmb/MiniCPM-RobotTrack

MiniCPM-RobotTrack A Compact Vision-Language-Action Policy for Embodied target Tracking Github  | X  | Discord  | MiniCPM-RobotTrack is a compact vision-language-action model built on MiniCPM4-0.5B for target tracking with the followi...

143likes
254downloads
4views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: visual-tracking

#1 Repository of the week

1
TINIX TRENDING·Topic: minicpm_robottrack

#1 Repository of the week

5
TINIX TRENDING·Topic: minicpm

#5 Repository of the week

MiniCPM-RobotTrack

A Compact Vision-Language-Action Policy for Embodied target Tracking

github Github  | X X  | Discord Discord  |

MiniCPM-RobotTrack is a compact vision-language-action model built on MiniCPM4-0.5B for target tracking with the following highlights:

  • Language-conditioned target tracking: The model combines natural-language instructions with fused DINOv3 and SigLIP visual features, then directly predicts eight future [x, y, yaw] waypoints for embodied person following.
  • Quality-driven Self-evolving Data: Automated checks and manual review remove abnormal trajectories, incorrect actions, and invalid interactions. DAgger-style model-environment interaction continually adds difficult samples involving target crossings, rapid turns, short occlusions, and multi-person intersections.
  • Efficient On-device Inference: Joint optimization of visual capture, input encoding, model inference, action generation, command transmission, and execution delivers a stable 5+ FPS with approximately 180 ms end-to-end latency on the Unitree Go2's native onboard compute.
Outdoor obstacle-aware person-tracking demo Elevator person-tracking demo Underground parking person-tracking demo
Outdoor Obstacle-aware TrackingElevator TrackingUnderground Parking Tracking

Benchmark Results

MiniCPM-RobotTrack benchmark results

Inference Example

Please ensure transformers>=4.56,<5.

from __future__ import annotations

from pathlib import Path

import torch
from transformers import AutoModel, AutoTokenizer


VISION_FEATURE_DIM = 1536
HISTORY_FRAMES = 31
COARSE_TOKENS_PER_FRAME = 4
FINE_TOKENS_CURRENT_FRAME = 64


class MiniCPMRobotTrackInference:
    """Tokenizer and model wrapper for MiniCPM-RobotTrack inference."""

    def __init__(
        self,
        checkpoint_path: str | Path = "openbmb/MiniCPM-RobotTrack",
        device: str | torch.device | None = None,
    ):
        if device is None:
            device = "cuda" if torch.cuda.is_available() else "cpu"
        self.device = torch.device(device)
        checkpoint = str(checkpoint_path)

        self.tokenizer = AutoTokenizer.from_pretrained(checkpoint)
        if self.tokenizer.pad_token_id is None:
            self.tokenizer.pad_token = self.tokenizer.eos_token

        self.model = AutoModel.from_pretrained(
            checkpoint,
            trust_remote_code=True,
        )
        self.model.to(self.device).eval()

    @staticmethod
    def _prepare_visual_tokens(
        tokens: torch.Tensor,
        time_indices: torch.Tensor,
        name: str,
    ) -> tuple[torch.Tensor, torch.Tensor]:
        tokens = torch.as_tensor(tokens, dtype=torch.float32)
        time_indices = torch.as_tensor(time_indices, dtype=torch.long)

        if tokens.ndim == 2:
            tokens = tokens.unsqueeze(0)
        if time_indices.ndim == 1:
            time_indices = time_indices.unsqueeze(0)
        if tokens.ndim != 3 or tokens.shape[-1] != VISION_FEATURE_DIM:
            raise ValueError(
                f"{name}_tokens must have shape [B, N, {VISION_FEATURE_DIM}]"
            )
        if time_indices.shape != tokens.shape[:2]:
            raise ValueError(
                f"{name}_time_indices must match the first two dimensions of "
                f"{name}_tokens"
            )
        return tokens, time_indices

    @torch.inference_mode()
    def predict(
        self,
        instruction: str,
        coarse_tokens: torch.Tensor,
        coarse_time_indices: torch.Tensor,
        fine_tokens: torch.Tensor,
        fine_time_indices: torch.Tensor,
    ) -> torch.Tensor:
        """Return eight ``[x, y, yaw]`` waypoints for each batch item."""
        coarse_tokens, coarse_time_indices = self._prepare_visual_tokens(
            coarse_tokens,
            coarse_time_indices,
            "coarse",
        )
        fine_tokens, fine_time_indices = self._prepare_visual_tokens(
            fine_tokens,
            fine_time_indices,
            "fine",
        )

        batch_size = coarse_tokens.shape[0]
        if fine_tokens.shape[0] != batch_size:
            raise ValueError("coarse and fine feature batch sizes must match")

        text = self.tokenizer(
            [instruction] * batch_size,
            return_tensors="pt",
            padding=True,
            truncation=True,
            max_length=self.model.config.max_text_tokens,
        )
        outputs = self.model(
            input_ids=text.input_ids.to(self.device),
            attention_mask=text.attention_mask.to(self.device),
            coarse_tokens=coarse_tokens.to(self.device),
            coarse_time_indices=coarse_time_indices.to(self.device),
            fine_tokens=fine_tokens.to(self.device),
            fine_time_indices=fine_time_indices.to(self.device),
        )
        return outputs.trajectories.float().cpu()


if __name__ == "__main__":
    infer_runner = MiniCPMRobotTrackInference()

    # Replace these placeholders with fused DINOv3 + SigLIP features produced
    # by the project preprocessing pipeline.
    coarse_tokens = torch.zeros(
        HISTORY_FRAMES * COARSE_TOKENS_PER_FRAME,
        VISION_FEATURE_DIM,
    )
    coarse_time_indices = torch.arange(HISTORY_FRAMES).repeat_interleave(
        COARSE_TOKENS_PER_FRAME
    )
    fine_tokens = torch.zeros(
        FINE_TOKENS_CURRENT_FRAME,
        VISION_FEATURE_DIM,
    )
    fine_time_indices = torch.full(
        (FINE_TOKENS_CURRENT_FRAME,),
        HISTORY_FRAMES,
        dtype=torch.long,
    )

    trajectory = infer_runner.predict(
        instruction="Follow the person in the red shirt.",
        coarse_tokens=coarse_tokens,
        coarse_time_indices=coarse_time_indices,
        fine_tokens=fine_tokens,
        fine_time_indices=fine_time_indices,
    )
    print(trajectory)  # [1, 8, 3]

Acknowledgement

This project builds on and references MiniCPM, DINOv3, SigLIP, Habitat-Lab, Habitat-Sim, EVT-Bench, and TrackVLA. We thank the authors for their open-source contributions.

License

Model weights and code are open-sourced under the Apache-2.0 license.

Similar Projects

Discover other similar projects and AI models.

Modelsentence-similarity
sentence-transformers/all-MiniLM-L6-v2

all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...

♥0
157.6M
Jun 1, 2026
Modelimage-text-to-text
moonshotai/Kimi-K3

📰&nbsp;&nbsp;Tech Blog | &nbsp;&nbsp;&nbsp; 📄&nbsp;&nbsp;Full Report 1. Model Introduction Kimi K3 is an open-weight, native multimodal agentic model and our most capable model to date. It is a 2.8T-parameter model built on Kimi Delta Attention (K...

♥0
498.3k
Sep 2, 2026
Modelfeature-extraction
BAAI/bge-small-en-v1.5

FlagEmbedding Model List | FAQ | Usage | Evaluation | Train | Contact | Citation | License More details please refer to our Github: FlagEmbedding(https://github.com/FlagOpen/FlagEmbedding). If you are looking for a model that supports more languages,...

♥0
41.9M
Feb 22, 2024
Modelsentence-similarity
sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2

sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic se...

♥0
24.4M
Jan 28, 2026
Modelimage-text-to-text
baidu/Unlimited-OCR

Unlimited OCR Works Welcome the Era of One-shot Long-horizon Parsing. Release - 2026/06/23 📄 Our paper is now available on arXiv(https://arxiv.org/abs/2606.23050). - 2026/06/23 🤝 Thanks to the ModelScope community for their support. Our model is n...

♥0
5.1M
Oct 14, 2026
Modeltext-ranking
cross-encoder/ms-marco-MiniLM-L6-v2

Cross-Encoder for MS Marco This model was trained on the MS Marco Passage Ranking(https://github.com/microsoft/MSMARCO-Passage-Ranking) task. The model can be used for Information Retrieval: Given a query, encode the query will all possible passages...

♥0
52.2M
Aug 9, 2026
Modelimage-text-to-text
Qwen/Qwen3.8-27B

Qwen3.8-27B !Note This repository contains model weights and configuration files for the post-trained model in the Hugging Face Transformers format. These artifacts are compatible with Hugging Face Transformers, vLLM, SGLang, TokenSpeed, etc. !Tip F...

♥0
4.8M
Nov 7, 2026
Modelfill-mask
google-bert/bert-base-uncased

BERT base model (uncased) Pretrained model on English language using a masked language modeling (MLM) objective. It was introduced in this paper(https://arxiv.org/abs/1810.04805) and first released in this repository(https://github.com/google-resear...

♥0
32.4M
Feb 19, 2024
Modelmask-generation
facebook/sam3

SAM 3 is a unified foundation model for promptable segmentation in images and videos. It can detect, segment, and track objects using text or visual prompts such as points, boxes, and masks. Compared to its predecessor SAM 2(https://github.com/facebo...

♥0
1.6M
Nov 20, 2025