Class ModelLoader
Syntax
public static class ModelLoader
Methods
Load(NNModel, Boolean)
Return an object oriented representation (aka: Model
) of a neural network from a binary representation of type NNModel
.
By default details are logged to the console, set verbose
to false to load silently.
Declaration
public static Model Load(NNModel model, bool verbose = true)
Parameters
Returns
Load(Byte[], Boolean)
Return an object oriented representation (aka: Model
) of a neural network from a byte[] array.
By default details are logged to the console, set verbose to false to load silently.
Declaration
public static Model Load(byte[] stream, bool verbose = true)
Parameters
Returns
Load(String, Boolean)
Return an object oriented representation (aka: Model
) of a neural network from a .bc
file.
By default details are logged to the console, set verbose to false to load silently.
Declaration
public static Model Load(string filepath, bool verbose = true)
Parameters
Returns
LoadFromStreamingAssets(String, Boolean)
Return an object oriented representation (aka: Model
) of a neural network from a .bc
file from the the streaming asset folder.
By default details are logged to the console, set verbose to false to load silently.
Declaration
public static Model LoadFromStreamingAssets(string filename, bool verbose = true)
Parameters
Returns