Publish v1
Browse filesFiles changed (8)
- README.mdAdded+70
- config.jsonAdded+159
- fidelity/expected.jsonAdded+20
- fidelity/inputs.safetensorsAdded+3
- manifest.jsonAdded+12
- model.safetensorsAdded+3
- tysirai.jsonAdded+19
- tysirai_card.yamlAdded+45
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970---datasets:- MJSynth- SynthTextlibrary_name: tysirailicense: unknowntags:- tysirai- hosted- str/recognitiontysirai: name: tysirai/ResNet-TEncoder-SRN-STR version: v1 kind: hosted task: str/recognition licenses: code: unknown weights: unknown training_data: unknown---
<!-- Generated from tysirai_card.yaml by TysirAI. Do not edit: edit the card. -->
# tysirai/ResNet-TEncoder-SRN-STR v1
A `hosted` model for the task `str/recognition`, published by TysirAI.
```pythonimport tysirai
model = tysirai.load("hf://tysirai/ResNet-TEncoder-SRN-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
- Paper: Yu et al., "Towards Accurate Scene Text Recognition with Semantic Reasoning Networks", CVPR 2020, arXiv:2003.12294- Original code: <https://github.com/chenjun2hao/SRN.pytorch>- Original weights: <https://pan.baidu.com/s/1E5xeajIl_fvtrGWyrE9CeA>- Training data: MJSynth (train), SynthText (train)
## Licenses
- Code: unknown- Weights: unknown- Training data: unknown
## Notes
- Weights converted from the original release (https://pan.baidu.com/s/1E5xeajIl\_fvtrGWyrE9CeA) to TysirAI; outputs checked against the DeepTextRecognition (DTR) implementation.- Input range: the images are normalized to \[-1, 1\], as in clovaai/deep-text-recognition-benchmark, whose code the README of the original repository says it borrowed; the first DTR configuration fed them in \[0, 1\].- The original repository has no license. The weights are shared with credit to its author, and will be removed at the author's request.
## Fidelity
Fidelity set: `fidelity`.
| Output | atol | rtol ||---|---|---|| `text:labels` | 0 | 0 |123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159{ "schema": "graph/1", "task": "str/recognition", "inputs": { "images": "image" }, "nodes": { "avg_pool": { "type": "str.AdaptiveAvgPoolModule@1", "args": { "output_size": [ null, 1 ] }, "inputs": { "x": "permute:out" }, "build": "class" }, "feature_extraction": { "type": "str.ResNetModel@1", "args": { "input_channel": 1, "output_channel": 512, "variant": "DTRB" }, "inputs": { "images": "processing:pixels" }, "build": "class" }, "permute": { "type": "str.PermuteModule@1", "args": { "dims": [ 0, 3, 1, 2 ] }, "inputs": { "x": "feature_extraction:features" }, "build": "class" }, "prediction": { "type": "str.SRNDecoder@1", "args": { "N_max_character": 26, "n_class": 38, "n_position": 26 }, "inputs": { "features": "sequence_modeling:features" }, "build": "class" }, "processing": { "type": "str.ImageProcessor@1", "args": { "channels_size": 1, "image_size": [ 32, 100 ], "normalize": [ 0.5, 0.5 ] }, "inputs": { "images": "images" }, "build": "class" }, "sequence_modeling": { "type": "str.TransformerEncoderv1@1", "args": { "d_inner": 1024, "d_k": 64, "d_model": 512, "d_v": 64, "dropout": 0.1, "n_head": 8, "n_layers": 2, "n_position": 26 }, "inputs": { "features": "squeeze:out" }, "build": "class" }, "squeeze": { "type": "str.SqueezeModule@1", "args": { "dim": 3 }, "inputs": { "x": "avg_pool:out" }, "build": "class" }, "tokenizer": { "type": "str.SRNTokenizer@1", "args": { "characters": [ "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z" ], "max_length": 25, "pad_token": 36 }, "inputs": { "logits": "prediction:logits" }, "build": "class" } }, "outputs": { "text:labels": "tokenizer:labels" }, "params": {}}1234567891011121314151617181920{ "text:labels": [ "coffee", "street", "house", "2026", "market", "london", "open", "42", "coffee", "street", "house", "2026", "market", "london", "open", "42" ]}123version https://git-lfs.github.com/spec/v1oid sha256:05b6cf15dcee85d6745516e0c7a69763c2b46274c229a6b8cc71a12a1594839esize 1474648123456789101112{ "version": "v1", "files": { "config.json": "1fd270381ee758978615da66394653c0ee40c3fbcab0c5292a2919390a57d57f", "fidelity/expected.json": "f447eaba5113ee86d19577f1d7a08a630b377b7e8c6fcd091e06f13628924459", "fidelity/inputs.safetensors": "05b6cf15dcee85d6745516e0c7a69763c2b46274c229a6b8cc71a12a1594839e", "model.safetensors": "db9151eee346ffe84a0e67e1ba89922e349cc7c2878d0e86867d4dfd86204366", "tysirai.json": "e48f7c8351bd891d3befe2608a7eeb102e901d3c4a91ff199e94594be0f864f4", "tysirai_card.yaml": "10e65f50414520e2ef9506024f4b0b0b698045c449257a4af5f669ce430796e6" }, "published": "2026-12-02T22:24:50+00:00"}123version https://git-lfs.github.com/spec/v1oid sha256:db9151eee346ffe84a0e67e1ba89922e349cc7c2878d0e86867d4dfd86204366size 22924713612345678910111213141516171819{ "framework": "tysirai", "framework_version": "0.0.1", "schema": "graph/1", "nodes": [ "str.AdaptiveAvgPoolModule@1", "str.ImageProcessor@1", "str.PermuteModule@1", "str.ResNetModel@1", "str.SRNDecoder@1", "str.SRNTokenizer@1", "str.SqueezeModule@1", "str.TransformerEncoderv1@1" ], "files": { "config.json": "1fd270381ee758978615da66394653c0ee40c3fbcab0c5292a2919390a57d57f", "model.safetensors": "db9151eee346ffe84a0e67e1ba89922e349cc7c2878d0e86867d4dfd86204366" }}123456789101112131415161718192021222324252627282930313233343536373839404142434445card: model-card/1name: tysirai/ResNet-TEncoder-SRN-STRversion: v1kind: hostedtask: str/recognitioninterface: inputs: images: image outputs: text:labels: Text(B) [text] params: {}lineage: paper: Yu et al., "Towards Accurate Scene Text Recognition with Semantic Reasoning Networks", CVPR 2020, arXiv:2003.12294 original_code: https://github.com/chenjun2hao/SRN.pytorch original_weights: https://pan.baidu.com/s/1E5xeajIl_fvtrGWyrE9CeA training_data: - dataset: MJSynth role: train - dataset: SynthText role: trainlicenses: code: unknown weights: unknown training_data: unknownfiles: config.json: 1fd270381ee758978615da66394653c0ee40c3fbcab0c5292a2919390a57d57f fidelity/expected.json: f447eaba5113ee86d19577f1d7a08a630b377b7e8c6fcd091e06f13628924459 fidelity/inputs.safetensors: 05b6cf15dcee85d6745516e0c7a69763c2b46274c229a6b8cc71a12a1594839e model.safetensors: db9151eee346ffe84a0e67e1ba89922e349cc7c2878d0e86867d4dfd86204366 tysirai.json: e48f7c8351bd891d3befe2608a7eeb102e901d3c4a91ff199e94594be0f864f4fidelity: set: fidelity tolerances: text:labels: atol: 0.0 rtol: 0.0notes:- Weights converted from the original release (https://pan.baidu.com/s/1E5xeajIl_fvtrGWyrE9CeA) to TysirAI; outputs checked against the DeepTextRecognition (DTR) implementation.- 'Input range: the images are normalized to [-1, 1], as in clovaai/deep-text-recognition-benchmark, whose code the README of the original repository says it borrowed; the first DTR configuration fed them in [0, 1].'- The original repository has no license. The weights are shared with credit to its author, and will be removed at the author's request.README.mdAdded+70
config.jsonAdded+159
fidelity/expected.jsonAdded+20
fidelity/inputs.safetensorsAdded+3
manifest.jsonAdded+12
model.safetensorsAdded+3
tysirai.jsonAdded+19
tysirai_card.yamlAdded+45