- Fixed tensor type mismatch error between DoubleTensor and FloatTensor
- Added explicit tensor type conversion in MiDaSWrapper
- Improved error handling for tensor type mismatches
- Enhanced process_image to handle float64 tensors properly
- Added debugging logs to track tensor types
- Add explicit dimension handling for improved tensor shape control
- Add check to ensure tensors are in [0, 1] range
- Respect force_cpu flag when moving tensor to device
- Add debug logging for output tensor shape
- Improve code comments for clarity
- Add protobuf==3.20.3 to requirements.txt
- Fix common 'Descriptors cannot be created directly' error
- Ensure compatibility with transformers library
- Prevent runtime errors caused by protobuf version conflicts
- Remove attempt to import depth_estimation_node_improved
- Update version number to 1.1.0 to match improvements
- Update Pillow version check to 9.2.0
- Simplify node loading logic
- Add better logging for successful node loading
- Remove upper bounds to avoid conflicts with other ComfyUI nodes
- Specify only minimum versions required for functionality
- Add note about ComfyUI potentially providing specific versions
- Improve compatibility with complex environments
- Add tokenizers>=0.13.3,<0.14.0 to use pre-built wheels
- Prevent Rust compilation errors on systems without Rust toolchain
- Fix installation issues in environments like Anaconda
- Improve compatibility with Python 3.10
- 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
- Update dependency versions to resolve conflicts with other nodes
- Implement robust error handling with visual feedback
- Add automatic VRAM monitoring and CPU fallback
- Enhance model loading with multiple fallback paths
- Improve documentation with troubleshooting guide
Update README.md with:
- Detailed installation instructions (via ComfyUI Manager and manual)
- Clear documentation for new optional parameters (force_reload, force_cpu)
- Model information table showing VRAM usage and performance characteristics
- Comprehensive troubleshooting guide for common issues
- Solutions for model loading errors, CUDA OOM, and performance problems
- Better explanations of node usage and parameters
This documentation will help users correctly install and use the node,
and provides clear guidance for resolving common issues.
This comprehensive update improves the depth estimation node with:
- Robust error handling that continues workflow execution instead of crashing
- Visual error reporting with informative messages displayed on error images
- Intelligent resource management with VRAM usage tracking and requirements
- Automatic fallback to CPU when insufficient VRAM is detected
- Multiple fallback strategies for model loading issues
- Better handling of problematic inputs like NaN values
- Detailed logging for easier troubleshooting
These changes make the node much more stable and user-friendly in
complex ComfyUI setups, preventing workflow-breaking errors.
Implement graceful dependency handling in __init__.py:
- Check for required dependencies at startup
- Display a helpful error node when dependencies are missing
- Provide clear installation instructions to users
- Fallback to simpler implementations when possible
This prevents ComfyUI from crashing at startup due to missing
dependencies and gives users clear guidance on how to fix issues.
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.
This change implements multiple fallback paths for depth model loading, handles both online and offline scenarios, and provides clear error messages for troubleshooting. It maintains backward compatibility while addressing the 'model not found' error.
Update GitHub Action with:
1. Issue creation permissions for tracking
2. Conditional execution in author's repo only
3. Version pinning (v1) instead of main branch
Improves reliability and feedback while fixing org/owner check issue.
docs: add node preview and logo images to README
- Add depth estimation logo in header
- Include node preview image
- Fix image alignments and sizing
- Update markdown formatting
- Added __init__.py to register the custom node properly
- Fixed folder structure for correct module imports
- Updated node file to handle imports based on the environment