ComfyUI Node
Stereo Image Node
A ComfyUI node in sd with 16 inputs and 4 outputs.
Stereo Image Node
- image
- depth_map
- stereoscope
- extended_depthmap_left
- extended_depthmap_right
- no_fill_imperfect_mask
◄modes▾►
◄fill_techniqueGPU Warp (Fast)►
◄divergence4.50►
◄separation0.00►
◄stereo_balance0.00►
◄convergence_point0.50►
◄stereo_offset_exponent1.0►
◄depth_edge_blurtrue►
◄extend_radius5►
◄extend_edge_threshold10.0►
◄extend_fade_distance5►
◄skip_flat_depthfalse►
◄flat_depth_threshold1.5►
◄batch_size12►
Categorysd
Inputs (16)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| depth_map | IMAGE | — | |
| modes | COMBO | 5 options: left-right, right-left, top-bottom, bottom-top, red-cyan-anaglyph | |
| fill_technique | COMBO | GPU Warp (Fast) | The technique used to fill in disoccluded areas. 'GPU Warp (Fast)' uses a fast GPU-based warping method. 'No fill' leaves disoccluded areas black. 'No fill - Reverse projection' attempts to fill using reverse projection but may have artifacts. 'Imperfect fill - Hybrid Edge' uses a hybrid edge-based method that can produce better results but may still have imperfections. The various 'Fill' options use different algorithms to attempt to fill in missing areas, with varying quality and performance characteristics. |
| divergenceopt | FLOAT | 4.500.05–15 | The strength of the stereo effect. Higher values create a more pronounced 3D effect but may cause discomfort if too high. |
| separationopt | FLOAT | 0.00-5–5 | The separation of the stereo pairs. Positive values increase separation, while negative values decrease it. Adjusting this can help fine-tune the 3D effect and reduce ghosting. |
| stereo_balanceopt | FLOAT | 0.00-0.95–0.95 | Adjusts the balance between the left and right images. Positive values favor the left image, while negative values favor the right image. This can help correct for any imbalance in the stereo effect. |
| convergence_pointopt | FLOAT | 0.500–1 | Controls the depth at which the stereo effect converges. 0.0 means convergence at the back, 1.0 means convergence at the front. |
| stereo_offset_exponentopt | FLOAT | 1.00.1–2 | Controls the curve of the depth mapping. Higher values create a more pronounced effect at closer depths, while lower values create a more uniform effect across all depths. |
| depth_edge_bluropt | BOOLEAN | true | Blur the depth map at foreground edges so the warp covers small silhouette gaps. Mesh-warp path only. |
| extend_radiusopt | INT | 50–30 | Max reach of silhouette extension (px). 0 disables. |
| extend_edge_thresholdopt | FLOAT | 10.00–100 | Min edge steepness to trigger extension (% depth jump per pixel). Higher = only crisp edges. |
| extend_fade_distanceopt | INT | 51–50 | Distance (px) over which the extended foreground tapers to background. |
| skip_flat_depthopt | BOOLEAN | false | When enabled, frames whose depth maps have negligible gradients and tiny pixel displacement are skipped — the original frame is duplicated instead of warped. Useful for video batches containing fades or near-uniform depth frames. Controlled by flat_depth_threshold. |
| flat_depth_thresholdopt | FLOAT | 1.50.1–10 | Maximum effective pixel displacement (in pixels) below which a frame is considered flat and skipped when skip_flat_depth is enabled. Only skips if there are also no detectable depth edges. Raise this to skip more frames; lower it to be more conservative. |
| batch_sizeopt | INT | 121–64 | Number of frames to process before clearing GPU memory. Lower values use less memory but may be slower. |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| stereoscope | IMAGE | — |
| extended_depthmap_left | IMAGE | — |
| extended_depthmap_right | IMAGE | — |
| no_fill_imperfect_mask | MASK | — |