FMLDeformerInputInfo

The neural network input information.

Choose your operating system:

Windows

macOS

Linux

References

Module

MLDeformer

Header

/Engine/Plugins/Experimental/MLDeformer/Source/MLDeformer/Public/MLDeformerInputInfo.h

Include

#include "MLDeformerInputInfo.h"

Syntax

USTRUCT()
struct FMLDeformerInputInfo

Remarks

The neural network input information. This contains arrays of names for things such as bones and morph targets. Knowing what bones etc are used as inputs, and in what order, helps us feeding the data during inference. It can also help us detect issues, for example when the character we apply the deformer to is missing any of those bones.

Functions

Name Description

Public function Const

int32

 

CalcNumNeuralNetInputs()

Calculate how many inputs this input info generates for the neural network.

Public function Const

void

 

ExtractBoneRotations

(
    USkeletalMeshComponent* SkelMe...,
    TArray< float >& OutRotations
)

Extract bone space rotations, as a float array.

Public function Const

void

 

ExtractCurveValues

(
    USkeletalMeshComponent* SkelMe...,
    TArray< float >& OutValues
)

Extract the curve values for all curves we're interested in.

Public function Const

FString

 

GenerateCompatibilityErrorString

(
    USkeletalMesh* SkeletalMesh
)

Get the compatibility error report.

Public function Const

const FName

 

GetBoneName

(
    int32 Index
)

Get the bone name as an FName, for a given bone we included during training.

Public function Const

const FStrin...

 

GetBoneNameString

(
    int32 Index
)

Get the bone name as a string, for a given bone we included during training.

Public function Const

const FName

 

GetCurveName

(
    int32 Index
)

Get the curve name as an FName, for a given curve we included during training.

Public function Const

const FStrin...

 

GetCurveNameString

(
    int32 Index
)

Get the curve name as a string, for a given bone we included during training.

Public function Const

int32

 

GetNumBaseMeshVertices()

Get the number of imported vertices in the base mesh.

Public function Const

int32

 

GetNumBones()

Get the number of bones that we trained on.

Public function Const

int32

 

GetNumCurves()

Get the number of curves that we trained on.

Public function Const

int32

 

GetNumTargetMeshVertices()

Get the number of imported vertices in the target mesh.

Public function

void

 

Init

(
    const FMLDeformerInputInfoInitSetti...
)

Initialize the inputs based on a skeletal mesh.

Public function Const

bool

 

IsCompatible

(
    USkeletalMesh* SkeletalMesh
)

Check whether the current inputs are compatible with a given skeletal mesh.

Public function Const

bool

 

IsEmpty()

Check whether we have any training inputs or not.

Public function

void

 

UpdateFNames()

Update the FName arrays based on the name string arrays.