# AIUpscale

> AI super-resolution with float-correct encoding.

| Node | AIUpscale |
|---|---|
| Menu | AI › AIUpscale |
| **Names in each format** | |
| .oink comp (JSON) | `"type": "OC_N_aiupscale"` |
| .nk script | none: written as an Oink node |
| Python | `nuke.createNode("OC_N_aiupscale")` |
| Assistant (MCP) | `create_node(type="AIUpscale")` |
| Tab search | `aiupscale`, or its initials `aiu` |

![AIUpscale properties](/shots/nodes/aiupscale@2x.webp)

## Inputs and outputs

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

## Knobs

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

| Knob | Label | Type | Default | Range / values | .nk knob | Description |
|---|---|---|---|---|---|---|
| `model` | model | menu | `AUTO` | AUTO (Auto (by free GPU memory)), REALESRGAN (Real-ESRGAN (fast)), SEEDVR2 (SeedVR2 3B (video)) |  |  |
| `scale` | scale | menu | `2` | 2 (2x), 4 (4x) |  |  |
| `tile` | tile | float | `512` | 0 to 8192 (integer) |  | Tile size in input pixels (0 = whole frame) |
| `temporal_window` | temporal window | float | `5` | 1 to 21 (integer) |  | Frames seen together by video models (4n+1) |
| `detail` | detail | float | `1` | 0 to 1 |  | 0 = plain Lanczos (fidelity), 1 = full model detail |
| `preserve_highlights` | preserve highlights | bool | `true` |  |  | Model sees 0..1 only; values above 1 and below 0 ride along as a Lanczos residual |
| `encoding` | encoding | menu | `REINHARD` | REINHARD (reinhard), LOG (log), SRGB (srgb) |  |  |
| `exposure` | exposure | float | `0` | -6 to 6 |  | Stops before encoding (fixed per shot), removed after |
| `peak` | peak | float | `16` | 1 to 1000 |  | Top of the encoded range when highlights are not preserved |
| `color_correction` | color correction | menu | `LAB` | LAB (lab), WAVELET (wavelet), NONE (none) |  |  |

### 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 |  |  |  |  |
| `seed` | Seed | int | `42` | 0 to 2147483647 |  | SeedVR2 noise seed (fixed: the same seed gives the same pixels, S15) |


---
Sources: opencomp_core/nodes/ai/aiupscale.py, opencomp_electron/src/components/properties/knobSchema.ts
