Two simple nodes for stereoscopic image generation. Nodes: Stereo Image Node - a basic port from the Automatic1111 stereo script in thygate/stable-diffusion-webui-depthmap-script, LazyStereo - a naïve stereo image generator
In DeoVR, set "Enable remote control" to true in the developer settings.
To launch DeoVR from this node, you must configure the path to DeoVR.exe in the configuration file:
ComfyUI\custom_nodes\comfystereo\config.json
"C:\\Program Files (x86)\\Steam\\steamapps\\common\\DeoVR Video Player\\DeoVR.exe"
New functionality includes edge-aware and direction-aware blurring of the depth map, additional interpolation methods, and stereo distortion improvements.
depth_map_threshhold
sets the depth map gradient sharpness application cutoff. Low values will apply the blur to more shallow gradients, blurring the depth map more broadly (which can negativbely affect the end result). Higher values isolates the steeper gradients.'depth_map_blur' = True
.separation
)divergence
)stereo_balance
)0.0
= Even distributionstereo_offset_exponent
)Some fill methods are faster, while others preserve structure better.
| Method | Description | |---------------------------------------------|-------------| | No Fill | Shifts pixels based on depth without filling gaps. | | No Fill - Reverse Projection | Works backward to assign pixel values but leaves gaps. | | Imperfect Fill - Hybrid Edge | Mixes "Polylines" and "Reverse Projection" for better structure. | | Fill - Naive | Fills gaps using nearest pixels (causes stretching). | | Fill - Naive Interpolating | Uses interpolation to smooth gaps. | | Fill - Polylines Soft | Uses polylines with soft edges to maintain structure. | | Fill - Polylines Sharp | Similar to "Soft" but with sharper transitions. | | Fill - Post-Fill | "No fill" + edge-aware interpolation. | | Fill - Reverse Projection + Post-Fill | "Reverse Projection" + directional interpolation. | | Fill - Hybrid Edge with Fill | Enhanced "Hybrid Edge" with adaptive smoothing. |
Use ComfyUI-Manager for quick installation.
Clone the repository and place it in ComfyUI's custom_nodes
directory:
git clone https://github.com/Dobidop/ComfyStereo.git
pip install -r requirements.txt