File size: 2,194 Bytes
f888397
 
 
 
 
fe38ade
f888397
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
---
license: apache-2.0
tags:
- infrared
- image
- pretraining
size_categories:
- 1M<n<10M
---

<h1 align="center"> UNIP: Rethinking Pre-trained Attention Patterns for Infrared Semantic Segmentation </h1>

<p align="center">
  <a href='https://arxiv.org/abs/2502.02257'>
  <img src='https://img.shields.io/badge/Arxiv-2502.02257-A42C25?style=flat&logo=arXiv&logoColor=A42C25'></a>
  <a href='https://huggingface.co/casiatao/UNIP'>
  <img src='https://img.shields.io/badge/%F0%9F%A4%97%20Model-UNIP-yellow'></a>
</p>

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:
```bibtex
@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}
}
```