Commit Graph
17 Commits
Author SHA1 Message Date
limbicnation 2914dd8b5c fix: resolve tensor type mismatch in depth estimation
- 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
2025-05-03 23:32:15 +02:00
limbicnation 0438e413ef fix: improve tensor conversion in depth_estimation_node.py
- 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
2025-05-03 20:43:23 +02:00
limbicnation d3b1095d43 feat: enhance depth node with robust error handling and resource management
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.
2025-05-03 18:29:07 +02:00
limbicnation b9a35b42e3 fix: add robust fallback for depth model loading
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.
2025-02-27 12:11:34 +01:00
limbicnation b184437560 Fix PIL Image conversion error in depth estimation pipeline 2025-02-25 12:39:08 +01:00
limbicnation 8b7fc49a16 fix: improve depth estimation with robust gamma correction and error handling 2025-02-25 12:27:53 +01:00
limbicnation 196315e331 Enhance DepthEstimationNode with type hints, better VRAM management and all models 2025-02-25 12:23:02 +01:00
limbicnation 29fac572ec Enhance DepthEstimationNode with type hints, better VRAM management and all models 2025-02-25 12:12:33 +01:00
gero ae35209d04 feat(depth): enhance depth estimation node
- Add proper VRAM management and cleanup
- Improve model caching and error handling
- Add FP16 support for CUDA devices
- Optimize image processing pipeline
- Add detailed logging
- Fix tensor device handling
- Add robust error recovery
2025-01-30 18:03:34 +01:00
limbicnation 7d70e0737e fix: depth estimation pipeline data handling & format conversions
- Fix tensor to image conversion pipeline
- Add proper RGB/grayscale format handling
- Implement correct depth map normalization
- Add explicit channel stacking for output tensor
- Improve error handling throughout pipeline
- Fix PIL Image mode specification
2024-11-29 21:08:56 +01:00
limbicnation 8c3e6123f3 style: fix indentation in estimate_depth method 2024-11-29 20:51:23 +01:00
limbicnation 4f05c39cbd fix: handle single channel image conversion and tensor shape issues
- Add proper single channel to RGB conversion
- Fix tensor shape handling
- Improve image format conversion
- Add proper channel order handling
2024-11-29 20:43:57 +01:00
limbicnation b161a7d3c6 Added a default value for the median_size parameter in INPUT_TYPES 2024-11-29 19:53:38 +01:00
limbicnation 51b4bceae0 fix: handle median size validation in DepthEstimationNode 2024-11-29 19:50:54 +01:00
limbicnation 778ea98dd2 feat: Depth estimation node with enhanced error handling and post-processing
adds input validation and error handling
implements auto-contrast and gamma correction options
fixes indentation and formatting issues
improves performance with conditional filters
2024-11-29 18:58:21 +01:00
limbicnation 7f9377b421 fix: restructure depth estimation node and add proper packaging 2024-11-29 18:09:53 +01:00
gero 4c7774a8cb Initial commit with custom depth estimation node for ComfyUI 2024-06-07 17:40:20 +02:00