Nodes
Inference
Inference: applies a .ocat model from a Train node to every frame (tiled, cached).
Inference: 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 (Nuke CatFileCreator makes a .cat from it) or ONNX (Flame, Nuke 16+).
| Node | Inference |
|---|---|
| Type id | OC_N_aiinference |
| Menu | AI › Inference |
| Nuke class | none: saved in .nk files as an Oink node |
| Code | opencomp_core/nodes/ai/aitrain.py |

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 | Nuke 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 | Nuke 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 |
Nuke equivalent
No Nuke class. In a .nk file this node is written as an Oink node that Nuke will not recognise.