ONNX Model Zoo

cyberagent/type-r

By cyberagent · ↓ 0 · ♥ 2 · Updated 2025-05-20

What's in this repo

This page lists the files in cyberagent/type-r, including model.onnx.

  • 1 ONNX models (.onnx files)
  • 69 files, including 19 .arrow, 17 .json, 7 .pth, 4 .md, 4 .txt, 3 .pt
  • Last updated 2025-05-20

ONNX files

File Size Download
weight/ocr/modelscope/model.onnx — Download

How to use

These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.

README

Type-R official repository

This repository contains model weights and data resources used in the Type-R project. The dataset is designed to support text-to-image generation, OCR, text erasing, editing, and evaluation pipelines used in the Type-R system.

📘 Directory structure

⚠️ The code in the repository is designed to operate directly using this structure.

resources/ ├── weight/ │ ├── ocr/ # OCR-related model weights │ │ ├── solo.pth # ⚠️Required Manual Downloads │ │ ├── masktextspotterv3.pth # ⚠️Required Manual Downloads │ │ ├── modelscope │ │ ├── craft │ │ ├── clova │ │ └── hisam_weight │ ├── text_eraser/ # Text erasure model weights │ │ ├── big-lama.pt │ │ └── garnet.pth │ ├── text_editor/ # Text editing model weights │ │ ├── anytext.ckpt │ │ └── udifftext │ └── t2i/ # Text-to-image model weights │ ├── (weights will be cached here) │ ~ ├── data/ │ ├── marioevalbench/ # Mario-Eval benchmark dataset | │ └── hfds │ ├── arial_unicode_ms.ttf # ⚠️Required Manual Downloads │ └── LiberationSans-Regular.ttf └── prompt └── example.txt

📘 ⚠️Manual download required data⚠️

  • resources/weight/ocr/solo.pth
    • Please download this weight from the official Deeosolo implementation.[link]
    • This weight has ViTAEv2-S as its backbone and is trained on Synth150K+Total-Text+MLT17+IC13+IC15+TextOCR.
  • resources/weight/ocr/masktextspotterv3.pth
  • resources/data/arial_unicode_ms.ttf
    • Since the Arial font cannot be redistributed, please obtain it through your operating system or another legal source. As an alternative, you may use an open font such as Liberation Sans (resources/data/LiberationSans-Regular.ttf). However, please note that we have observed a drop of 1–2 points in OCR accuracy on the Mario-Eval benchmark when using AnyText with Liberation Sans under our best configuration.

📘 Dataset details

  • weight/

    • This dicrectory contains pretrained weights used for various modules in the Type-R pipeline
    • ocr/: Models for OCR detection/recognition.
    • text_eraser/: Inpainting or erasure modules for removing text.
    • text_editor/: Models for rendering text into images.
    • t2i/: Large text-to-image models.
      • If the T2I model requires authentication, make sure to log in to Hugging Face (e.g., using huggingface-cli login) before executing the pipeline.
  • data/marioevalbench/

    • The dataset containing prompts and reference images for evaluating Type-R
    • hfds/: includes prompts, augmented prompts, and images of the Mario-Eval Benchmark

📘 License

Weights

Data

Model info

onnx text-to-image design en license:apache-2.0 region:us
↓ 0 ♥ 2

Created: 2025-04-23

Updated: 2025-05-20

View on Hugging Face

Files (69)

.gitattributes
README.md
data/LiberationSans-Regular.ttf
data/marioevalbench/hfds/ablation/data-00000-of-00003.arrow
data/marioevalbench/hfds/ablation/data-00001-of-00003.arrow
data/marioevalbench/hfds/ablation/data-00002-of-00003.arrow
data/marioevalbench/hfds/ablation/dataset_info.json
data/marioevalbench/hfds/ablation/state.json
data/marioevalbench/hfds/dataset_dict.json
data/marioevalbench/hfds/test/data-00000-of-00010.arrow
data/marioevalbench/hfds/test/data-00001-of-00010.arrow
data/marioevalbench/hfds/test/data-00002-of-00010.arrow
data/marioevalbench/hfds/test/data-00003-of-00010.arrow
data/marioevalbench/hfds/test/data-00004-of-00010.arrow
data/marioevalbench/hfds/test/data-00005-of-00010.arrow
data/marioevalbench/hfds/test/data-00006-of-00010.arrow
data/marioevalbench/hfds/test/data-00007-of-00010.arrow
data/marioevalbench/hfds/test/data-00008-of-00010.arrow
data/marioevalbench/hfds/test/data-00009-of-00010.arrow
data/marioevalbench/hfds/test/dataset_info.json
data/marioevalbench/hfds/test/state.json
data/marioevalbench/hfds/userstudy/data-00000-of-00003.arrow
data/marioevalbench/hfds/userstudy/data-00001-of-00003.arrow
data/marioevalbench/hfds/userstudy/data-00002-of-00003.arrow
data/marioevalbench/hfds/userstudy/dataset_info.json
data/marioevalbench/hfds/userstudy/state.json
data/marioevalbench/hfds/val/data-00000-of-00003.arrow
data/marioevalbench/hfds/val/data-00001-of-00003.arrow
data/marioevalbench/hfds/val/data-00002-of-00003.arrow
data/marioevalbench/hfds/val/dataset_info.json
data/marioevalbench/hfds/val/state.json
prompt/example.txt
weight/ocr/clova/TPS-ResNet-BiLSTM-Attn.pth
weight/ocr/craft/craft_mlt_25k.pth
weight/ocr/craft/craft_refiner_CTW1500.pth
weight/ocr/hisam_weight/hi_sam_h.pth
weight/ocr/hisam_weight/put checkpoints here.txt
weight/ocr/hisam_weight/sam_vit_h_4b8939.pth
weight/ocr/modelscope/.mdl
weight/ocr/modelscope/.msc
weight/ocr/modelscope/.mv
weight/ocr/modelscope/README.md
weight/ocr/modelscope/configuration.json
weight/ocr/modelscope/model.onnx ONNX
weight/ocr/modelscope/pytorch_model.pt
weight/ocr/modelscope/quickstart.md
weight/ocr/modelscope/resources/ConvTransformer-Pipeline.jpg
weight/ocr/modelscope/resources/rec_result_measure.png
weight/ocr/modelscope/resources/rec_result_visu.jpg
weight/ocr/modelscope/vocab.txt
weight/ocr/trocr-large-str/.gitattributes
weight/ocr/trocr-large-str/README.md
weight/ocr/trocr-large-str/config.json
weight/ocr/trocr-large-str/generation_config.json
weight/ocr/trocr-large-str/merges.txt
weight/ocr/trocr-large-str/preprocessor_config.json
weight/ocr/trocr-large-str/pytorch_model.bin
weight/ocr/trocr-large-str/special_tokens_map.json
weight/ocr/trocr-large-str/tokenizer.json
weight/ocr/trocr-large-str/tokenizer_config.json
weight/ocr/trocr-large-str/vocab.json
weight/text_editor/anytext.ckpt
weight/text_editor/udifftext/AEs/AE_inpainting_2.safetensors
weight/text_editor/udifftext/encoders/LabelEncoder/epoch=19-step=7820.ckpt
weight/text_editor/udifftext/encoders/ViTSTR/vitstr_base_patch16_224.pth
weight/text_editor/udifftext/predictors/parseq-bb5792a6.pt
weight/text_editor/udifftext/udifftext.ckpt
weight/text_eraser/big-lama.pt
weight/text_eraser/garnet.pth

Related models