Blip2Options
Options & Configuration · AiDotNet.NeuralNetworks.Options
Configuration options for the Blip2NeuralNetwork.
Inheritance: ModelOptions → NeuralNetworkOptions → ModelHyperparameterOptions → VisionLanguageInputOptions → VisionLanguageModelOptions → Blip2Options
Constructors
| Constructor | Summary |
|---|---|
Blip2Options() |
Initializes a new instance of the Blip2Options class carrying this model’s shipped defaults. |
Blip2Options(Blip2Options other) |
Copies every BLIP-2 setting and its inherited configuration. |
Properties
| Property | Summary |
|---|---|
LanguageModelBackbone LanguageModelBackbone { get; set; } |
Gets or sets the language model backbone. |
int LmHiddenDim { get; set; } |
Gets or sets the native language-model feature width used after query-to-language projection. |
int NumLmDecoderLayers { get; set; } |
Gets or sets the number of native language-model decoder blocks. |
int NumQformerLayers { get; set; } |
Gets or sets the number of native query-transformer blocks. |
int NumQueryTokens { get; set; } |
Gets or sets the number of learned visual-query tokens allocated by the native query transformer. |
int QformerHiddenDim { get; set; } |
Gets or sets the feature width of the native query transformer that extracts image information. |
Methods
| Method | Summary |
|---|---|
void Validate() |
Throws if a value this model requires has been left unset or is not positive. |