From cc0488be081629370eb09f54a0c87094b79c0975 Mon Sep 17 00:00:00 2001 From: Dobidop <67412288+Dobidop@users.noreply.github.com> Date: Tue, 25 Nov 2025 22:13:09 +0100 Subject: [PATCH 1/2] Update pyproject.toml for v2.0.0 with optional dependencies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changes: - Bump version to 2.0.0 to reflect major feature additions - Update description to reflect comprehensive stereo toolkit - Add optional-dependencies sections: - [vr] for PyOpenXR VR viewing - [ai] for StereoDiffusion AI generation - [all] for complete installation Users can now install with: pip install -e . # Base only pip install -e ".[vr]" # Base + VR viewing pip install -e ".[ai]" # Base + AI stereo pip install -e ".[all]" # Everything 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- pyproject.toml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 1eeb8f3..172305d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,10 +1,15 @@ [project] name = "comfystereo" -description = "A simple node for stereoscopic image generation. Nodes: Stereo Image Node - a basic port from the Automatic1111 stereo script with som extra features added, such as edge and direction aware blurring of the depth map. DeoVR View - A node for launching and viewing images and videos in DeoVR. See readme for more details and setup of autostart of DeoVR" -version = "1.2.2" +description = "Comprehensive stereoscopic 3D toolkit for ComfyUI combining depth-based stereo generation with GPU acceleration, native VR viewing via PyOpenXR, and AI-powered StereoDiffusion. Supports 6+ nodes for stereo conversion, VR headset viewing, and diffusion model stereo generation." +version = "2.0.0" license = {file = "LICENSE"} dependencies = ["torch", "numpy", "Pillow", "opencv-python", "numba", "scipy", "psutil"] +[project.optional-dependencies] +vr = ["pyopenxr>=1.0.0", "PyOpenGL>=3.1.0", "PyOpenGL_accelerate>=3.1.0", "glfw>=2.0.0", "pygame>=2.0.0"] +ai = ["diffusers>=0.21.0", "transformers", "accelerate", "einops", "tqdm", "scikit-image"] +all = ["pyopenxr>=1.0.0", "PyOpenGL>=3.1.0", "PyOpenGL_accelerate>=3.1.0", "glfw>=2.0.0", "pygame>=2.0.0", "diffusers>=0.21.0", "transformers", "accelerate", "einops", "tqdm", "scikit-image"] + [project.urls] Repository = "https://github.com/Dobidop/ComfyStereo" # Used by Comfy Registry https://comfyregistry.org From 41ba85c95cdb14305c2a584c002233e4bce5e0f2 Mon Sep 17 00:00:00 2001 From: Dobidop <67412288+Dobidop@users.noreply.github.com> Date: Tue, 25 Nov 2025 22:13:35 +0100 Subject: [PATCH 2/2] Add pip optional dependencies installation instructions to README MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update installation section to show both traditional requirements.txt method and modern pip optional dependencies approach. Users can now choose between: - pip install -e ".[vr]" for VR viewing - pip install -e ".[ai]" for AI stereo generation - pip install -e ".[all]" for everything This provides a cleaner installation experience aligned with Python packaging best practices. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- README.md | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e541897..e80b863 100644 --- a/README.md +++ b/README.md @@ -43,12 +43,33 @@ A comprehensive stereoscopic 3D toolkit for ComfyUI that combines three powerful ```bash cd ComfyUI/custom_nodes/ git clone https://github.com/Dobidop/ComfyStereo.git +cd ComfyStereo ``` -2. Install core dependencies: +2. Install dependencies (choose one): + +**Option A: Using requirements.txt (traditional)** ```bash -cd ComfyStereo +# Base only (stereo generation + DeoVR) pip install -r requirements.txt + +# Or install all features at once +pip install -r requirements.txt +``` + +**Option B: Using pip with optional dependencies (recommended)** +```bash +# Base only +pip install -e . + +# Base + VR viewing +pip install -e ".[vr]" + +# Base + AI stereo generation +pip install -e ".[ai]" + +# Everything (all features) +pip install -e ".[all]" ``` 3. Restart ComfyUI