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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- feature-extraction
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
tags:
|
| 8 |
+
- Out-of-Distribution Detection
|
| 9 |
+
- Multimodal Learning
|
| 10 |
+
pretty_name: MultiOOD
|
| 11 |
+
size_categories:
|
| 12 |
+
- 100K<n<1M
|
| 13 |
+
---
|
| 14 |
+
<div align="center">
|
| 15 |
+
|
| 16 |
+
<h1>MultiOOD: Scaling Out-of-Distribution Detection for Multiple Modalities</h1>
|
| 17 |
+
|
| 18 |
+
<div>
|
| 19 |
+
<a href='https://sites.google.com/view/dong-hao/' target='_blank'>Hao Dong</a><sup>1</sup>
|
| 20 |
+
 
|
| 21 |
+
<a href='https://viterbi-web.usc.edu/~yzhao010/' target='_blank'>Yue Zhao</a><sup>2</sup>
|
| 22 |
+
 
|
| 23 |
+
<a href='https://chatzi.ibk.ethz.ch/about-us/people/prof-dr-eleni-chatzi.html' target='_blank'>Eleni Chatzi</a><sup>1</sup>
|
| 24 |
+
 
|
| 25 |
+
<a href='https://people.epfl.ch/olga.fink?lang=en' target='_blank'>Olga Fink</a><sup>3</sup>
|
| 26 |
+
</div>
|
| 27 |
+
<div>
|
| 28 |
+
<sup>1</sup>ETH Zurich, <sup>2</sup>University of Southern California, <sup>3</sup>EPFL
|
| 29 |
+
</div>
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
<div>
|
| 33 |
+
<h4 align="center">
|
| 34 |
+
• <a href="https://arxiv.org/abs/2405." target='_blank'>arXiv</a> •
|
| 35 |
+
</h4>
|
| 36 |
+
</div>
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
<div style="text-align:center">
|
| 41 |
+
<img src="multiood.jpg" width="100%" height="100%">
|
| 42 |
+
</div>
|
| 43 |
+
|
| 44 |
+
---
|
| 45 |
+
|
| 46 |
+
</div>
|
| 47 |
+
|
| 48 |
+
MultiOOD is the first-of-its-kind benchmark for Multimodal OOD Detection, characterized by diverse dataset sizes and varying modality combinations.
|
| 49 |
+
|
| 50 |
+
## MultiOOD Benchmark
|
| 51 |
+
MultiOOD is based on five public action recognition datasets (HMDB51, UCF101, EPIC-Kitchens, HAC, and Kinetics-600).
|
| 52 |
+
|
| 53 |
+
### Prepare Datasets
|
| 54 |
+
1. Download HMDB51 video data from [link](http://serre-lab.clps.brown.edu/wp-content/uploads/2013/10/hmdb51_org.rar) and extract. Download HMDB51 optical flow data from [link](https://huggingface.co/datasets/hdong51/MultiOOD/blob/main/hmdb51_flow_mp4.tar.gz) and extract. The directory structure should be modified to match:
|
| 55 |
+
|
| 56 |
+
```
|
| 57 |
+
HMDB51
|
| 58 |
+
├── video
|
| 59 |
+
| ├── catch
|
| 60 |
+
| | ├── *.avi
|
| 61 |
+
| ├── climb
|
| 62 |
+
| | ├── *.avi
|
| 63 |
+
| |── ...
|
| 64 |
+
|
| 65 |
+
|
| 66 |
+
├── flow
|
| 67 |
+
| ├── *_flow_x.mp4
|
| 68 |
+
| ├── *_flow_y.mp4
|
| 69 |
+
| ├── ...
|
| 70 |
+
```
|
| 71 |
+
|
| 72 |
+
1. Download UCF101 video data from [link](https://www.crcv.ucf.edu/data/UCF101/UCF101.rar) and extract. Download UCF101 optical flow data from [link](https://huggingface.co/datasets/hdong51/MultiOOD/blob/main/ucf101_flow_mp4.tar.gz) and extract. The directory structure should be modified to match:
|
| 73 |
+
|
| 74 |
+
```
|
| 75 |
+
UCF101
|
| 76 |
+
├── video
|
| 77 |
+
| ├── *.avi
|
| 78 |
+
| |── ...
|
| 79 |
+
|
| 80 |
+
|
| 81 |
+
├── flow
|
| 82 |
+
| ├── *_flow_x.mp4
|
| 83 |
+
| ├── *_flow_y.mp4
|
| 84 |
+
| ├── ...
|
| 85 |
+
```
|
| 86 |
+
|
| 87 |
+
3. Download EPIC-Kitchens video and optical flow data by
|
| 88 |
+
```
|
| 89 |
+
bash utils/download_epic_script.sh
|
| 90 |
+
```
|
| 91 |
+
Download audio data from [link](https://polybox.ethz.ch/index.php/s/PE2zIL99OWXQfMu).
|
| 92 |
+
|
| 93 |
+
Unzip all files and the directory structure should be modified to match:
|
| 94 |
+
|
| 95 |
+
```
|
| 96 |
+
EPIC-KITCHENS
|
| 97 |
+
├── rgb
|
| 98 |
+
| ├── train
|
| 99 |
+
| | ├── D3
|
| 100 |
+
| | | ├── P22_01.wav
|
| 101 |
+
| | | ├── P22_01
|
| 102 |
+
| | | | ├── frame_0000000000.jpg
|
| 103 |
+
| | | | ├── ...
|
| 104 |
+
| | | ├── P22_02
|
| 105 |
+
| | | ├── ...
|
| 106 |
+
| ├── test
|
| 107 |
+
| | ├── D3
|
| 108 |
+
|
| 109 |
+
|
| 110 |
+
├── flow
|
| 111 |
+
| ├── train
|
| 112 |
+
| | ├── D3
|
| 113 |
+
| | | ├── P22_01
|
| 114 |
+
| | | | ├── frame_0000000000.jpg
|
| 115 |
+
| | | | ├── ...
|
| 116 |
+
| | | ├── P22_02
|
| 117 |
+
| | | ├── ...
|
| 118 |
+
| ├── test
|
| 119 |
+
| | ├── D3
|
| 120 |
+
```
|
| 121 |
+
|
| 122 |
+
4. Download HAC video, audio and optical flow data from [link](https://polybox.ethz.ch/index.php/s/3F8ZWanMMVjKwJK) and extract. The directory structure should be modified to match:
|
| 123 |
+
|
| 124 |
+
```
|
| 125 |
+
HAC
|
| 126 |
+
├── human
|
| 127 |
+
| ├── videos
|
| 128 |
+
| | ├── ...
|
| 129 |
+
| ├── flow
|
| 130 |
+
| | ├── ...
|
| 131 |
+
| ├── audio
|
| 132 |
+
| | ├── ...
|
| 133 |
+
|
| 134 |
+
├── animal
|
| 135 |
+
| ├── videos
|
| 136 |
+
| | ├── ...
|
| 137 |
+
| ├── flow
|
| 138 |
+
| | ├── ...
|
| 139 |
+
| ├── audio
|
| 140 |
+
| | ├── ...
|
| 141 |
+
|
| 142 |
+
├── cartoon
|
| 143 |
+
| ├── videos
|
| 144 |
+
| | ├── ...
|
| 145 |
+
| ├── flow
|
| 146 |
+
| | ├── ...
|
| 147 |
+
| ├── audio
|
| 148 |
+
| | ├── ...
|
| 149 |
+
```
|
| 150 |
+
5. Download Kinetics-600 video data by
|
| 151 |
+
```
|
| 152 |
+
wget -i utils/filtered_k600_train_path.txt
|
| 153 |
+
```
|
| 154 |
+
Extract all files and get audio data from video data by
|
| 155 |
+
```
|
| 156 |
+
python utils/generate_audio_files.py
|
| 157 |
+
```
|
| 158 |
+
Download Kinetics-600 optical flow data (kinetics600_flow_mp4_part_*) from [link](https://huggingface.co/datasets/hdong51/MultiOOD/tree/main) and extract (run `cat kinetics600_flow_mp4_part_* > kinetics600_flow_mp4.tar.gz` and then `tar -zxvf kinetics600_flow_mp4.tar.gz`).
|
| 159 |
+
|
| 160 |
+
Unzip all files and the directory structure should be modified to match:
|
| 161 |
+
|
| 162 |
+
```
|
| 163 |
+
Kinetics-600
|
| 164 |
+
├── video
|
| 165 |
+
| ├── acting in play
|
| 166 |
+
| | ├── *.mp4
|
| 167 |
+
| | ├── *.wav
|
| 168 |
+
| |── ...
|
| 169 |
+
|
| 170 |
+
|
| 171 |
+
├── flow
|
| 172 |
+
| ├── acting in play
|
| 173 |
+
| | ├── *_flow_x.mp4
|
| 174 |
+
| | ├── *_flow_y.mp4
|
| 175 |
+
| ├── ...
|
| 176 |
+
```
|
| 177 |
+
|
| 178 |
+
### Dataset Splits
|
| 179 |
+
The splits for Multimodal Near-OOD and Far-OOD Benchmarks are provided in https://github.com/donghao51/MultiOOD under `HMDB-rgb-flow/splits/` for HMDB51, UCF101, HAC, and Kinetics-600, and under `EPIC-rgb-flow/splits/` for EPIC-Kitchens.
|
| 180 |
+
|
| 181 |
+
|
| 182 |
+
## Methodology
|
| 183 |
+
<div style="text-align:left">
|
| 184 |
+
<img src="frame.jpg" width="70%" height="100%">
|
| 185 |
+
</div>
|
| 186 |
+
|
| 187 |
+
---
|
| 188 |
+
|
| 189 |
+
An overview of the proposed framework for Multimodal OOD Detection. We introduce A2D algorithm to encourage enlarging the prediction discrepancy across modalities. Additionally, we propose a novel outlier synthesis algorithm, NP-Mix, designed to explore broader feature spaces, which complements A2D to strengthen the OOD detection performance.
|
| 190 |
+
|
| 191 |
+
## Code
|
| 192 |
+
https://github.com/donghao51/MultiOOD
|
| 193 |
+
|
| 194 |
+
## Contact
|
| 195 |
+
If you have any questions, please send an email to donghaospurs@gmail.com
|
| 196 |
+
|
| 197 |
+
## Citation
|
| 198 |
+
|
| 199 |
+
If you find our work useful in your research please consider citing our paper:
|
| 200 |
+
|
| 201 |
+
```
|
| 202 |
+
@article{dong2024multiood,
|
| 203 |
+
author = {Hao Dong and Yue Zhao and Eleni Chatzi and Olga Fink},
|
| 204 |
+
title = {{MultiOOD: Scaling Out-of-Distribution Detection for Multiple Modalities}},
|
| 205 |
+
year = {2024},
|
| 206 |
+
}
|
| 207 |
+
```
|