JingyeChen22 commited on
Commit
62fa664
Β·
verified Β·
1 Parent(s): 4e0ae44

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +77 -0
README.md ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # TextDiffuser-MARIO-10M
2
+
3
+
4
+ ![image/png](https://cdn-uploads.huggingface.co/production/uploads/6478a982256b62e219917d67/AwpHOhKWDtIDmLEr3CrsQ.png)
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
+