Skip to content
ModelListedExternal
Browse files

WATERec Models

WATERec is the strong STR baseline proposed in the paper "Advancing WordArt-Oriented Scene Text Recognition: Datasets and Methods" (ECCV 2026). It couples a NaViT-like RoPE-ViT encoder that supports arbitrary-shaped...

KindOtherVersionRevision 678247aCgrade

Model source

Kind
Other
File size
107 MB
Version
vRevision 678247a
Updated
Oct 23, 2026
Downloads
0
Source
Hugging Face

Source description

WATERec-Models: Strong Baseline for WordArt-Oriented Scene Text Recognition

WATERec is the strong STR baseline proposed in the paper "Advancing WordArt-Oriented Scene Text Recognition: Datasets and Methods" (ECCV 2026). It couples a NaViT-like RoPE-ViT encoder that supports arbitrary-shaped inputs with an autoregressive (AR) Transformer decoder, structurally breaking the bottleneck of fixed-template STR on highly irregular WordArt.

This repository hosts the trained model checkpoints.


Model Architecture

  • Encoder: 6-layer Transformer with RoPE attention, accepting arbitrary aspect ratios. Inputs are rescaled (aspect-ratio preserving) so the number of 4×4 patch tokens lies in [64, 256]; tokens are projected to d=384 and arranged in row-major order.
  • Decoder: 2 cross-attention AR Transformer layers, predicting characters one by one under cross-entropy loss. Max text length 25; character set of 94 tokens (digits, letters, common symbols).

This design preserves native aspect ratios, mitigates distortion from fixed-template resizing, and better adapts to curved / vertical / multi-oriented artistic layouts.


Checkpoints

Each file is a standard PyTorch state_dict (~112 MB), differing only in the training data:

FileTraining dataWordArt-Bench Acc.
WATERec-R.pthWATER-R (real only, 3.2M)88.55%
WATERec-S.pthWATER-S (synthetic only, 2M)80.94%
WATERec-RS.pthWATER-R + WATER-S (real + 2M synthetic)90.40%

WATERec-RS.pth is the recommended best model — the first result to exceed 90% on WordArt-Bench, surpassing both general-purpose and OCR-specialized VLMs by a large margin.


Usage

We recommend running these checkpoints with the official framework OpenOCR-WATERec, which provides the matching model configuration, preprocessing, and inference scripts.

Download the weights:

# Requires: pip install -U "huggingface_hub[cli]"
hf download Yesianrohn/WATERec-Models --local-dir ./WATERec-Models

Load a checkpoint:

import torch

# weights_only=True for safer loading of pickle-based .pth files
state_dict = torch.load("WATERec-RS.pth", map_location="cpu", weights_only=True)
# Build the WATERec model from the OpenOCR-WATERec config, then:
# model.load_state_dict(state_dict)

These .pth files contain only model weights; no config is bundled. Use the configs in the OpenOCR-WATERec repository to instantiate the architecture before loading the state dict.


License

Released under the Apache 2.0 license.


Citation

If you use these models in your research, please cite our paper:

@inproceedings{water2026eccv,
  title     = {Advancing WordArt-Oriented Scene Text Recognition: Datasets and Methods},
  author    = {Ye, Xingsong and Du, Yongkun and Zhang, Jiaxin and Zhang, Haojie and Sun, Chong and Li, Chen and Lyu, Jing and Chen, Zhineng},
  booktitle = {European Conference on Computer Vision (ECCV)},
  year      = {2026}
}

Sources

1 source
Hugging FacePrimaryVersion 678247a94c09c462811647c87f338cb2169d94c0
huggingface.co/Yesianrohn/WATERec-Models/tree/678247a94c09c462811647c87f338cb2169d94c0

Verified Oct 23

Download files

Model artifacts

3 artifacts

WATERec-R.pth

pth · 107 MB · SHA-256 ca03d07e6b0a…75d9 · Hugging Face

Download file

WATERec-RS.pth

pth · 107 MB · SHA-256 cdc3e33a61a0…4801 · Hugging Face

Download file

WATERec-S.pth

pth · 107 MB · SHA-256 391b750d00ef…fd91 · Hugging Face

Download file

Source excerpts

3 excerpts

--- license: apache-2.0 pipeline_tag: image-to-text library_name: pytorch language: - en tags: - scene-text-recognition - STR - OCR - artistic-text - wordart - WATERec --- # WATERec-Models: Strong Baseline for WordArt-Oriented Scene Text Recognition **WATERec** is the strong STR baseline proposed in the paper **"Advancing WordArt-Oriented Scene Text Recognition: Datasets and Methods" (ECCV 2026)**. It couples a **NaViT-like RoPE-ViT encoder** that supports **arbitrary-shaped inputs** with an **autoregressive (AR) Transformer decoder**, structurally breaking the bottleneck of fixed-template STR on highly irregular WordArt. This repository hosts the trained model checkpoints. - 📄 **Paper (arXiv):** https://arxiv.org/abs/2606.24484 - 💻 **Code:** https://github.com/YesianRohn/WATER - 🧠 **Model code (OpenOCR-WATERec):** https://github.com/YesianRohn/OpenOCR-WATERec - 📦 **Datasets (WATER-Data):** https://huggingface.co/datasets/Yesianrohn/WATER-Data --- ## Model Architecture - **Encoder:** 6-layer Transformer with **RoPE attention**, accepting arbitrary aspect ratios. Inputs are rescaled (aspect-ratio preserving) so the number of `4×4` patch tokens lies in `[64, 256]`; tokens are projected to `d=384` and arranged in row-major order. - **Decoder:** 2 cross-attention AR Transformer layers, predicting characters one by one under cross-entropy loss. Max text length 25; character set of 94 tokens (digits, letters, common symbols). This design preserves native aspect ratios, mitigates distortion from fixed-template resizing, and better adapts to curved / vertical / multi-oriented artistic layouts. --- ## Checkpoints Each file is a standard PyTorch `state_dict` (~112 MB), differing only in the **training data**: | File | Training data | WordArt-Bench Acc. | |------|---------------|--------------------| | `WATERec-R.pth` | WATER-R (real only, 3.2M) | 88.55% | | `WATERec-S.pth` | WATER-S (synthetic only, 2M) | 80.94% | | `WATERec-RS.pth` | WATER-R + WATER-S (real + 2M synthetic) | **90.40%** | `WATERec-RS.pth` is the recommended best model — the first result to exceed 90% on WordArt-Bench, surpassing both general-purpose and OCR-specialized VLMs by a large margin. --- ## Usage We recommend running these checkpoints with the official framework [OpenOCR-WATERec](https://github.com/YesianRohn/OpenOCR-WATERec), which provides the matching mode...

Source context: 0 downloads · 1 likes · Pipeline image-to-text · Library pytorch · Repo Yesianrohn/WATERec-Models

Source context: 0 downloads · 0 likes · Pipeline image-to-text · Library pytorch · Repo Yesianrohn/WATERec-Models