SegFormer-B2 on Jetson AGX: improving FPS and reducing false traversable predictions

Hi everyone,

I’m working on an autonomous off-road navigation system using SegFormer-B2 trained on the Yamaha-CMU Off-Road (YCOR) dataset.

Current Setup:

  • Model: SegFormer-B2 (~57.4% validation mIoU)

  • Hardware: Jetson AGX + ZED 2i

  • Inference: TensorRT FP16, 512×512, 20–30 FPS

  • Target: 40–50 FPS, eventually 60+ FPS

  • Other models tested: Fast-SCNN and PIDNet-S (faster but less accurate)

Current Challenges:

  • Close-range obstacles sometimes get classified as traversable terrain.

  • Beams, walls, and pillars are occasionally misclassified as paths.

  • Random incorrect class patches appear on clear terrain.

  • Currently using RGB only, although stereo depth is available.

I’m looking for recommendations on improving segmentation reliability while reducing computational cost and inference latency.

I’d appreciate suggestions on efficient architectures, model optimization, training strategies, knowledge distillation, quantization, or RGB-depth fusion.

Any practical experience, benchmarks, papers, or open-source implementations would be helpful.

Thanks!

I’d try two separate changes and measure each against the current FP16 baseline. First, try INT8 quantization with a representative calibration set from your actual camera and terrain, using the workflow supported by your TensorRT version. Compare end-to-end latency as well as engine time, and check per-class accuracy and obstacle false-traversable errors. An INT8 engine isn’t guaranteed to reach 40–50 FPS or preserve accuracy.

For reliability, align the ZED depth to the left image and map it to the segmentation output. Use valid, confident depth points to estimate the ground plane and mark points sufficiently above it as obstacles, even when the RGB mask says traversable. Treat missing or unreliable depth as unknown rather than clear, and test thin pillars, close objects, slopes and uneven ground before choosing thresholds. This is a separate gate, so you can evaluate it without retraining the segmentation model.