docs: Update CLAUDE.md with v1.3.7 changes and lessons learned
This commit is contained in:
@@ -4,7 +4,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
|
||||
|
||||
## Project Overview
|
||||
|
||||
ComfyUI Depth Estimation Node is a custom node for ComfyUI that provides depth map generation from images using Depth-Anything models (V1, V2, and V3). The node integrates with ComfyUI's workflow system and provides configurable post-processing options. **Version 1.3.4+ adds Depth-Anything V3 support with camera pose estimation (extrinsics/intrinsics). Version 1.3.6 fixes import robustness for RunPod/PyTorch nightly environments.**
|
||||
ComfyUI Depth Estimation Node is a custom node for ComfyUI that provides depth map generation from images using Depth-Anything models (V1, V2, and V3). The node integrates with ComfyUI's workflow system and provides configurable post-processing options. **Version 1.3.4+ adds Depth-Anything V3 support with camera pose estimation (extrinsics/intrinsics). Version 1.3.7 fixes missing `import json` (#18) and cleans up PEP 8 import ordering.**
|
||||
|
||||
## Development Commands
|
||||
|
||||
@@ -159,9 +159,11 @@ When modifying or extending this node:
|
||||
4. **DA3 not available**: Node gracefully hides DA3 models if depth_anything_3 not installed
|
||||
5. **Median filter**: PIL requires odd integers > 1; validation added
|
||||
6. **PyTorch nightly builds**: v1.3.6 adds defensive import guards for edge cases on RunPod and similar environments
|
||||
7. **Missing stdlib imports**: Always verify new stdlib usage (e.g., `json`) has a corresponding top-level import — local imports inside methods can mask the issue until other code paths call the module
|
||||
|
||||
## Version History
|
||||
|
||||
- **v1.3.7** (2026-02-16): Fixed missing `import json` causing NameError (#18), PEP 8 import grouping, removed redundant local import
|
||||
- **v1.3.6** (2025-12-08): Fixed scoping bug in optional dependency checker, added defensive import guards for DA3, improved compatibility with PyTorch nightly builds
|
||||
- **v1.3.5**: DA3 camera pose estimation feature release
|
||||
- **v1.3.4**: Initial Depth-Anything V3 integration
|
||||
|
||||
Reference in New Issue
Block a user