cv_show_predictions
Runs inference or visualization code on the GPU runtime and displays the saved prediction image inline. Use it to inspect model outputs such as boxes, masks, Grad-CAM, or batch grids.
Instructions
Run inference/visualization code on the runtime and show the saved image inline.
inference_code runs on the runtime and should save its visualization
(predictions, bounding boxes, masks, Grad-CAM, a batch grid…) to the path in the
injected variable OUT. Example last line: plt.savefig(OUT) or
cv2.imwrite(OUT, canvas).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"inference_code": "<inference_code>"
},
"name": "cv_show_predictions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| out | No | preds.png | |
| inference_code | Yes |