Roi Mulia
Roi Mulia

Reputation: 5896

CoreML MLModel prediction progress

We are trying to understand how to visualize CoreML MLModel .predict "waiting time" for our users, UI-wise.

Is there any way to estimate the time or get the actual progress of the MLModel prediction?

Upvotes: 0

Views: 244

Answers (1)

Matthijs Hollemans
Matthijs Hollemans

Reputation: 7892

AFAIK there is no API for this.

If your model takes so long that users have to wait for it, it can be argued the model is too large.

Assuming that the model doesn't take 10s of seconds, putting up an indeterminate waiting animation is the best you can do.

Upvotes: 1

Related Questions