TreezzZ commited on
Commit
7af8e0e
·
verified ·
1 Parent(s): a348642

Remove dataset card

Browse files
Files changed (1) hide show
  1. README.md +0 -120
README.md DELETED
@@ -1,120 +0,0 @@
1
- ---
2
- pretty_name: MoRA Missing-Modality Benchmark Data
3
- license: other
4
- language:
5
- - en
6
- task_categories:
7
- - image-classification
8
- - text-classification
9
- tags:
10
- - multimodal
11
- - missing-modality
12
- - vision-language
13
- - clip
14
- - mm-imdb
15
- - food101
16
- - hateful-memes
17
- size_categories:
18
- - 10K<n<100K
19
- viewer: false
20
- ---
21
-
22
- # MoRA — Missing-Modality Benchmark Data
23
-
24
- Preprocessed, ready-to-train data for reproducing **MoRA: Missing Modality Low-Rank Adaptation for Visual Recognition**.
25
-
26
- - 📄 Paper: [arXiv:2511.06225](https://arxiv.org/abs/2511.06225)
27
- - 💻 Code: [github.com/Tree-Shu-Zhao/MoRA](https://github.com/Tree-Shu-Zhao/MoRA)
28
-
29
- This bundle exists so you don't have to redo the (error-prone) raw download + preprocessing. The Arrow files and JSON metadata drop **directly** into the repo's `datasets/` directory with no renaming — filenames already match what `src/data/dataset.py` expects.
30
-
31
- ## Quick start
32
-
33
- ```bash
34
- # from the MoRA repo root
35
- huggingface-cli download TreezzZ/MoRA-data --repo-type dataset --local-dir datasets
36
- # then, per the README:
37
- python src/main.py experiment=mora_mmimdb
38
- python src/main.py experiment=mora_hatememes
39
- python src/main.py experiment=mora_food101
40
- ```
41
-
42
- That's it — `DATA_DIR` defaults to `datasets`, so the three dataset folders line up automatically.
43
-
44
- ## Directory structure
45
-
46
- ```
47
- .
48
- ├── Food101/
49
- │ ├── train.arrow # image bytes + text + label
50
- │ ├── val.arrow
51
- │ ├── test.arrow
52
- │ ├── class_idx.json # 101 class → index map
53
- │ ├── text.json # per-sample UPMC text titles
54
- │ ├── split.json # train/val/test sample ids
55
- │ └── missing_tables/ # precomputed missing-modality masks (see below)
56
- ├── hateful_memes/
57
- │ ├── train.arrow
58
- │ ├── val.arrow # = dev split
59
- │ ├── test.arrow # labelled test (from test_seen/test_unseen)
60
- │ ├── test_unseen.jsonl
61
- │ └── missing_tables/
62
- └── mmimdb/
63
- ├── train.arrow
64
- ├── val.arrow # = dev split
65
- ├── test.arrow
66
- ├── split.json
67
- └── missing_tables/
68
- ```
69
-
70
- ### Arrow schema
71
- Each `*.arrow` is a PyArrow IPC file. Columns:
72
- - **MM-IMDb**: `image` (JPEG bytes), `plots` (list[str]), `label` (23-d multi-hot), `genres`, `image_id`, `split`
73
- - **Hateful Memes**: `image` (PNG bytes), `text` (list[str]), `label` (int), `split`
74
- - **Food-101**: `image` (JPEG bytes), `text` (list[str]), `label` (int), `image_id`, `split`
75
-
76
- ### `missing_tables/`
77
- Precomputed missing-modality masks used by the paper. Naming convention (matches `src/data/dataset.py`):
78
-
79
- ```
80
- {dataset}_split{split}_missing_{type}_{ratio}.pt
81
- dataset ∈ {food101, hatememes, mmimdb}
82
- split ∈ {train, val, test}
83
- type ∈ {both, image, text}
84
- ratio ∈ {0.1, 0.2, …, 0.9}
85
- ```
86
-
87
- Each file is a 1-D `torch` tensor of length *N* (number of samples): `0` = both modalities present, `1` = text missing, `2` = image missing. When a file matching the active `missing_params` exists at `datasets/<DS>/missing_tables/`, the dataloader **loads it**; otherwise it regenerates one deterministically from `SEED`. Shipping these guarantees everyone evaluates on identical masks.
88
-
89
- ## Reproduction
90
-
91
- The repo's default config is **missing type `both`, ratio `0.7`** (`BOTH_RATIO=0.5`). Using this bundle's masks, a single H100 run per dataset reproduces the paper's Table 1 (70%, "both") within run-to-run noise:
92
-
93
- | Dataset | Metric | Paper | Reproduced |
94
- |---|---|---|---|
95
- | MM-IMDb | F1-macro | 52.97 | 52.53 |
96
- | Hateful Memes | AUROC | 70.15 | 69.56 |
97
- | Food-101 | Accuracy | 83.77 | 83.30 |
98
-
99
- (Residual ≤0.6 pt is fp16/cuDNN training nondeterminism; masks are identical.)
100
-
101
- ## Data provenance & licensing
102
-
103
- This is a **research convenience redistribution** of three public benchmarks. The original data are owned by their respective creators and remain under their original terms — **you are responsible for complying with each source's license/usage agreement**:
104
-
105
- - **MM-IMDb** — [gmu-mmimdb](https://github.com/johnarevalo/gmu-mmimdb) / [archive.org mirror](https://archive.org/download/mmimdb)
106
- - **UPMC Food-101** — [VISIIR](https://visiir.isir.upmc.fr/explore) / [Kaggle](https://www.kaggle.com/datasets/gianmarco96/upmcfood101)
107
- - **Hateful Memes** — [Meta AI](https://ai.facebook.com/blog/hateful-memes-challenge-and-data-set/) (subject to the Hateful Memes Dataset License Agreement; redistribution of the original images may be restricted — use accordingly)
108
-
109
- If you are a rights holder and have concerns about redistribution, please contact the repository owner.
110
-
111
- ## Citation
112
-
113
- ```bibtex
114
- @article{zhao2025mora,
115
- title={MoRA: Missing Modality Low-Rank Adaptation for Visual Recognition},
116
- author={Zhao, Shu and Ahuja, Nilesh and Yu, Tan and Shen, Tianyi and Narayanan, Vijaykrishnan},
117
- journal={arXiv preprint arXiv:2511.06225},
118
- year={2025}
119
- }
120
- ```