From d3fef8d49873377ffe661f2dc06b62a171063526 Mon Sep 17 00:00:00 2001 From: gero Date: Thu, 15 May 2025 00:24:50 +0200 Subject: [PATCH] fix: Update DepthEstimationNode default parameters - Set input_size default to 1024 to avoid validation errors - Change median_size default to 3 for better compatibility --- depth_estimation_node.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/depth_estimation_node.py b/depth_estimation_node.py index ae32204..6d719b4 100644 --- a/depth_estimation_node.py +++ b/depth_estimation_node.py @@ -613,10 +613,10 @@ class DepthEstimationNode: "image": ("IMAGE",), "model_name": (list(DEPTH_MODELS.keys()),), # Ensure minimum size is enforced by the UI - "input_size": ("INT", {"default": 518, "min": 256, "max": 1024, "step": 1}), + "input_size": ("INT", {"default": 1024, "min": 256, "max": 1024, "step": 1}), "blur_radius": ("FLOAT", {"default": 2.0, "min": 0.0, "max": 10.0, "step": 0.1}), # Define median_size as a dropdown with specific string values - "median_size": (cls.MEDIAN_SIZES, {"default": "5"}), + "median_size": (cls.MEDIAN_SIZES, {"default": "3"}), "apply_auto_contrast": ("BOOLEAN", {"default": True}), "apply_gamma": ("BOOLEAN", {"default": True}) },