metadata
license: apache-2.0
tags:
- infrared
- image
- pretraining
size_categories:
- 1M<n<10M
UNIP: Rethinking Pre-trained Attention Patterns for Infrared Semantic Segmentation
Code: https://github.com/casiatao/UNIP
📖 Introduction
This repository releases the InfMix dataset, a pre-training dataset consisting of 541,088 infrared images collected from 23 sub-datasets.
Scripts for unzipping
#!/bin/bash
LOGFILE="unzip_errors.log"
: > "$LOGFILE" # Clear the log file
files=(*.zip *.z??)
declare -A processed
for file in "${files[@]}"; do
[[ -f "$file" ]] || continue
# Extract the base name without extension, e.g., a.zip -> a, a.z01 -> a
base="${file%%.*}"
# Skip if already processed
if [[ -n "${processed[$base]}" ]]; then
continue
fi
processed[$base]=1
# If the target directory already exists, skip extraction
if [[ -d "$base" ]]; then
echo "Directory $base exists, skipping unzip of $base.zip"
continue
fi
mkdir -p "$base"
# Extract using 7z (quiet mode), redirect errors to log, and check success
if ! 7za x -y "$base.zip" -o"$base" >>"$LOGFILE" 2>&1; then
echo "[$(date '+%F %T')] Error: Failed to 7z extract $base.zip" >> "$LOGFILE"
echo "Skipping $base.zip due to error."
rm -rf "$base"
continue
fi
done
echo "Unzip task completed. Please check $LOGFILE for error logs."
Citation
If you find this repository helpful, please consider giving a like ❤️ and citing:
@inproceedings{
zhang2025unip,
title={{UNIP}: Rethinking Pre-trained Attention Patterns for Infrared Semantic Segmentation},
author={Tao Zhang and Jinyong Wen and Zhen Chen and Kun Ding and Shiming Xiang and Chunhong Pan},
booktitle={The Thirteenth International Conference on Learning Representations},
year={2025},
url={https://openreview.net/forum?id=Xq7gwsnhPT}
}