From fb94f9df427293e4e6a7d225500420d60cbf987f Mon Sep 17 00:00:00 2001 From: limbicnation Date: Mon, 16 Feb 2026 04:30:09 +0100 Subject: [PATCH] fix: Add missing import json to depth_estimation_node.py Resolves NameError: name 'json' is not defined (#18). The json module is used in _serialize_camera_data() and error handling but was never imported when DA3 camera pose estimation was added in v1.3.4. Bump version to 1.3.7. --- __init__.py | 2 +- depth_estimation_node.py | 1 + pyproject.toml | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/__init__.py b/__init__.py index 4bf3bf6..e163312 100644 --- a/__init__.py +++ b/__init__.py @@ -12,7 +12,7 @@ logging.basicConfig(level=logging.INFO) logger = logging.getLogger("DepthEstimation") # Version info -__version__ = "1.3.6" +__version__ = "1.3.7" # Node class mappings - will be populated based on dependency checks NODE_CLASS_MAPPINGS = {} diff --git a/depth_estimation_node.py b/depth_estimation_node.py index 7e3acac..8360096 100644 --- a/depth_estimation_node.py +++ b/depth_estimation_node.py @@ -1,4 +1,5 @@ import os +import json import numpy as np import torch import traceback diff --git a/pyproject.toml b/pyproject.toml index b56707b..5685769 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "comfyuidepthestimation" description = "A robust custom depth estimation node for ComfyUI using Depth-Anything models (V1, V2, and V3/DA3). It integrates depth estimation with configurable post-processing options including blur, median filtering, contrast enhancement, and gamma correction." -version = "1.3.6" +version = "1.3.7" license = { file = "LICENSE" } dependencies = [ "transformers>=4.20.0",