Table of Contents

Class CameraPoseEncoder<T>

Namespace
AiDotNet.Diffusion.Models
Assembly
AiDotNet.dll

Encodes camera pose (polar, azimuth, radius) into embeddings.

public class CameraPoseEncoder<T>

Type Parameters

T

The numeric type.

Inheritance
CameraPoseEncoder<T>
Inherited Members

Constructors

CameraPoseEncoder(int, int?)

Initializes a new CameraPoseEncoder.

public CameraPoseEncoder(int embedDim = 768, int? seed = null)

Parameters

embedDim int
seed int?

Properties

ParameterCount

Gets the number of parameters.

public int ParameterCount { get; }

Property Value

int

Methods

Encode(double, double, double)

Encodes camera pose into an embedding.

public Tensor<T> Encode(double polarAngle, double azimuthAngle, double radius)

Parameters

polarAngle double

Polar angle in degrees.

azimuthAngle double

Azimuth angle in degrees.

radius double

Relative radius.

Returns

Tensor<T>

Pose embedding tensor.

GetParameters()

Gets all parameters.

public Vector<T> GetParameters()

Returns

Vector<T>

SetParameters(Vector<T>)

Sets all parameters.

public void SetParameters(Vector<T> parameters)

Parameters

parameters Vector<T>