textnet (image classification)
A convolutional backbone searched for text detection, here with an image classification head.
Image classification · 147 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Image classification
- Parameters
- 10.7M
- Operations
- 147
- Framework
- PyTorch
- Recurrent
- No
- Source
- transformers 5.18.0
- Name in source
- textnet:image-classification
- License
- Apache-2.0
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m10496
- Graph hash
- 0256c40065826ae12cafa72c83d692f071b3ba1cf02bd6ce1cb63483b8a42f6c
- Skeleton hash
- fb7a80127c37b9e61a33981956b9ec79e4517cb9d2345a8473b0731a7a3c8094
- Architecture hash
- 94f8fe4f0e05fd1c8487e09f84370729c2d4c9076ebe9b6978bb478338b56ce9
- Diagram SHA-256
- fe2a3969d0a37e716e5cd66cab3c03921112bba68f7bcaf9db248250a58d4cf1
- TorchLens version
- 2.35.3
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
How this diagram was made
transformers.AutoModelForImageClassification.from_config()
What it is
TextNet is a vision backbone designed for text detection. It was proposed in the paper FAST: Faster Arbitrarily-Shaped Text Detector with Minimalist Kernel Representation by Zhe Chen, Jiahao Wang, Wenhai Wang, Guo Chen, Enze Xie, Ping Luo and Tong Lu. The architecture is the result of a neural architecture search (NAS) over backbones, with the text detection task as the reward function.
Each stage of the backbone consists of a stride-2 convolution and searchable blocks. The search draws each layer from a candidate set of conv3×3, conv1×3, conv3×1 and identity. The 1×3 and 3×1 convolutions have asymmetric kernels and oriented structure priors, which may help with text lines that are rotated or have extreme aspect ratios. TextNet is the backbone of FAST, and this model adds an image classification head so that an image classifier can be trained on top of pre-trained TextNet weights.
Key idea. TextNet is a text detection backbone found by neural architecture search, built from stride-2 convolutions and searchable blocks chosen among conv3×3, conv1×3, conv3×1 and identity layers.
- textnet
- text detection backbone
- vision backbone
- neural architecture search
- nas backbone
- image classification
- textnetforimageclassification
AI-written summary, based on the model's documentation and checked automatically against it; not reviewed by a person. Corrections welcome.