You can find the PDF of the paper here. If you use this code in an academic context please cite this publication:
@misc{pt_fusion,
title={Multi-Modal Attention Networks for Enhanced Segmentation and Depth Estimation of Subsurface Defects in Pulse Thermography},
author={Mohammed Salah and Naoufel Werghi and Davor Svetinovic and Yusra Abdulrahman},
year={2025},
eprint={2501.09994},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2501.09994},
}Tested on the following platforms:
- Ubuntu 18.04 and 20.04 LTS
You need the model checkpoints and dataset to be in your working directory:
Create pt_fusion conda environment:
git clone https://github.com/mohammedsalah98/pt_fusion.git
cd pt_fusion
conda env create -f environment.yml
conda activate pt_fusion
cd pt_fusion
python test_multi.py --checkpoint /path/to/checkpoint --data_folder /path/to/dataset
python test_depth.py --checkpoint /path/to/checkpoint --data_folder /path/to/dataset
--checkpoint: Path to downloaded checkpoint--data_folder: Path to dataset
python train_segmentation.py --data_folder /path/to/dataset
python train_depth.py --data_folder /path/to/dataset
For example, if you place the checkpoint in the checkpoints folder and the dataset in pt_fusion directory, the command should look like this:
python test_depth.py --checkpoint checkpoints/attention_fusionUnet_depth.pth --data_folder dataset/
We will soon release a code for benchmarks against state-of-the-art models.
