JingyeChen22/TextDiffuser-MARIO-10M

Dataset

TextDiffuser-MARIO-10M

9

10 commits

1 linked in READMEs

updated Sep 1, 2024

See the code

README

TextDiffuser-MARIO-10M

image/png

Dataset description

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.

Download

The downloading process include three steps:

[1] Download all the tar files

for i in {0..500};
do wget -O $i.tar.gz https://huggingface.co/datasets/JingyeChen22/TextDiffuser-MARIO-10M/resolve/main/$i.tar.gz?download=true;
done

[2] Unzip the top-level directory

for i in {0..500};
do tar -xvf $i.tar.gz --strip-components=5 && rm $i.tar.gz;
done

[3] Unzip the second-level directory

for i in {0..500};
do
    cd $i && for file in *.tar.gz; do tar -xvf "$file" --strip-components=5 && rm $file; done;
    cd ..;
done

Finally, the directory tree should show like this:

MARIO-10M/
β”‚
β”œβ”€β”€ 0/
β”‚   β”œβ”€β”€ 00000/
β”‚   β”œβ”€β”€β”€β”€ 000000012/
β”‚   β”œβ”€β”€β”€β”€β”€β”€β”€β”€ caption.txt
β”‚   β”œβ”€β”€β”€β”€β”€β”€β”€β”€ charseg.npy
β”‚   β”œβ”€β”€β”€β”€β”€β”€β”€β”€ image.jpg
β”‚   β”œβ”€β”€β”€β”€β”€β”€β”€β”€ info.json
β”‚   β”œβ”€β”€β”€β”€β”€β”€β”€β”€ ocr.txt
...

Citation

If you find MARIO dataset useful in your research, please cite the following paper:

@article{chen2024textdiffuser,
  title={Textdiffuser: Diffusion models as text painters},
  author={Chen, Jingye and Huang, Yupan and Lv, Tengchao and Cui, Lei and Chen, Qifeng and Wei, Furu},
  journal={Advances in Neural Information Processing Systems},
  volume={36},
  year={2024}
}

@article{chen2023textdiffuser,
  title={Textdiffuser-2: Unleashing the power of language models for text rendering},
  author={Chen, Jingye and Huang, Yupan and Lv, Tengchao and Cui, Lei and Chen, Qifeng and Wei, Furu},
  journal={European Conference on Computer Vision},
  year={2024}
}

License

Microsoft Open Source Code of Conduct

Contributors

watermelon23

7 commits

JingyeChen22

3 commits

JingyeChen22/TextDiffuser-MARIO-10M

Dataset

TextDiffuser-MARIO-10M

9

10 commits

1 linked in READMEs

updated Sep 1, 2024

See the code

README

TextDiffuser-MARIO-10M

image/png

Dataset description

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.

Download

The downloading process include three steps:

[1] Download all the tar files

for i in {0..500};
do wget -O $i.tar.gz https://huggingface.co/datasets/JingyeChen22/TextDiffuser-MARIO-10M/resolve/main/$i.tar.gz?download=true;
done

[2] Unzip the top-level directory

for i in {0..500};
do tar -xvf $i.tar.gz --strip-components=5 && rm $i.tar.gz;
done

[3] Unzip the second-level directory

for i in {0..500};
do
    cd $i && for file in *.tar.gz; do tar -xvf "$file" --strip-components=5 && rm $file; done;
    cd ..;
done

Finally, the directory tree should show like this:

MARIO-10M/
β”‚
β”œβ”€β”€ 0/
β”‚   β”œβ”€β”€ 00000/
β”‚   β”œβ”€β”€β”€β”€ 000000012/
β”‚   β”œβ”€β”€β”€β”€β”€β”€β”€β”€ caption.txt
β”‚   β”œβ”€β”€β”€β”€β”€β”€β”€β”€ charseg.npy
β”‚   β”œβ”€β”€β”€β”€β”€β”€β”€β”€ image.jpg
β”‚   β”œβ”€β”€β”€β”€β”€β”€β”€β”€ info.json
β”‚   β”œβ”€β”€β”€β”€β”€β”€β”€β”€ ocr.txt
...

Citation

If you find MARIO dataset useful in your research, please cite the following paper:

@article{chen2024textdiffuser,
  title={Textdiffuser: Diffusion models as text painters},
  author={Chen, Jingye and Huang, Yupan and Lv, Tengchao and Cui, Lei and Chen, Qifeng and Wei, Furu},
  journal={Advances in Neural Information Processing Systems},
  volume={36},
  year={2024}
}

@article{chen2023textdiffuser,
  title={Textdiffuser-2: Unleashing the power of language models for text rendering},
  author={Chen, Jingye and Huang, Yupan and Lv, Tengchao and Cui, Lei and Chen, Qifeng and Wei, Furu},
  journal={European Conference on Computer Vision},
  year={2024}
}

License

Microsoft Open Source Code of Conduct

Contributors

watermelon23

7 commits

JingyeChen22

3 commits