# YOLOFuse
**Repository Path**: digitdance/YOLOFuse
## Basic Information
- **Project Name**: YOLOFuse
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: AGPL-3.0
- **Default Branch**: main
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 1
- **Created**: 2026-02-10
- **Last Updated**: 2026-02-10
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
δΈζ
# YOLOFuse: A Dual-Stream Fusion Framework for Multimodal Object Detection
**YOLOFuse** is an enhanced object detection system built upon the [Ultralytics YOLO](https://github.com/ultralytics/ultralytics) framework, designed specifically for multimodal perception tasks. The framework introduces a dual-stream processing architecture that enables the collaborative analysis and fusion of RGB and infrared (IR) images. This significantly improves detection robustness in challenging environments such as low light, smoke, or extreme weather. YOLOFuse is well-suited for applications like surveillance, disaster rescue, and industrial inspection.
---
## β¨ Key Features
* π **Heterogeneous Data Fusion**: Supports end-to-end processing of RGB and IR images (extendable to RGB-D, etc.)
* π§ **YOLOv8 API Compatible**: Maintains native interface design for minimal migration effort
* π **Modular Fusion Strategies**: Offers multi-level fusion options, including:
* β
Data-level Fusion
* β
Decision-level Fusion
* β
Early-level Feature Fusion
* β
Mid-level Feature Fusion
* β
Easy-level Feature Fusion
* β
DEYOLOοΌ[arxiv](https://arxiv.org/abs/2412.04931)οΌ
---
## π LLVIP Benchmark Results
| Model Architecture | Modality | Precision (P) | Recall (R) | mAP50 | mAP50-95 | Model Size (MB) | GFLOPs |
| ------------------------------ | -------- | ------------- | ---------- | ----- | -------- | --------------- | ------ |
| yolov8n (baseline) | RGB | 0.888 | 0.829 | 0.891 | 0.500 | 6.2 | 8.1 |
| yolo-fuse-mid-fusion | RGB+IR | 0.951 | 0.881 | 0.947 | 0.601 | 2.61 | 3.2 |
| yolo-fuse-early-fusion | RGB+IR | 0.950 | 0.896 | 0.955 | 0.623 | 5.2 | 6.7 |
| yolo-fuse-decision-level fusion| RGB+IR | 0.956 | 0.905 | 0.955 | 0.612 | 8.8 | 10.7 |
| YOLO-fuse-easy-fusion | RGB+IR | 0.899 | 0.865 | 0.939 | 0.620 | 7.83 | 8.5 |
| DEYOLO | RGB+IR | 0.943 | 0.895 | 0.952 | 0.615 | 11.85 | 16.6 |
---
## π§© Input Format Specification
The system automatically associates RGB and IR image pairs based on filename consistency. Please ensure matching filenames across modalities:
```
dataset_root/
βββ images/ # RGB images
β βββ 120270.jpg
βββ imagesIR/ # IR images (parallel directory)
βββ 120270.jpg # Same filename as RGB
```
> Annotation files are only required for RGB images. The system reuses them for IR modality.
---
## π Quick Start Guide
### 1οΈβ£ Environment Setup
```bash
git clone https://github.com/WangQvQ/YOLOFuse.git
cd YOLOFuse
pip install -e . # Install in editable mode
```
### 2οΈβ£ Model Training
```bash
python train_dual.py # Start dual-stream training
```
### 3οΈβ£ Inference
```bash
python infer_dual.py # Run inference with fusion
```
> Pretrained weights available: [Quark Cloud Drive](https://pan.quark.cn/s/5e8f1c94ae5d)
---
## π Dataset Structure
Follows standard YOLO format. Example directory layout:
```
datasets/
βββ images/
β βββ train/ # RGB training images
β βββ val/ # RGB validation images
βββ imagesIR/ # IR images (same level as images/)
β βββ train/
β βββ val/
βββ labels/ # Annotations (shared by both RGB & IR)
βββ train/
βββ val/
```
---
## β‘ AutoDL Cloud Deployment
[\[Open in AutoDL\]](https://www.codewithgpu.com/i/WangQvQ/YOLOFuse/YOLOFuse)
```bash
conda activate Ultralytics-RGB-IR
cd YOLOFuse
# Start training
python train_dual.py
# Run inference
python infer_dual.py
```
---
Back to Top β¬οΈ