Table of Contents

Class CameraEmbedding<T>

Namespace
AiDotNet.Diffusion.Models
Assembly
AiDotNet.dll

Camera position embedding for view conditioning.

public class CameraEmbedding<T>

Type Parameters

T

Numeric type.

Inheritance
CameraEmbedding<T>
Inherited Members

Constructors

CameraEmbedding(int, int?)

Creates camera embedding.

public CameraEmbedding(int embeddingDim, int? seed = null)

Parameters

embeddingDim int
seed int?

Properties

ParameterCount

Gets parameter count.

public int ParameterCount { get; }

Property Value

int

Methods

Embed(double, double, double)

Embeds camera position.

public Tensor<T> Embed(double azimuth, double elevation, double radius)

Parameters

azimuth double
elevation double
radius double

Returns

Tensor<T>

GetParameters()

Gets parameters.

public Vector<T> GetParameters()

Returns

Vector<T>

SetParameters(Vector<T>)

Sets parameters.

public void SetParameters(Vector<T> parameters)

Parameters

parameters Vector<T>