From 454a1c07c01558d64398e7f0eb89f3b18813d6d8 Mon Sep 17 00:00:00 2001 From: limbicnation Date: Sat, 3 May 2025 19:17:14 +0200 Subject: [PATCH] fix: update dependency version constraints for better compatibility - Add upper version bounds to prevent future compatibility issues - Update Pillow from >=9.1.0 to >=9.2.0 for broader compatibility - Constrain transformers to <4.37.0 to avoid breaking changes - Limit numpy to <2.0.0 to prevent NumPy 2.x conflicts - Add detailed comments explaining the rationale for each constraint - Make note about PyTorch dependency handling --- requirements.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/requirements.txt b/requirements.txt index ead8f72..4e8199d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,16 +1,16 @@ # requirements.txt for ComfyUI-DepthEstimation Node # Transformers library for the depth estimation model pipeline -transformers>=4.20.0 # Required for Depth Anything models +transformers>=4.20.0,<4.37.0 # Required for Depth Anything models # Pillow (PIL Fork) - Compatibility with other ComfyUI nodes -Pillow>=9.1.0 # Ensures compatibility with nodes requiring >=9.2.0 +Pillow>=9.2.0,<10.0.0 # Ensures compatibility with nodes requiring >=9.2.0 # NumPy - Using version that properly supports numpy.dtypes -numpy>=1.23.0 # Resolves compatibility issues with scipy and other dependencies +numpy>=1.23.0,<2.0.0 # Resolves compatibility issues while avoiding NumPy 2.x conflicts # Additional dependencies specific to depth estimation node -timm>=0.6.12 # Required for depth estimation models +timm>=0.6.12,<0.9.0 # Required for depth estimation models huggingface-hub>=0.16.0 # For model downloading # Note: PyTorch dependencies are handled by ComfyUI's core installation