Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# TextDiffuser-MARIO-10M
|
2 |
+
|
3 |
+
|
4 |
+

|
5 |
+
|
6 |
+
|
7 |
+
## Dataset description
|
8 |
+
MARIO-10M is a dataset containing about 10 million text images, which includes a variety of sources such as book covers, posters, and tickets. Alongside the images, the dataset also provides OCR results and caption information.
|
9 |
+
|
10 |
+
## Download
|
11 |
+
The downloading process include three steps:
|
12 |
+
|
13 |
+
[1] Download all the tar files
|
14 |
+
```bash
|
15 |
+
for i in {0..500};
|
16 |
+
do wget -O $i.tar.gz https://huggingface.co/datasets/JingyeChen22/TextDiffuser-MARIO-10M/resolve/main/$i.tar.gz?download=true;
|
17 |
+
done
|
18 |
+
```
|
19 |
+
|
20 |
+
[2] Unzip the top-level directory
|
21 |
+
```bash
|
22 |
+
for i in {0..500};
|
23 |
+
do tar -xvf $i.tar.gz --strip-components=5 && rm $i.tar.gz;
|
24 |
+
done
|
25 |
+
```
|
26 |
+
|
27 |
+
[3] Unzip the second-level directory
|
28 |
+
```bash
|
29 |
+
for i in {0..500};
|
30 |
+
do
|
31 |
+
cd $i && for file in *.tar.gz; do tar -xvf "$file" --strip-components=5 && rm $file; done;
|
32 |
+
cd ..;
|
33 |
+
done
|
34 |
+
```
|
35 |
+
|
36 |
+
Finally, the directory tree should show like this:
|
37 |
+
|
38 |
+
```bash
|
39 |
+
MARIO-10M/
|
40 |
+
β
|
41 |
+
βββ 0/
|
42 |
+
β βββ 00000/
|
43 |
+
β βββββ 000000012/
|
44 |
+
β βββββββββ caption.txt
|
45 |
+
β βββββββββ charseg.npy
|
46 |
+
β βββββββββ image.jpg
|
47 |
+
β βββββββββ info.json
|
48 |
+
β βββββββββ ocr.txt
|
49 |
+
...
|
50 |
+
```
|
51 |
+
|
52 |
+
|
53 |
+
## Citation
|
54 |
+
|
55 |
+
If you find MARIO dataset useful in your research, please cite the following paper:
|
56 |
+
|
57 |
+
```
|
58 |
+
@article{chen2024textdiffuser,
|
59 |
+
title={Textdiffuser: Diffusion models as text painters},
|
60 |
+
author={Chen, Jingye and Huang, Yupan and Lv, Tengchao and Cui, Lei and Chen, Qifeng and Wei, Furu},
|
61 |
+
journal={Advances in Neural Information Processing Systems},
|
62 |
+
volume={36},
|
63 |
+
year={2024}
|
64 |
+
}
|
65 |
+
|
66 |
+
@article{chen2023textdiffuser,
|
67 |
+
title={Textdiffuser-2: Unleashing the power of language models for text rendering},
|
68 |
+
author={Chen, Jingye and Huang, Yupan and Lv, Tengchao and Cui, Lei and Chen, Qifeng and Wei, Furu},
|
69 |
+
journal={arXiv preprint arXiv:2311.16465},
|
70 |
+
year={2023}
|
71 |
+
}
|
72 |
+
```
|
73 |
+
|
74 |
+
## License
|
75 |
+
[Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct)
|
76 |
+
|
77 |
+
|