ImageProjector<T>

Models & Types · AiDotNet.Diffusion.Control

Projects image features to text embedding space.

Implements: IParameterSource<T>

Constructors

Constructor Summary
ImageProjector(int inputDim, int outputDim, int numTokens, int? seed) Initializes a new ImageProjector.

Properties

Property Summary
long ParameterCount { get; } Number of trainable parameters across the projection + token-expansion layers.

Methods

Method Summary
Tensor<T> Project(Tensor<T> imageFeatures) Projects image features to IP embedding.
Vector<T> GetParameters() Gets all parameters.
void SetParameters(Vector<T> parameters) Sets all parameters.