XPENG RoboticsCompany & role details

Indoor Semantic Segmentation

Custom indoor segmentation with DDRNet and SegFormer, including glass, mirrors, doors, furniture, and structural surfaces for robotic scene understanding.

Illustration comparing an indoor RGB scene with colored semantic labels for walls, floors, glass, mirrors, furniture, and other objects using DDRNet and SegFormer.
Project summary illustration.

Tools & Skills

  • Semantic Segmentation
  • DDRNet
  • SegFormer
  • CNN
  • Transformer
  • Hard-Example Mining
  • Model Evaluation

Problem and contribution

Indoor robotic perception needs to distinguish structural surfaces, furniture, and difficult materials such as glass and mirrors. Depth alone can be unreliable on transparent or reflective surfaces, so semantic labels provide another useful signal about the scene.

I compared DDRNet and SegFormer, trained segmentation models on custom indoor annotations, and selected DDRNet for the project. The work included dataset preparation, class mappings, training configurations, and visual inspection of predicted masks.

Dataset and label design

The dataset loaders pair RGB images with pixel-level label maps and convert annotation IDs into the classes used for training. Different dataset versions support compact label groupings and a broader 27-label vocabulary, including unknown and background.

The broader vocabulary distinguishes walls, cabinets and open cabinet doors, stairs, glass, mirrors, overexposed glass, ceilings, floors, furniture, appliances, and small fixtures. Keeping the class mapping explicit lets experiments merge related categories without changing the original annotations. An ignore label handles pixels excluded from supervision.

Model comparison and training

Configuration Architecture Purpose
DDRNet-23slim CNN with interacting high- and low-resolution branches Balance boundary detail with scene context
SegFormer MiT-B0 Hierarchical transformer encoder and segmentation head Compare a transformer-based representation on the same indoor task

The custom configurations use 512 × 512 training crops, pretrained backbones, AdamW, and a polynomial learning-rate schedule with warmup. Online hard-example mining focuses the segmentation loss on difficult pixels. Matching dataset configurations make the architectural comparison more meaningful than comparing unrelated pretrained demonstrations.

Evaluation and inference tooling support per-class segmentation assessment, colorized masks, and overlays on the original images. These outputs help inspect glass boundaries, open doors, class confusion, and annotation inconsistencies.

Role in robotic perception

The project produced semantic image predictions for indoor scene understanding and the broader workflow of transferring semantic labels onto 3D observations. Glass and mirror labels flag regions that deserve special handling when interpreting depth; they do not recover missing geometry by themselves.

The implementation details here describe the segmentation models and data workflow. Hardware-specific speed and accuracy figures are omitted because no comparable measurement set is available for this review.

Project diagram

100%Drag or scroll to explore

Project image

Click outside the image or press Escape to close.