Describes the current state of the MLComponent model. For more information, see the MLComponent Scripting guide.

//@input Component.MLComponent mlComponent
if(script.mlComponent.state == MachineLearning.ModelState.Idle) {
script.mlComponent.runScheduled(true, MachineLearning.FrameTiming.Update, MachineLearning.FrameTiming.OnRender);
}

Enumeration Members

Enumeration Members

Idle: number

Model is built and ready to run

Loading: number

Model is loading

NotReady: number

Model is not ready to run

Running: number

Model is running