From 4821fc59dfdce0019ae826ff1d99f7a47f8dda11 Mon Sep 17 00:00:00 2001 From: connorsoohoo Date: Sun, 28 Jun 2026 21:59:10 -0600 Subject: [PATCH] fix(cli): fix NameError for reference_view_strategy in CLI commands Correct reference_view_strategy to ref_view_strategy when calling run_inference in the image, images, colmap, and video commands to match the parameter name defined in run_inference. --- src/depth_anything_3/cli.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/depth_anything_3/cli.py b/src/depth_anything_3/cli.py index c9463028..32965428 100644 --- a/src/depth_anything_3/cli.py +++ b/src/depth_anything_3/cli.py @@ -380,7 +380,7 @@ def image( process_res_method=process_res_method, export_feat_layers=export_feat_layers, use_ray_pose=use_ray_pose, - reference_view_strategy=reference_view_strategy, + ref_view_strategy=ref_view_strategy, conf_thresh_percentile=conf_thresh_percentile, num_max_points=num_max_points, show_cameras=show_cameras, @@ -459,7 +459,7 @@ def images( process_res_method=process_res_method, export_feat_layers=export_feat_layers, use_ray_pose=use_ray_pose, - reference_view_strategy=reference_view_strategy, + ref_view_strategy=ref_view_strategy, conf_thresh_percentile=conf_thresh_percentile, num_max_points=num_max_points, show_cameras=show_cameras, @@ -546,7 +546,7 @@ def colmap( intrinsics=intrinsics, align_to_input_ext_scale=align_to_input_ext_scale, use_ray_pose=use_ray_pose, - reference_view_strategy=reference_view_strategy, + ref_view_strategy=ref_view_strategy, conf_thresh_percentile=conf_thresh_percentile, num_max_points=num_max_points, show_cameras=show_cameras, @@ -623,7 +623,7 @@ def video( process_res_method=process_res_method, export_feat_layers=export_feat_layers, use_ray_pose=use_ray_pose, - reference_view_strategy=reference_view_strategy, + ref_view_strategy=ref_view_strategy, conf_thresh_percentile=conf_thresh_percentile, num_max_points=num_max_points, show_cameras=show_cameras,