Class MultiViewUNet<T>
Multi-view aware U-Net for MVDream.
public class MultiViewUNet<T>
Type Parameters
TNumeric type.
- Inheritance
-
MultiViewUNet<T>
- Inherited Members
Constructors
MultiViewUNet(int, int, int, int, int, int?)
Creates a new multi-view U-Net.
public MultiViewUNet(int inputChannels, int outputChannels, int baseChannels, int numViews, int contextDim, int? seed = null)
Parameters
Properties
BaseUNet
Gets the base UNet for interface compatibility.
public UNetNoisePredictor<T> BaseUNet { get; }
Property Value
ParameterCount
Gets parameter count.
public int ParameterCount { get; }
Property Value
SupportsCFG
Gets whether classifier-free guidance is supported.
public bool SupportsCFG { get; }
Property Value
Methods
GetParameters()
Gets parameters.
public Vector<T> GetParameters()
Returns
- Vector<T>
PredictNoise(Tensor<T>, int, Tensor<T>?)
Predicts noise for a single view.
public Tensor<T> PredictNoise(Tensor<T> input, int timestep, Tensor<T>? conditioning = null)
Parameters
inputTensor<T>timestepintconditioningTensor<T>
Returns
- Tensor<T>
PredictNoiseMultiView(Tensor<T>, int, Tensor<T>[])
Predicts noise for multiple views with cross-view attention.
public Tensor<T> PredictNoiseMultiView(Tensor<T> multiViewInput, int timestep, Tensor<T>[] viewConditions)
Parameters
multiViewInputTensor<T>timestepintviewConditionsTensor<T>[]
Returns
- Tensor<T>
SetParameters(Vector<T>)
Sets parameters.
public void SetParameters(Vector<T> parameters)
Parameters
parametersVector<T>