--- datasets: - MJSynth - SynthText library_name: tysirai license: mit tags: - tysirai - hosted - str/recognition tysirai: name: tysirai/DAN-STR version: v1 kind: hosted task: str/recognition licenses: code: MIT weights: MIT training_data: unknown --- # tysirai/DAN-STR v1 A `hosted` model for the task `str/recognition`, published by TysirAI. ```python import tysirai model = tysirai.load("hf://tysirai/DAN-STR@v1") outputs = model(images=images) outputs["text:labels"] outputs["text:probabilities"] ``` `images` is an input of type `image`. ## Interface | Slot | Name | Type | |---|---|---| | In | `images` | `image` | | Out | `text:labels` | `Text(B) [text]` | | Out | `text:probabilities` | `Tensor(B) [text.confidence]` | ## Lineage - Paper: Wang et al., "Decoupled Attention Network for Text Recognition", AAAI 2020, arXiv:1912.10205 - Original code: - Original weights: - Training data: MJSynth (train), SynthText (train) ## Licenses - Code: MIT - Weights: MIT - Training data: unknown ## Notes - Weights converted from the original release (https://drive.google.com/drive/folders/1MK0WUH-ofIPT4ZNTbcb0sburatJyEF1X?usp=sharing) to TysirAI; outputs checked against the DeepTextRecognition (DTR) implementation. - Input range: the images are fed in \[0, 1\], as in the training code of the original repository (cfgs\_scene.py); the first DTR configuration normalized them to \[-1, 1\]. - The README of the original repository states: "The project is only free for academic research purposes." ## Fidelity Fidelity set: `fidelity`. | Output | atol | rtol | |---|---|---| | `text:labels` | 0 | 0 | | `text:probabilities` | 1e-05 | 0 |