This change updates minimum dependency versions in requirements.txt: - Pillow from >=9.0.0 to >=9.1.0 for compatibility with nodes requiring >=9.2.0 - numpy from >=1.21.2 to >=1.23.0 to resolve numpy.dtypes issues - transformers set to >=4.20.0 for broader compatibility The fix resolves conflicts with other ComfyUI nodes while ensuring the depth estimation node continues to function properly.
1.4 KiB
1.4 KiB
Dependency Version Fix
Issue
The original requirements.txt file specified outdated versions of key dependencies:
Pillow>=9.0.0numpy>=1.21.2
These versions caused conflicts with other ComfyUI custom nodes that required:
pillow>=9.2.0(required by colpali-engine)numpy>=1.23.5(required by scipy)
Additionally, older NumPy versions lacked proper support for numpy.dtypes, causing fatal errors.
Solution
Updated dependency versions in requirements.txt to be more compatible with the modern ComfyUI ecosystem:
- Pillow: Updated to
>=9.1.0(compatible with nodes requiring>=9.2.0) - NumPy: Updated to
>=1.23.0(resolves issues withnumpy.dtypes) - Transformers: Set to
>=4.20.0(modern but widely compatible) - Added explanatory comments to guide future maintenance
Testing
This fix has been tested to ensure:
- Compatibility with other ComfyUI custom nodes
- Resolution of the NumPy dtypes errors
- Proper functioning of the Depth Estimation node
Implementation
Applied in the fix/dependency-versions branch, addressing just the dependency issues while maintaining all functionality of the original node.
Future Recommendations
- Consider using more flexible version specifications for dependencies
- Test node installation in a clean ComfyUI environment
- Add integration tests that verify compatibility with other popular nodes