ComfyUI Extension: SideBySide_Stereoscope

Authored by SamSeenX

Created

Updated

38 stars

Create immersive 3D stereoscopic images and videos! Transform your ComfyUI generations into stunning side-by-side 3D visuals for videos and image sequences. Powered by Depth-Anything-V2, no external depth maps needed. Perfect for VR, 3D displays, and cross-eyed viewing - no special glasses required!

Custom Nodes (1)

README

ComfyUI SS Stereoscope

License Platform

Transform any 2D image into immersive stereoscopic 3D content in ComfyUI.

The SideBySide Stereoscope Node is a cutting-edge 2D-to-3D conversion tool designed for ComfyUI. Powered by Depth-Anything-V2, it automatically creates high-quality depth maps and generates side-by-side (SBS) 3D images and videos perfect for VR headsets and 3D displays.

✨ Features

  • 🧠 AI-Powered Depth - Uses Depth-Anything-V2 for automatic, high-quality depth estimation.
  • šŸ‘“ Stereoscopic Modes - Supports Parallel and Cross-eyed viewing techniques.
  • šŸŽ„ Video Support - Full workflow for converting videos to 3D (upload, process, combine).
  • šŸŽ›ļø Fine Control - Adjust depth scale, blur radius, and depth inversion.
  • ⚔ Integrated Workflow - No external tools needed; handles everything within ComfyUI.
  • šŸš€ Performance Mode - Optional "HighSodium Optimization" for up to 4x faster processing.

šŸ“ø Demo

Workflow Example

šŸš€ Quick Start

Prerequisites

  • ComfyUI installed
  • Python >= 3.8

Installation

  1. Navigate to your custom nodes directory:
    cd ComfyUI/custom_nodes
    
  2. Clone the repository:
    git clone https://github.com/SamSeenX/ComfyUI_SSStereoscope.git
    
  3. Install dependencies:
    pip install -r ComfyUI_SSStereoscope/requirements.txt
    
  4. Restart ComfyUI.

(Note: The AI model will download automatically on first use.)

šŸ“– Documentation

Core Nodes

  • šŸ‘€ SBS V2: The main node. Input a 2D image, get a 3D SBS image + depth map.
    • depth_scale: Intensity of the 3D effect.
    • mode: Cross-eyed vs Parallel.
    • highsodium_optimization: Enable vectorized algorithm for faster processing (may produce slightly different results).
  • šŸ‘€ SBS Video Uploader: Converts input video to image sequence.
  • šŸ‘€ SBS Video Combiner: Merges processed frames back into a video.

Workflow Example

  1. Video Input: Use SBS Video Uploader to load a video.
  2. Process: Connect frames to SBS V2 node.
  3. Output: Connect results to SBS Video Combiner to save the 3D video.

šŸ—ļø Project Structure

ComfyUI_SSStereoscope/
ā”œā”€ā”€ sbs_v2.py            # Main logic
ā”œā”€ā”€ requirements.txt     # Dependencies
ā”œā”€ā”€ video_utils.py       # Video processing helpers
└── README.md

šŸ¤ Contributing

Contributions are welcome!

  1. Fork the repository
  2. Create your feature branch
  3. Commit your changes
  4. Push to the branch
  5. Open a Pull Request

Contributors

šŸ“ License

This project is licensed under the MIT License - see the LICENSE file for details.

ā˜• Support

If you find this project useful, please consider supporting me:

  • ⭐ Starring this repository
  • šŸ› Reporting issues
  • ā˜• Buy me a coffee

Created with ā¤ļø by SamSeen