We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
using SiaNet; using SiaNet.Application; using SiaNet.Common;
GlobalParameters.Device = CNTK.DeviceDescriptor.CPUDevice;
Logging.OnWriteLog += Logging_OnWriteLog;
string imagePath = "path-to-jpeg-or-png-image"; ImageNet app = new ImageNet(ImageNetModel.ResNet50); app.LoadModel();
var predictions = app.Predict(imagePath); foreach (var item in predictions) { Console.WriteLine("Category: {0}, Score: {1}", item.Name, item.Score); }
using SiaNet.Application; using SiaNet.Common;
string imagePath = "path-to-jpeg-or-png-image"; Cifar10 app = new Cifar10(Cifar10Model.ResNet110); app.LoadModel();
private static void Logging_OnWriteLog(string message) { Console.WriteLine("Log: " + message); ; }