All Bundles
ResNetSession
ResNet inference session for image classification. Performs ImageNet-style classification with softmax probability normalization. Example labels := ["tabby cat", "golden retriever", "sports car"]; session := ResNetSession->New("resnet50.onnx"); result := session->Inference(image_bytes, 224, 224, labels); "Top: {result->GetName()} ({result->GetConfidence()})"->PrintLine(); session->Close();
Operations
Close
Closes the session
method : public : Close() ~ NilInference
ResNet image inference
method : public : Inference(image:Byte[], height:Int, labels:String[]) ~ API.Onnx.ResNetResultParameters
| Name | Type | Description |
|---|
| image | Byte | width width |
| height | Int | image height |
|
| labels | String | classification labels |
New
Constructor.
New(model:String)Parameters
| Name | Type | Description |
|---|
| model | String | ResNet model path |
New
Constructor.
New(model:String, config:Map<String,String>)Parameters