# Inference

> Applies a .ocat model from a Train node to every frame (tiled, cached).

Applies a .ocat model from a Train node to every frame (tiled, cached). tile_size and overlap set the tiles (they blend over the overlap); mix blends the result with the input. Export writes TorchScript or ONNX.

| Node | Inference |
|---|---|
| Menu | AI › Inference |
| **Names in each format** | |
| .oink comp (JSON) | `"type": "OC_N_aiinference"` |
| .nk script | none: written as an Oink node |
| Python | `nuke.createNode("OC_N_aiinference")` |
| Assistant (MCP) | `create_node(type="Inference")` |
| Tab search | `inference` |

![Inference properties](/shots/nodes/aiinference@2x.webp)

## Inputs and outputs

| Port | Name | Type |
|---|---|---|
| input 0 | Source | image |
| output 0 | Image | image |

## Knobs

Panel tab **Aiinference**, in panel order.

| Knob | Label | Type | Default | Range / values | .nk knob | Description |
|---|---|---|---|---|---|---|
| `checkpoint` | model file | file |  |  |  | .ocat checkpoint written by a Train node |
| `mix` | mix | float | `1` | 0 to 1 |  |  |
| `tile_size` | tile | float | `1024` | 64 to 8192 (integer) |  | Tile size (px); tiles blend over the overlap |
| `overlap` | overlap | float | `64` | 0 to 512 (integer) |  |  |

### Other knobs (Python, .nk and the assistant; not on the panel)

| Knob | Label | Type | Default | Range / values | .nk knob | Description |
|---|---|---|---|---|---|---|
| `gl_color` | Viewer Controls Color | float ×3 | `0, 0, 0` | 0 to 1 |  |  |
| `postage_stamp_frame` | Static Frame | int | `1` | -2147483648 to 2147483647 |  |  |
| `lifetimeStart` | Lifetime Start | int | `0` | -2147483648 to 2147483647 |  |  |
| `lifetimeEnd` | Lifetime End | int | `100` | -2147483648 to 2147483647 |  |  |
| `useLifetime` | Use Lifetime | boolean | `false` |  |  |  |
| `cached` | Cached | boolean | `false` |  |  |  |
| `bookmark` | Bookmark | boolean | `false` |  |  |  |
| `dope_sheet` | Dope Sheet | boolean | `false` |  |  |  |
| `clone_group` | Clone Group | string |  |  |  |  |
| `link_source` | Link Source | string |  |  |  |  |
| `link_overrides` | Link Overrides | string |  |  |  |  |
| `split_views` | Split Views | string |  |  |  |  |
| `generation` | Generation | int | `0` | -2147483648 to 2147483647 |  |  |


---
Sources: opencomp_core/nodes/ai/aitrain.py, opencomp_electron/src/components/properties/knobSchema.ts, opencomp_core/nodes/help/aiinference.md
