TianWen is a modular, extensible
framework for combining object detection models with Vision-Language Models (VLMs) to improve
detection performance through configurable fusion strategies. It treats detectors and VLMs as
interchangeable building blocks: any registered detector — YOLOv8, YOLOv11, RT-DETR, RF-DETR,
or Grounding-DINO — can be paired with any registered VLM — Qwen2-VL or InternVL3 — under a
single training pipeline.
Three fusion strategies cover the practical design space: knowledge distillation
(VLM-as-teacher), feature fusion (VLM features injected into the detector's
backbone, neck, or head), and decision fusion (VLM verifies and refines detector
outputs). Configuration is fully hierarchical via Hydra, training runs on PyTorch Lightning
with multi-GPU support, and every component is registered through a plug-in registry so new
models or fusion modes drop in with a single decorator.