Commit Graph
28 Commits
Author SHA1 Message Date
limbicnation 2b3f0c9033 fix: Improve DA3 import robustness for RunPod/nightly PyTorch environments
- Fix scoping bug in __init__.py where module_version was undefined after
  ImportError, causing incorrect DA3_AVAILABLE check
- Add defensive try/except guard around depth_anything_3 import in
  depth_estimation_node.py to handle edge cases
- Move logger initialization before DA3 import to prevent NameError
- Bump version to 1.3.6

Resolves node loading failures on RunPod with PyTorch nightly builds
where the error node "Depth Estimation (Error)" was incorrectly shown
even when DA3 was intentionally not installed.
2025-12-08 22:23:36 +01:00
limbicnation 52548f5e2e fix: Address code review feedback and improve robustness
- Revert blur_radius parameter from INT to FLOAT type
- Add median_size odd-number validation for PIL compatibility
- Use dynamic dimensions for placeholder tensors (not fixed 512x512)
- Refactor tensor squeezing with list comprehension
- Simplify _check_pose_support() logic with better comments
- Add informative JSON output for non-DA3 models
- Fix GEMINI.md duplicate input_size documentation line
- Update CLAUDE.md with DA3 camera pose estimation documentation
2025-12-06 21:50:24 +01:00
limbicnation 150f1fc3e9 feat: Implement DA3 camera integration with 5-tuple output and demo workflow 2025-12-06 20:41:13 +01:00
limbicnation f31221a3e5 fix: correct DA3 inference method name 2025-11-25 01:16:31 +01:00
limbicnation 9956ffcfe4 fix: resolve DA3 dependency issues and code review feedback 2025-11-25 00:54:12 +01:00
limbicnation 867d27539a feat: integrate Depth Anything V3 (Small/Base) models 2025-11-25 00:35:02 +01:00
gero d3fef8d498 fix: Update DepthEstimationNode default parameters
- Set input_size default to 1024 to avoid validation errors
  - Change median_size default to 3 for better compatibility
2025-05-15 00:24:50 +02:00
limbicnation 979ae85cd0 fix(depth): Fix tensor dimension handling to ensure correct depth image resolution 2025-05-04 01:32:59 +02:00
limbicnation 9a9ccb3ddb fix(depth): resolve GPU tensor dimensions & auth issues in depth estimation
- Fix tensor dimension handling in MiDaSWrapper
- Add robust type conversion to consistently use float32
- Implement authentication-free model fallbacks
- Improve error recovery with progressive fallbacks
- Add detailed logging for better debugging
2025-05-04 00:36:20 +02:00
limbicnation fca63accb1 fix: update Hugging Face model paths for V2 models
- Updated model paths to use the correct organization 'depth-anything' instead of 'LiheYoung'
- Fixed direct URLs to point to the correct Hugging Face repositories
- Added more fallback model paths to try multiple organization/repo formats
- Updated error messages with correct download links
- Fixed tensor shape handling for output images
2025-05-04 00:07:37 +02:00
limbicnation 15804d8c6d fix: resolve GPU model loading and tensor dimension issues
- Fixed authentication error when loading V2 models by adding non-auth direct URLs
- Added multi-URL fallback downloading system for better reliability
- Fixed tensor dimensionality mismatch in MiDaS model interpolation
- Added tensor shape standardization to ensure consistent dimensions
- Enhanced model directory detection to support multiple folder structures
- Improved error messages with targeted solutions based on error type
- Added tensor type validation to prevent DoubleTensor vs FloatTensor issues
2025-05-04 00:03:52 +02:00
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