Commit Graph
62 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 6ff7981678 fix: add protobuf dependency to resolve transformers import error
- 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
2025-05-03 19:48:09 +02:00
limbicnation 3d78b44438 chore: remove temporary documentation file 2025-05-03 19:47:15 +02:00
limbicnation d9589a989c Update with Better Error Handling 2025-05-03 19:45:55 +02:00
limbicnation 3bec5037d7 fix: update __init__.py to remove reference to non-existent file
- 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
2025-05-03 19:35:26 +02:00
limbicnation 33d9665940 fix: remove upper version constraints to reduce dependency conflicts
- 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
2025-05-03 19:30:55 +02:00
limbicnation d34486cf93 fix: specify tokenizers version to avoid build errors
- 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
2025-05-03 19:21:15 +02:00
limbicnation 454a1c07c0 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
2025-05-03 19:17:14 +02:00
limbicnation 3d1b5a2e19 optimize: reduce showcase image file size for better performance 2025-05-03 19:07:13 +02:00
limbicnation b61c288821 fix: resolve dependency conflicts and enhance node robustness
- 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
2025-05-03 19:04:38 +02:00
limbicnation e61760bd3e docs: add comprehensive installation and 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.
2025-05-03 18:32:52 +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 e8269297e9 feat: add graceful dependency checking
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.
2025-05-03 18:21:24 +02:00
limbicnation 3481e14bc9 fix: update dependency versions to resolve conflicts
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.
2025-05-03 18:19:38 +02:00
Gero Doll 73fb5f4f54 Merge pull request #11 from Limbicnation/fix/depth-model-loading-fallback
fix: add robust fallback for depth model loading
2025-02-27 12:29:30 +01: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
Gero Doll dc3b1572ec Update README.md 2025-02-25 22:07:57 +01:00
limbicnation 6cbe8a04d7 Add showcase images 2025-02-25 14:29:17 +01:00
Gero Doll 23d00eebc1 Update README.md 2025-02-25 13:01:37 +01:00
limbicnation 04e7745b7c Update requirements.txt with huggingface-hub dependency 2025-02-25 12:59:02 +01:00
limbicnation 0bad0587ff Updated Logo 2025-02-25 12:52:34 +01:00
Gero Doll 2d17240c41 Merge pull request #9 from Limbicnation/feature/improved-depth-estimation-node
Feature/improved depth estimation node
2025-02-25 12:45:02 +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 Doll 28a4ed29ca Merge pull request #8 from ComfyNodePRs/update-publish-yaml
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.
2025-02-25 11:05:03 +01:00
Gero Doll 9b387b61ac Merge pull request #7 from Limbicnation/feature/improve-depth-estimation
feat(depth): enhance depth estimation node
2025-01-30 18:18:58 +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
snomiao 47d65e8073 chore(publish): update workflow for node publishing with permissions and version check 2025-01-20 21:36:27 +00:00
Gero Doll ce0b34cbfe Update README.md
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
2024-11-29 21:34:29 +01:00
limbicnation 0978cf6f40 Thumbnail images added 2024-11-29 21:24:54 +01:00
Gero Doll a80e3a6fc9 Update README.md 2024-11-29 21:19:47 +01:00
Gero Doll 7763bec795 Merge pull request #6 from Limbicnation/fix/depth-estimation-structure
Fix/depth estimation structure
2024-11-29 21:09:16 +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 87a4afd108 feat: enhance __init__.py with version tracking, web directory config and improved documentation
- Add module docstring
- Add version tracking (__version__)
- Add web directory config for UI components
- Add explicit __all__ exports list
- Improve code organization
2024-11-29 18:43:09 +01:00
limbicnation 248ae4e64a Fixed import path to match actual file name 2024-11-29 18:33:02 +01:00
limbicnation 7f9377b421 fix: restructure depth estimation node and add proper packaging 2024-11-29 18:09:53 +01:00
Gero Doll 566b4f81a6 Merge pull request #5 from Limbicnation/fix/import-issues-custom-node
Fix/import issues custom node
2024-09-05 04:44:05 +02:00
limbicnation c89a0d6a4d Add 'node.zip' 2024-09-05 04:13:43 +02:00
limbicnation 1f432fd648 chore: add .gitattributes file for line endings and binary handling 2024-09-05 04:12:57 +02:00
limbicnation 3a0fc65b64 fix: resolve import issues and add __init__.py for custom node
- 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
2024-09-05 04:11:01 +02:00
Gero Doll 59b55e66c5 Merge pull request #3 from ComfyNodePRs/licence-update
Update PyProject Toml - License
2024-08-03 04:01:07 +02:00
snomiao 4ffb1c0c24 chore(licence-update): Update PyProject Toml - License 2024-07-31 13:47:24 +00:00