tysirai/ABINet-STR v1

A hosted model for the task str/recognition, published by TysirAI.

import tysirai

model = tysirai.load("hf://tysirai/ABINet-STR@v1")
outputs = model(images=images)
outputs["text:labels"]

images is an input of type image.

Interface

Slot Name Type
In images image
Out text:labels Text(B) [text]

Lineage

Licenses

  • Code: Apache-2.0
  • Weights: Apache-2.0
  • Training data: unknown

Notes

  • Weights converted from the original release (https://github.com/baudm/parseq/releases/download/v1.0.0/abinet-1d1e373e.pt) to TysirAI; outputs checked against the original implementation (https://github.com/baudm/parseq).
  • Not in DTR. The ABINet of the PARSeq release, retrained there on real data. The weight map is configs/str/<name>/weight_map.yaml of the TysirAI repository. The fidelity set holds the outputs of the original model (strhub/models/abinet of the repository, with the settings of configs/model/abinet.yaml: three refinements of the language model and the fusion).
  • The TysirAI nodes (str.ABINetModel@1) were written from the ABINet paper and the names and shapes of the checkpoint, and checked against the original model run as a black box. The ABINet code of the repository (strhub/models/abinet, all files but system.py) is under the license of FangShancheng/ABINet, for non-commercial purposes, and was not ported.
  • Predicts 94 characters (letters in both cases, digits and punctuation); the protocol compares words in lower case without punctuation.

Fidelity

Fidelity set: fidelity.

Output atol rtol
text:labels 0 0
Downloads last month
-
Safetensors
Model size
37M params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Paper for tysirai/ABINet-STR