ABCNetOptions<T>
Options & Configuration · AiDotNet.Models.Options
Configuration for ABCNet.
Inheritance: ModelOptions → NeuralNetworkOptions → ABCNetOptions<T>
For Beginners
These settings control how ABCNet describes the shape of curved text (with a smooth curve along its top and bottom edges), how large a straightened image it cuts out of each piece of text, and how many characters it can tell apart.
How It Works
Defaults follow Yuliang Liu, Hao Chen, Chunhua Shen, Tong He, Lianwen Jin and Liangwei Wang, “ABCNet: Real-time Scene Text Spotting with Adaptive Bezier-Curve Network” (CVPR 2020 oral, arXiv:2002.10200): a cubic Bezier boundary per edge, BezierAlign to 8x32, and a deliberately lightweight recognition branch.
Constructors
| Constructor | Summary |
|---|---|
ABCNetOptions() |
Initializes a new instance with the paper’s defaults. |
ABCNetOptions(ABCNetOptions<T> other) |
Initializes a new instance by copying from another instance. |
Properties
| Property | Summary |
|---|---|
double ConfidenceThreshold { get; set; } |
Gets or sets the score above which a feature-map position is treated as a text instance. |
double LearningRate { get; set; } |
Gets or sets the learning rate used when the model builds its own optimizer. |
double Momentum { get; set; } |
Momentum coefficient for the default SGD optimizer. |
int BezierSampleHeight { get; set; } |
Gets or sets the rectified height BezierAlign produces. |
int BezierSampleWidth { get; set; } |
Gets or sets the rectified width BezierAlign produces. |
int FeatureChannels { get; set; } |
Gets or sets the shared feature width fed to both heads. |
int FeatureStride { get; set; } |
Gets or sets the total downsampling from image to detection feature map. |
int InputChannels { get; set; } |
Gets or sets the input channel count. |
int InputHeight { get; set; } |
Gets or sets the input image height. |
int InputWidth { get; set; } |
Gets or sets the input image width. |
int MaxInstances { get; set; } |
Gets or sets the cap on instances recognized per image. |
int NumCharacterClasses { get; set; } |
Gets or sets the number of character classes INCLUDING the CTC blank. |
int RecognitionHiddenSize { get; set; } |
Gets or sets the recurrent width of the recognition branch. |
Methods
| Method | Summary |
|---|---|
void Validate() |
Validates the configuration, throwing on values that cannot describe a working model. |