Table of Contents

Class ClipModelConfig

Namespace
AiDotNet.NeuralNetworks
Assembly
AiDotNet.dll

Configuration for a CLIP model variant.

public class ClipModelConfig
Inheritance
ClipModelConfig
Inherited Members

Properties

EmbeddingDimension

The embedding dimension (e.g., 512 for ViT-B, 768 for ViT-L).

public int EmbeddingDimension { get; set; }

Property Value

int

ImageEncoderFile

The filename of the image encoder ONNX model.

public string ImageEncoderFile { get; set; }

Property Value

string

ImageSize

The expected image size (e.g., 224 or 336).

public int ImageSize { get; set; }

Property Value

int

MaxSequenceLength

The maximum text sequence length (typically 77 for CLIP).

public int MaxSequenceLength { get; set; }

Property Value

int

TextEncoderFile

The filename of the text encoder ONNX model.

public string TextEncoderFile { get; set; }

Property Value

string