MCPcopy Index your code
hub / github.com/JinyuanLiu-CV/TarDAL

github.com/JinyuanLiu-CV/TarDAL @v1.0.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0.0 ↗ · + Follow
32 symbols 132 edges 13 files 10 documented · 31%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

TarDAL

Open In Colab visitors

Jinyuan Liu, Xin Fan, Zhangbo Huang, Guanyao Wu, Risheng Liu , Wei Zhong, Zhongxuan Luo,“Target-aware Dual Adversarial Learning and a Multi-scenario Multi-Modality Benchmark to Fuse Infrared and Visible for Object Detection”, IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2022. (Oral)*

- [ArXiv]

Abstract


M3FD Dataset

Preview

The preview of our dataset is as follows.


preview gif1


Details

  • Sensor: A synchronized system containing one binocular optical camera and one binocular infrared sensor. More details are available in the paper.

  • Main scene:

  • Campus of Dalian University of Technology.
  • State Tourism Holiday Resort at the Golden Stone Beach in Dalian, China.
  • Main roads in Jinzhou District, Dalian, China.

  • Total number of images:

  • 8400 (for fusion, detection and fused-based detection)
  • 600 (independent scene for fusion)

  • Total number of image pairs:

  • 4200 (for fusion, detection and fused-based detection)
  • 300 (independent scene for fusion)

  • Format of images:

  • [Infrared] 24-bit grayscale bitmap
  • [Visible] 24-bit color bitmap

  • Image size: 1024 x 768 pixels (mostly)

  • Registration: All image pairs are registered. The visible images are calibrated by using the internal parameters of our synchronized system, and the infrared images are artificially distorted by homography matrix.

  • Labeling: 34407 labels have been manually labeled, containing 6 kinds of targets: {People, Car, Bus, Motorcycle, Lamp, Truck}. (Limited by manpower, some targets may be mismarked or missed. We would appreciate if you would point out wrong or missing labels to help us improve the dataset)

Download

File structure

  M3FD
  ├── Challenge
  |   ├── Beach
  |   |   ├──Annotation
  |   |   |  ├── 01863.xml
  |   |   |  └── ...
  |   |   ├──Ir
  |   |   |  ├── 01863.png
  |   |   |  └── ...
  |   |   ├──Vis
  |   |   |  ├── 01863.png
  |   |   |  └── ...
  |   ├── Crossroads
  |   └── ...
  ├── Daytime
  |   ├── Alley
  |   └── ...
  ├── Night
  |   ├── Basement
  |   └── ...
  └── Overcast
      ├── Atrium
      └── ...

If you have any question or suggestion about the dataset, please email to Guanyao Wu or Jinyuan Liu.

TarDAL Fusion

Baselines(Sorted alphabetically)

Fuse Quick Start Examples

You can try our method online (free) in Colab.

Install

We recommend you to use the conda management environment.

conda create -n tardal python=3.8
conda activate tardal
pip install -r requirements.txt

Fuse or Eval

We offer three pre-trained models.

Name Description
TarDAL Optimized for human vision. (Default)
TarDAL+ Optimized for object detection.
TarDAL++ Optimal solution for joint human vision and detection accuracy.
python fuse.py --src data/sample/s1 --dst runs/sample/tardal --weights weights/tardal.pt --color
python fuse.py --src data/sample/s1 --dst runs/sample/tardal+ --weights weights/tardal+.pt --color --eval
python fuse.py --src data/sample/s1 --dst runs/sample/tardal++ --weights weights/tardal++.pt --color --eval

--color will colorize the fused images with corresponding visible color space.

If you have any question about the code, please email to Zhanbo Huang.

Citation

@inproceedings{TarDAL,
  title={Target-aware Dual Adversarial Learning and a Multi-scenario Multi-Modality Benchmark to Fuse Infrared and Visible for Object Detection},
  author={Jinyuan Liu, Xin Fan*, Zhangbo Huang, Guanyao Wu, Risheng Liu , Wei Zhong, Zhongxuan Luo},
  booktitle={Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition},
  year={2022}
}

Core symbols most depended-on inside this repo

Shape

Method 21
Class 7
Function 4

Languages

Python100%

Modules by API surface

pipeline/train.py8 symbols
utils/fusion_data.py5 symbols
utils/image_pair.py3 symbols
utils/environment_probe.py3 symbols
pipeline/eval.py3 symbols
modules/generator.py3 symbols
modules/discriminator.py3 symbols
fuse.py2 symbols
train.py1 symbols
functions/div_loss.py1 symbols

For agents

$ claude mcp add TarDAL \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page