AI Slop Code RIsk Monitor

ByteDance-Seed/Depth-Anything-3

Depth Anything 3

31.9 High pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for ByteDance-Seed/Depth-Anything-3, a Python project with 6,454 GitHub stars. SynthScan examined 31,395 lines of code across 121 source files, recording 553 pattern matches distributed across 17 syntactic categories. The legacy adjusted pattern signal is 31.9 (High pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

31.9
Adjusted Signal
31.9
Raw Pattern Score
100%
Time Factor
2026-07-27
Last Push
6.5K
Stars
Python
Language
31.4K
Lines of Code
121
Files
553
Pattern Hits
2026-10-12
Scan Date
0.18
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 40.9/100 · MEDIUM

Can maintainers explain intent, assumptions, and trade-offs? 285 finding(s).

Hallucinated Dependency & Supply Chain Risk 14.0/100 · LOW

Are imports declared and package/API names verified? 41 finding(s).

Agent Over-Engineering Ratio 66.8/100 · HIGH

Are wrappers, guards, and repeated structures necessary? 345 finding(s).

PR Review Velocity Impact 77.9/100 · CRITICAL

Which changes need focused human review? 553 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 22MEDIUM 143LOW 388

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 553 distinct pattern matches across 17 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Decorative Section Separators119 hits · 402 pts
SeverityFileLineSnippetContext
MEDIUMda3_streaming/loop_utils/loop_detector.py62 # ----------------------------------COMMENT
MEDIUM⚡src/depth_anything_3/cli.py102# ============================================================================COMMENT
MEDIUM⚡src/depth_anything_3/cli.py104# ============================================================================COMMENT
MEDIUM⚡src/depth_anything_3/cli.py106# ============================================================================COMMENT
MEDIUM⚡src/depth_anything_3/cli.py108# ============================================================================COMMENT
MEDIUM⚡src/depth_anything_3/cli.py701# ============================================================================COMMENT
MEDIUM⚡src/depth_anything_3/cli.py703# ============================================================================COMMENT
MEDIUMsrc/depth_anything_3/cli.py48# ============================================================================COMMENT
MEDIUMsrc/depth_anything_3/cli.py50# ============================================================================COMMENT
MEDIUMsrc/depth_anything_3/cli.py634# ============================================================================COMMENT
MEDIUMsrc/depth_anything_3/cli.py636# ============================================================================COMMENT
MEDIUMsrc/depth_anything_3/bench/utils.py35# =============================================================================COMMENT
MEDIUMsrc/depth_anything_3/bench/utils.py37# =============================================================================COMMENT
MEDIUMsrc/depth_anything_3/bench/utils.py67# =============================================================================COMMENT
MEDIUMsrc/depth_anything_3/bench/utils.py69# =============================================================================COMMENT
MEDIUM⚡src/depth_anything_3/bench/utils.py286# =============================================================================COMMENT
MEDIUM⚡src/depth_anything_3/bench/utils.py288# =============================================================================COMMENT
MEDIUMsrc/depth_anything_3/bench/datasets/sevenscenes.py103 # ------------------------------COMMENT
MEDIUMsrc/depth_anything_3/bench/datasets/sevenscenes.py105 # ------------------------------COMMENT
MEDIUMsrc/depth_anything_3/bench/datasets/sevenscenes.py297 # ------------------------------COMMENT
MEDIUMsrc/depth_anything_3/bench/datasets/sevenscenes.py299 # ------------------------------COMMENT
MEDIUMsrc/depth_anything_3/bench/datasets/dtu.py73 # ------------------------------COMMENT
MEDIUMsrc/depth_anything_3/bench/datasets/dtu.py75 # ------------------------------COMMENT
MEDIUM⚡src/depth_anything_3/bench/datasets/dtu.py240 # ------------------------------COMMENT
MEDIUM⚡src/depth_anything_3/bench/datasets/dtu.py242 # ------------------------------COMMENT
MEDIUMsrc/depth_anything_3/bench/datasets/dtu.py376 # ------------------------------COMMENT
MEDIUMsrc/depth_anything_3/bench/datasets/dtu.py378 # ------------------------------COMMENT
MEDIUMsrc/depth_anything_3/bench/datasets/dtu.py549 # ------------------------------COMMENT
MEDIUMsrc/depth_anything_3/bench/datasets/dtu.py551 # ------------------------------COMMENT
MEDIUMsrc/depth_anything_3/bench/datasets/scannetpp.py101 # ------------------------------COMMENT
MEDIUMsrc/depth_anything_3/bench/datasets/scannetpp.py103 # ------------------------------COMMENT
MEDIUMsrc/depth_anything_3/bench/datasets/scannetpp.py427 # ------------------------------COMMENT
MEDIUMsrc/depth_anything_3/bench/datasets/scannetpp.py429 # ------------------------------COMMENT
MEDIUMsrc/depth_anything_3/bench/datasets/eth3d.py100 # ------------------------------COMMENT
MEDIUMsrc/depth_anything_3/bench/datasets/eth3d.py102 # ------------------------------COMMENT
MEDIUMsrc/depth_anything_3/bench/datasets/eth3d.py174 # ------------------------------COMMENT
MEDIUMsrc/depth_anything_3/bench/datasets/eth3d.py176 # ------------------------------COMMENT
MEDIUMsrc/depth_anything_3/bench/datasets/eth3d.py392 # ------------------------------COMMENT
MEDIUMsrc/depth_anything_3/bench/datasets/eth3d.py394 # ------------------------------COMMENT
MEDIUMsrc/depth_anything_3/bench/datasets/hiroom.py104 # ------------------------------COMMENT
MEDIUMsrc/depth_anything_3/bench/datasets/hiroom.py106 # ------------------------------COMMENT
MEDIUMsrc/depth_anything_3/bench/datasets/hiroom.py293 # ------------------------------COMMENT
MEDIUMsrc/depth_anything_3/bench/datasets/hiroom.py295 # ------------------------------COMMENT
MEDIUMsrc/depth_anything_3/bench/datasets/dtu64.py73 # ------------------------------COMMENT
MEDIUMsrc/depth_anything_3/bench/datasets/dtu64.py75 # ------------------------------COMMENT
MEDIUMsrc/depth_anything_3/bench/datasets/dtu64.py95 # ------------------------------COMMENT
MEDIUMsrc/depth_anything_3/bench/datasets/dtu64.py97 # ------------------------------COMMENT
MEDIUM⚡src/depth_anything_3/bench/configs/eval_bench.yaml8# ==============================================================================COMMENT
MEDIUM⚡src/depth_anything_3/bench/configs/eval_bench.yaml10# ==============================================================================COMMENT
MEDIUM⚡src/depth_anything_3/bench/configs/eval_bench.yaml15# ==============================================================================COMMENT
MEDIUM⚡src/depth_anything_3/bench/configs/eval_bench.yaml17# ==============================================================================COMMENT
MEDIUM⚡src/depth_anything_3/bench/configs/eval_bench.yaml22# ==============================================================================COMMENT
MEDIUM⚡src/depth_anything_3/bench/configs/eval_bench.yaml24# ==============================================================================COMMENT
MEDIUM⚡src/depth_anything_3/bench/configs/eval_bench.yaml62# ==============================================================================COMMENT
MEDIUM⚡src/depth_anything_3/bench/configs/eval_bench.yaml64# ==============================================================================COMMENT
MEDIUM⚡src/depth_anything_3/bench/configs/eval_bench.yaml72# ==============================================================================COMMENT
MEDIUM⚡src/depth_anything_3/bench/configs/eval_bench.yaml74# ==============================================================================COMMENT
MEDIUM⚡src/depth_anything_3/utils/constants.py21# =============================================================================COMMENT
MEDIUM⚡src/depth_anything_3/utils/constants.py23# =============================================================================COMMENT
MEDIUM⚡src/depth_anything_3/utils/constants.py33# -----------------------------------------------------------------------------COMMENT
59 more matches not shown…
Excessive Try-Catch Wrapping90 hits · 113 pts
SeverityFileLineSnippetContext
MEDIUMda3_streaming/npz_output_process.py123 print(f"Error: Folder {npz_folder} does not exist")CODE
MEDIUMda3_streaming/npz_output_process.py127 print(f"Error: File {pose_file} does not exist")CODE
LOWda3_streaming/da3_streaming.py876 except Exception as e:CODE
MEDIUMda3_streaming/da3_streaming.py862def copy_file(src_path, dst_dir):CODE
LOW⚡da3_streaming/loop_utils/alignment_triton.py483 except Exception as e:CODE
LOW⚡da3_streaming/loop_utils/alignment_triton.py489 except Exception as e:CODE
LOW⚡da3_streaming/loop_utils/alignment_triton.py497 except Exception as e:CODE
LOW⚡da3_streaming/loop_utils/alignment_triton.py504 except Exception as e:CODE
LOW⚡da3_streaming/loop_utils/alignment_torch.py326 except Exception as e:CODE
LOW⚡da3_streaming/loop_utils/alignment_torch.py332 except Exception as e:CODE
LOW⚡da3_streaming/loop_utils/alignment_torch.py338 except Exception as e:CODE
LOW⚡da3_streaming/loop_utils/alignment_torch.py344 except Exception as e:CODE
LOW⚡da3_streaming/loop_utils/alignment_torch.py350 except Exception as e:CODE
LOW⚡da3_streaming/loop_utils/alignment_torch.py356 except Exception as e:CODE
LOW⚡da3_streaming/loop_utils/sim3utils.py925 except Exception as e:CODE
LOW⚡da3_streaming/loop_utils/sim3utils.py931 except Exception as e:CODE
LOW⚡da3_streaming/loop_utils/sim3utils.py937 except Exception as e:CODE
LOW⚡da3_streaming/loop_utils/sim3utils.py943 except Exception as e:CODE
LOW⚡da3_streaming/loop_utils/sim3utils.py949 except Exception as e:CODE
LOW⚡da3_streaming/loop_utils/sim3utils.py955 except Exception as e:CODE
LOWda3_streaming/loop_utils/loop_detector.py186 except Exception as e:CODE
MEDIUMda3_streaming/loop_utils/loop_detector.py187 print(f"Error processing image {path}: {e}")CODE
LOWda3_streaming/loop_utils/sim3loop.py30except Exception:CODE
LOWda3_streaming/loop_utils/sim3loop.py272 except Exception as e:CODE
LOW⚡src/depth_anything_3/cfg.py26except Exception as e:CODE
MEDIUM⚡src/depth_anything_3/cfg.py28 print(f"Error registering eval resolver: {e}")CODE
LOW⚡src/depth_anything_3/cli.py696 except Exception as e:CODE
LOWsrc/depth_anything_3/cli.py781 except Exception as e:CODE
LOWsrc/depth_anything_3/cli.py818 except Exception as e:CODE
LOWsrc/depth_anything_3/bench/print_metrics.py561 except Exception as e:CODE
LOW⚡src/depth_anything_3/bench/utils.py277 except Exception:CODE
LOWsrc/depth_anything_3/bench/evaluator.py289 except Exception as e:CODE
LOWsrc/depth_anything_3/bench/evaluator.py526 except Exception as e:CODE
LOWsrc/depth_anything_3/bench/registries.py58 except Exception as e:CODE
LOWsrc/depth_anything_3/app/gradio_app.py149 except Exception as e:CODE
LOWsrc/depth_anything_3/app/modules/model_inference.py213 except Exception as e:CODE
LOWsrc/depth_anything_3/app/modules/event_handlers.py132 except Exception as e:CODE
LOWsrc/depth_anything_3/app/modules/event_handlers.py324 except Exception as e:CODE
LOWsrc/depth_anything_3/app/modules/event_handlers.py422 except Exception as e:CODE
MEDIUMsrc/depth_anything_3/app/modules/event_handlers.py423 print(f"Error loading cached data: {e}")CODE
LOWsrc/depth_anything_3/app/modules/event_handlers.py437 except Exception as e:CODE
MEDIUMsrc/depth_anything_3/app/modules/event_handlers.py438 print(f"Error loading cached 3DGS video: {e}")CODE
LOWsrc/depth_anything_3/app/modules/event_handlers.py620 except Exception as e:CODE
MEDIUMsrc/depth_anything_3/app/modules/event_handlers.py621 print(f"Error selecting first frame: {e}")CODE
LOWsrc/depth_anything_3/app/modules/visualization.py178 except Exception as e:CODE
MEDIUMsrc/depth_anything_3/app/modules/visualization.py179 print(f"Error extracting depth right half: {e}")CODE
LOWsrc/depth_anything_3/app/modules/visualization.py325 except Exception as e:CODE
LOWsrc/depth_anything_3/app/modules/visualization.py334 except Exception as e:CODE
LOWsrc/depth_anything_3/app/modules/visualization.py351 except Exception as e:CODE
LOW⚡src/depth_anything_3/app/modules/visualization.py417 except Exception as e:CODE
LOW⚡src/depth_anything_3/app/modules/visualization.py425 except Exception as e:CODE
LOW⚡src/depth_anything_3/app/modules/visualization.py432 except Exception as e:CODE
LOWsrc/depth_anything_3/app/modules/utils.py136 except Exception as e:CODE
MEDIUMsrc/depth_anything_3/app/modules/utils.py137 print(f"Error saving to gallery: {e}")CODE
LOWsrc/depth_anything_3/app/modules/file_handlers.py52 except Exception:CODE
LOWsrc/depth_anything_3/app/modules/file_handlers.py192 except Exception as e:CODE
MEDIUMsrc/depth_anything_3/app/modules/file_handlers.py193 print(f"Error converting HEIC file {file_path}: {e}")CODE
LOWsrc/depth_anything_3/utils/memory.py38 except Exception:CODE
LOWsrc/depth_anything_3/utils/memory.py59 except Exception:CODE
LOWsrc/depth_anything_3/utils/memory.py74 except Exception as e:CODE
30 more matches not shown…
Over-Commented Block97 hits · 96 pts
SeverityFileLineSnippetContext
LOWda3_streaming/da3_streaming.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOWda3_streaming/loop_utils/alignment_triton.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOWda3_streaming/loop_utils/alignment_torch.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOWda3_streaming/loop_utils/sim3utils.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOWda3_streaming/loop_utils/sim3utils.py321COMMENT
LOWda3_streaming/loop_utils/loop_refinement.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOWda3_streaming/loop_utils/__init__.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOWda3_streaming/loop_utils/loop_detector.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOWda3_streaming/loop_utils/sim3loop.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOWda3_streaming/loop_utils/config_utils.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOWda3_streaming/loop_utils/logging_utils.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOWda3_streaming/fastloop/solve_python.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOWda3_streaming/fastloop/__init__.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOWda3_streaming/fastloop/solve.cpp1// Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOWsrc/depth_anything_3/specs.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOWsrc/depth_anything_3/cfg.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOWsrc/depth_anything_3/registry.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOWsrc/depth_anything_3/api.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOWsrc/depth_anything_3/cli.py1# flake8: noqa: E402COMMENT
LOWsrc/depth_anything_3/bench/__init__.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOWsrc/depth_anything_3/bench/dataset.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOWsrc/depth_anything_3/bench/print_metrics.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOWsrc/depth_anything_3/bench/utils.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOWsrc/depth_anything_3/bench/evaluator.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOWsrc/depth_anything_3/bench/registries.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOWsrc/depth_anything_3/bench/datasets/sevenscenes.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOWsrc/depth_anything_3/bench/datasets/dtu.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOWsrc/depth_anything_3/bench/datasets/scannetpp.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOWsrc/depth_anything_3/bench/datasets/__init__.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOWsrc/depth_anything_3/bench/datasets/eth3d.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOWsrc/depth_anything_3/bench/datasets/hiroom.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOWsrc/depth_anything_3/bench/datasets/dtu64.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOWsrc/depth_anything_3/bench/configs/eval_bench.yaml1# DepthAnything3 Benchmark Evaluation ConfigurationCOMMENT
LOWsrc/depth_anything_3/app/gradio_app.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOWsrc/depth_anything_3/app/css_and_html.py1# flake8: noqa: E501COMMENT
LOWsrc/depth_anything_3/app/modules/model_inference.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOWsrc/depth_anything_3/app/modules/event_handlers.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOWsrc/depth_anything_3/app/modules/__init__.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOWsrc/depth_anything_3/app/modules/visualization.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOWsrc/depth_anything_3/app/modules/utils.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOWsrc/depth_anything_3/app/modules/file_handlers.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOWsrc/depth_anything_3/app/modules/ui_components.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOWsrc/depth_anything_3/utils/layout_helpers.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOWsrc/depth_anything_3/utils/pca_utils.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOWsrc/depth_anything_3/utils/alignment.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOWsrc/depth_anything_3/utils/registry.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOWsrc/depth_anything_3/utils/constants.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOWsrc/depth_anything_3/utils/constants.py21# =============================================================================COMMENT
LOWsrc/depth_anything_3/utils/parallel_utils.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOWsrc/depth_anything_3/utils/visualize.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOWsrc/depth_anything_3/utils/logger.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOWsrc/depth_anything_3/utils/model_loading.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOWsrc/depth_anything_3/utils/camera_trj_helpers.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOWsrc/depth_anything_3/utils/read_write_model.py1# Copyright (c), ETH Zurich and UNC Chapel Hill.COMMENT
LOWsrc/depth_anything_3/utils/read_write_model.py21# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"COMMENT
LOWsrc/depth_anything_3/utils/ray_utils.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOWsrc/depth_anything_3/utils/geometry.py1# flake8: noqa: F722COMMENT
LOWsrc/depth_anything_3/utils/pose_align.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
LOWsrc/depth_anything_3/utils/pose_align.py201# Returns rotation, translation, and scale.COMMENT
LOWsrc/depth_anything_3/utils/gsply_helpers.py1# Copyright (c) 2025 ByteDance Ltd. and/or its affiliatesCOMMENT
37 more matches not shown…
Hyper-Verbose Identifiers86 hits · 86 pts
SeverityFileLineSnippetContext
LOWda3_streaming/da3_streaming.py53def depth_to_point_cloud_vectorized(depth, intrinsics, extrinsics, device=None):CODE
LOWda3_streaming/loop_utils/alignment_triton.py24def apply_transformation_residual_kernel(CODE
LOWda3_streaming/loop_utils/alignment_triton.py74def weighted_covariance_kernel(CODE
LOWda3_streaming/loop_utils/alignment_triton.py143def compute_huber_weights_kernel(CODE
LOWda3_streaming/loop_utils/alignment_triton.py188def apply_transformation_residual_triton(src, tgt, s, R, t):CODE
LOWda3_streaming/loop_utils/alignment_triton.py225def compute_weighted_mean_triton(points, weights):CODE
LOWda3_streaming/loop_utils/alignment_triton.py245def compute_weighted_covariance_triton(src, tgt, weights, mu_src, mu_tgt):CODE
LOWda3_streaming/loop_utils/alignment_triton.py274def compute_huber_weights_triton(residuals, delta):CODE
LOWda3_streaming/loop_utils/alignment_torch.py141def compute_huber_weights_torch(residuals, delta):CODE
LOWda3_streaming/loop_utils/alignment_torch.py153def apply_transformation_torch(src, s, R, t):CODE
LOWda3_streaming/loop_utils/alignment_torch.py256def depth_to_point_cloud_optimized_torch(depth, intrinsics, extrinsics, device=None):CODE
LOWda3_streaming/loop_utils/sim3utils.py327# def vectorized_reservoir_sampling(new_pts, new_cls, current_count, reservoir_pts, reservoir_clr):COMMENT
LOWda3_streaming/loop_utils/sim3utils.py201def save_confident_pointcloud(CODE
LOWda3_streaming/loop_utils/sim3utils.py237def save_confident_pointcloud_batch(CODE
LOWda3_streaming/loop_utils/sim3utils.py363def optimized_vectorized_reservoir_sampling(CODE
LOWda3_streaming/loop_utils/sim3utils.py850def compute_huber_weights_numba(residuals, delta):CODE
LOWda3_streaming/loop_utils/sim3utils.py860def apply_transformation_numba(src, s, R, t):CODE
LOWda3_streaming/loop_utils/sim3utils.py1107def compute_chunk_scale_advanced(depth1, depth2, conf1, conf2, method="auto"):CODE
LOWda3_streaming/loop_utils/sim3utils.py1143def precompute_scale_chunks_with_depth(CODE
LOWda3_streaming/loop_utils/sim3utils.py1167def weighted_align_point_maps(CODE
LOWda3_streaming/loop_utils/sim3loop.py76 def sequential_to_absolute_poses(CODE
LOWda3_streaming/loop_utils/sim3loop.py100 def absolute_to_sequential_transforms(CODE
LOWsrc/depth_anything_3/api.py341 def _align_to_input_extrinsics_intrinsics(CODE
LOWsrc/depth_anything_3/bench/utils.py407def compare_translation_by_angle(CODE
LOWsrc/depth_anything_3/bench/registries.py35def _import_all_datasets_once():CODE
LOW⚡src/depth_anything_3/bench/datasets/dtu.py244 def _generate_points_from_depth(CODE
LOWsrc/depth_anything_3/app/gradio_app.py457 def _setup_visualization_handlers(CODE
LOWsrc/depth_anything_3/app/gradio_app.py487 def _setup_navigation_handlers(CODE
LOWsrc/depth_anything_3/app/gradio_app.py537 def _setup_example_scene_handlers(CODE
LOWsrc/depth_anything_3/app/css_and_html.py481def get_acknowledgements_html():STRING
LOWsrc/depth_anything_3/app/modules/event_handlers.py58 def save_current_visualization(CODE
LOWsrc/depth_anything_3/app/modules/visualization.py219 def populate_visualization_tabs(CODE
LOWsrc/depth_anything_3/app/modules/utils.py30def create_depth_visualization(depth: np.ndarray) -> Optional[np.ndarray]:CODE
LOWsrc/depth_anything_3/app/modules/ui_components.py198 def create_inference_control_section(self) -> Tuple[gr.Dropdown, gr.Checkbox, gr.Dropdown]:CODE
LOWsrc/depth_anything_3/app/modules/ui_components.py233 def create_display_control_section(CODE
LOWsrc/depth_anything_3/app/modules/ui_components.py387 def create_example_scenes_section(self) -> List[Dict[str, Any]]:CODE
LOWsrc/depth_anything_3/app/modules/ui_components.py403 def create_example_scene_grid(self, scenes: List[Dict[str, Any]]) -> List[gr.Image]:CODE
LOWsrc/depth_anything_3/app/modules/ui_components.py457 def create_description_section(self) -> gr.HTML:CODE
LOWsrc/depth_anything_3/app/modules/ui_components.py468 def create_acknowledgements_section(self) -> gr.HTML:CODE
LOWsrc/depth_anything_3/utils/pca_utils.py207 def _project_with_stable_colors(self, X: torch.Tensor) -> torch.Tensor:CODE
LOWsrc/depth_anything_3/utils/memory.py78def check_memory_availability(required_gb: float = 2.0) -> tuple[bool, str]:CODE
LOWsrc/depth_anything_3/utils/memory.py110def estimate_memory_requirement(num_images: int, process_res: int) -> float:CODE
LOWsrc/depth_anything_3/utils/alignment.py23def least_squares_scale_scalar(CODE
LOWsrc/depth_anything_3/utils/alignment.py100def sample_tensor_for_quantile(tensor: torch.Tensor, max_samples: int = 100000) -> torch.Tensor:CODE
LOWsrc/depth_anything_3/utils/alignment.py136def set_sky_regions_to_max_depth(CODE
LOWsrc/depth_anything_3/utils/model_loading.py25def convert_general_state_dict(state_dict: Dict[str, torch.Tensor]) -> Dict[str, torch.Tensor]:CODE
LOWsrc/depth_anything_3/utils/model_loading.py75def convert_metric_state_dict(state_dict: Dict[str, torch.Tensor]) -> Dict[str, torch.Tensor]:CODE
LOWsrc/depth_anything_3/utils/model_loading.py116def load_pretrained_nested_weights(CODE
LOWsrc/depth_anything_3/utils/camera_trj_helpers.py32def render_stabilization_path(poses, k_size=45):CODE
LOWsrc/depth_anything_3/utils/camera_trj_helpers.py205def generate_coordinate_frame(CODE
LOWsrc/depth_anything_3/utils/camera_trj_helpers.py214def generate_rotation_coordinate_frame(CODE
LOWsrc/depth_anything_3/utils/camera_trj_helpers.py257def extrinsics_to_pivot_parameters(CODE
LOWsrc/depth_anything_3/utils/camera_trj_helpers.py286def pivot_parameters_to_extrinsics(CODE
LOWsrc/depth_anything_3/utils/camera_trj_helpers.py340def interpolate_pivot_parameters(CODE
LOWsrc/depth_anything_3/utils/camera_trj_helpers.py409def generate_wobble_transformation(CODE
LOWsrc/depth_anything_3/utils/ray_utils.py20def compute_optimal_rotation_intrinsics_batch(CODE
LOWsrc/depth_anything_3/utils/ray_utils.py112def find_homography_least_squares_weighted_torch(src_pts, dst_pts, confident_weight):CODE
LOWsrc/depth_anything_3/utils/ray_utils.py147def ransac_find_homography_weighted(CODE
LOWsrc/depth_anything_3/utils/ray_utils.py208def find_homography_least_squares_weighted_torch_batch(CODE
LOWsrc/depth_anything_3/utils/ray_utils.py235def ransac_find_homography_weighted_fast(CODE
26 more matches not shown…
Cross-Language Confusion9 hits · 62 pts
SeverityFileLineSnippetContext
HIGHsrc/depth_anything_3/services/backend.py526 "if(location.pathname!=\"/\")history.replaceState(null,'','/'+location.search)",CODE
HIGHsrc/depth_anything_3/services/backend.py527 "if(!location.pathname.startsWith(\"/gallery\"))history.replaceState(null,'','/gallery/'+location.search)",CODE
HIGH⚡src/depth_anything_3/services/gallery.py554let GROUPS=[],SCENES=[],currentGroup=null,currentScene=null,currentPage=1,currentScenePage=1;CODE
HIGH⚡src/depth_anything_3/services/gallery.py560function renderScenes(list,page=1){topPager.innerHTML='';grid.innerHTML='';const q=searchInput.value.trim().toLowerCase(CODE
HIGH⚡src/depth_anything_3/services/gallery.py561function enterLevel1({push=false}={}){currentGroup=null;pageTitle.textContent='Depth Anything 3 Gallery';crumb.textConteCODE
HIGH⚡src/depth_anything_3/services/gallery.py562async function enterLevel2(g,{push=false}={}){currentGroup=g;pageTitle.textContent=g;crumb.textContent='(group)';backBtnCODE
HIGH⚡src/depth_anything_3/services/gallery.py613function openViewer(i,{push=false}={}){currentScene=i;viewerTitle.textContent=i.title;mv.src=i.model;overlay.classList.aCODE
HIGH⚡src/depth_anything_3/services/gallery.py615function closeViewer(){const hasId=!!qs().get('id');if(hasId&&history.length>1){history.back();return;}const u=new URL(lCODE
HIGH⚡src/depth_anything_3/services/gallery.py619async function routeFromURL(){if(location.pathname!="/")history.replaceState(null,'','/'+location.search);const g=qs().gCODE
Unused Imports32 hits · 32 pts
SeverityFileLineSnippetContext
LOWsrc/depth_anything_3/specs.py15CODE
LOWsrc/depth_anything_3/api.py21CODE
LOWsrc/depth_anything_3/cli.py20CODE
LOWsrc/depth_anything_3/bench/__init__.py33CODE
LOWsrc/depth_anything_3/bench/__init__.py33CODE
LOWsrc/depth_anything_3/bench/print_metrics.py26CODE
LOWsrc/depth_anything_3/bench/utils.py24CODE
LOWsrc/depth_anything_3/bench/evaluator.py537CODE
LOWsrc/depth_anything_3/bench/datasets/eth3d.py27CODE
LOWsrc/depth_anything_3/bench/datasets/eth3d.py29CODE
LOWsrc/depth_anything_3/bench/datasets/eth3d.py29CODE
LOWsrc/depth_anything_3/bench/datasets/eth3d.py34CODE
LOWsrc/depth_anything_3/bench/datasets/eth3d.py35CODE
LOWsrc/depth_anything_3/bench/datasets/eth3d.py37CODE
LOWsrc/depth_anything_3/app/modules/model_inference.py24CODE
LOWsrc/depth_anything_3/app/modules/__init__.py21CODE
LOWsrc/depth_anything_3/app/modules/__init__.py22CODE
LOWsrc/depth_anything_3/app/modules/__init__.py23CODE
LOWsrc/depth_anything_3/app/modules/__init__.py24CODE
LOWsrc/depth_anything_3/app/modules/__init__.py25CODE
LOWsrc/depth_anything_3/app/modules/__init__.py25CODE
LOWsrc/depth_anything_3/app/modules/__init__.py25CODE
LOWsrc/depth_anything_3/app/modules/__init__.py25CODE
LOWsrc/depth_anything_3/app/modules/__init__.py31CODE
LOWsrc/depth_anything_3/utils/memory.py7CODE
LOWsrc/depth_anything_3/utils/io/output_processor.py22CODE
LOWsrc/depth_anything_3/utils/io/input_processor.py22CODE
LOWsrc/depth_anything_3/utils/export/glb.py15CODE
LOWsrc/depth_anything_3/utils/export/colmap.py17CODE
LOWsrc/depth_anything_3/model/da3.py15CODE
LOWsrc/depth_anything_3/model/dinov2/vision_transformer.py20CODE
LOWsrc/depth_anything_3/model/dinov2/vision_transformer.py29CODE
Deep Nesting33 hits · 32 pts
SeverityFileLineSnippetContext
LOWda3_streaming/npz_output_process.py10CODE
LOWda3_streaming/loop_utils/sim3utils.py237CODE
LOWda3_streaming/loop_utils/sim3utils.py546CODE
LOWda3_streaming/loop_utils/sim3utils.py1107CODE
LOWda3_streaming/loop_utils/sim3utils.py1167CODE
LOWda3_streaming/loop_utils/loop_detector.py242CODE
LOWda3_streaming/loop_utils/sim3loop.py205CODE
LOWsrc/depth_anything_3/api.py133CODE
LOWsrc/depth_anything_3/cli.py57CODE
LOWsrc/depth_anything_3/cli.py112CODE
LOWsrc/depth_anything_3/bench/print_metrics.py536CODE
LOWsrc/depth_anything_3/bench/print_metrics.py141CODE
LOWsrc/depth_anything_3/bench/print_metrics.py271CODE
LOWsrc/depth_anything_3/bench/evaluator.py260CODE
LOWsrc/depth_anything_3/bench/evaluator.py510CODE
LOWsrc/depth_anything_3/bench/datasets/eth3d.py133CODE
LOWsrc/depth_anything_3/app/gradio_app.py64CODE
LOWsrc/depth_anything_3/app/gradio_app.py158CODE
LOWsrc/depth_anything_3/app/modules/event_handlers.py353CODE
LOWsrc/depth_anything_3/app/modules/event_handlers.py547CODE
LOWsrc/depth_anything_3/app/modules/visualization.py259CODE
LOWsrc/depth_anything_3/app/modules/file_handlers.py148CODE
LOWsrc/depth_anything_3/app/modules/ui_components.py403CODE
LOWsrc/depth_anything_3/utils/geometry.py23CODE
LOWsrc/depth_anything_3/utils/export/__init__.py41CODE
LOWsrc/depth_anything_3/utils/export/glb.py418CODE
LOWsrc/depth_anything_3/model/utils/gs_renderer.py156CODE
LOWsrc/depth_anything_3/model/utils/head_utils.py25CODE
LOWsrc/depth_anything_3/services/backend.py546CODE
LOWsrc/depth_anything_3/services/backend.py574CODE
LOWsrc/depth_anything_3/services/gallery.py641CODE
LOWsrc/depth_anything_3/services/gallery.py668CODE
LOWsrc/depth_anything_3/services/input_handlers.py110CODE
Self-Referential Comments10 hits · 30 pts
SeverityFileLineSnippetContext
MEDIUMsrc/depth_anything_3/app/modules/utils.py98 # Create the gallery directoryCOMMENT
MEDIUMsrc/depth_anything_3/app/modules/file_handlers.py118 # Create a unique folder name within input_imagesCOMMENT
MEDIUMsrc/depth_anything_3/app/modules/file_handlers.py307 # Create a fixed folder name based on scene nameCOMMENT
MEDIUMsrc/depth_anything_3/utils/layout_helpers.py138 # Create an empty image with the correct size.COMMENT
MEDIUMsrc/depth_anything_3/utils/geometry.py33 # Create a new homogeneous matrixCOMMENT
MEDIUMsrc/depth_anything_3/utils/gsply_helpers.py132 # Create a mask to filter the Gaussians.COMMENT
MEDIUMsrc/depth_anything_3/model/reference_view_selector.py149 # Create the reordering indicesCOMMENT
MEDIUMsrc/depth_anything_3/model/reference_view_selector.py203 # Create the restore indicesCOMMENT
MEDIUMsrc/depth_anything_3/model/gs_adapter.py46 # Create a mask for the spherical harmonics coefficients. This ensures that atCOMMENT
MEDIUMsrc/depth_anything_3/model/dinov2/layers/rope.py9# This module provides a clean implementation of 2D Rotary Position Embeddings,COMMENT
Cross-File Repetition6 hits · 30 pts
SeverityFileLineSnippetContext
HIGHsrc/depth_anything_3/bench/datasets/sevenscenes.py0evaluate fused point cloud against hiroom ground truth point cloud. args: scene: scene identifier fuse_path: path to fusSTRING
HIGHsrc/depth_anything_3/bench/datasets/eth3d.py0evaluate fused point cloud against hiroom ground truth point cloud. args: scene: scene identifier fuse_path: path to fusSTRING
HIGHsrc/depth_anything_3/bench/datasets/hiroom.py0evaluate fused point cloud against hiroom ground truth point cloud. args: scene: scene identifier fuse_path: path to fusSTRING
HIGHsrc/depth_anything_3/bench/datasets/sevenscenes.py0fuse per-view depths into a point cloud using tsdf fusion. args: scene: scene identifier result_path: path to npz file wSTRING
HIGHsrc/depth_anything_3/bench/datasets/scannetpp.py0fuse per-view depths into a point cloud using tsdf fusion. args: scene: scene identifier result_path: path to npz file wSTRING
HIGHsrc/depth_anything_3/bench/datasets/hiroom.py0fuse per-view depths into a point cloud using tsdf fusion. args: scene: scene identifier result_path: path to npz file wSTRING
AI Structural Patterns32 hits · 28 pts
SeverityFileLineSnippetContext
LOWda3_streaming/loop_utils/loop_refinement.py268CODE
LOWsrc/depth_anything_3/api.py133CODE
LOWsrc/depth_anything_3/cli.py112CODE
LOWsrc/depth_anything_3/cli.py316CODE
LOWsrc/depth_anything_3/cli.py392CODE
LOWsrc/depth_anything_3/cli.py471CODE
LOWsrc/depth_anything_3/cli.py558CODE
LOWsrc/depth_anything_3/cli.py707CODE
LOWsrc/depth_anything_3/bench/evaluator.py59CODE
LOWsrc/depth_anything_3/app/gradio_app.py64CODE
LOWsrc/depth_anything_3/app/modules/model_inference.py62CODE
LOWsrc/depth_anything_3/app/modules/event_handlers.py135CODE
LOWsrc/depth_anything_3/utils/pca_utils.py135CODE
LOWsrc/depth_anything_3/utils/geometry.py186CODE
LOWsrc/depth_anything_3/utils/io/input_processor.py65CODE
LOWsrc/depth_anything_3/utils/export/glb.py53CODE
LOWsrc/depth_anything_3/utils/export/gs.py61CODE
LOWsrc/depth_anything_3/model/dpt.py42CODE
LOWsrc/depth_anything_3/model/dpt.py284CODE
LOWsrc/depth_anything_3/model/dualdpt.py44CODE
LOWsrc/depth_anything_3/model/da3.py372CODE
LOWsrc/depth_anything_3/model/gsdpt.py26CODE
LOWsrc/depth_anything_3/model/utils/attention.py24CODE
LOWsrc/depth_anything_3/model/utils/transform.py152CODE
LOWsrc/depth_anything_3/model/utils/block.py23CODE
LOWsrc/depth_anything_3/model/dinov2/vision_transformer.py84CODE
LOWsrc/depth_anything_3/model/dinov2/layers/attention.py19CODE
LOWsrc/depth_anything_3/model/dinov2/layers/block.py27CODE
LOWsrc/depth_anything_3/model/dinov2/layers/drop_path.py24CODE
LOWsrc/depth_anything_3/services/inference_service.py187CODE
LOWsrc/depth_anything_3/services/inference_service.py45CODE
LOWsrc/depth_anything_3/services/inference_service.py101CODE
Empty Error Handlers5 hits · 25 pts
SeverityFileLineSnippetContext
HIGHsrc/depth_anything_3/utils/memory.py59except Exception:CODE
HIGHsrc/depth_anything_3/utils/api_helpers.py17except Exception:CODE
HIGHsrc/depth_anything_3/model/utils/gs_renderer.py147except Exception:CODE
HIGHsrc/depth_anything_3/services/backend.py565except Exception:CODE
HIGHsrc/depth_anything_3/services/gallery.py659except Exception:CODE
Redundant / Tautological Comments13 hits · 22 pts
SeverityFileLineSnippetContext
LOW⚡src/depth_anything_3/cfg.py36 # Check if path is a module path (contains dots but no slashes and doesn't end with .yaml)COMMENT
LOW⚡src/depth_anything_3/cli.py71 # Check if it's a fileCOMMENT
LOW⚡src/depth_anything_3/cli.py80 # Check if it's a directoryCOMMENT
LOW⚡src/depth_anything_3/cli.py89 # Check if directory contains image filesCOMMENT
LOWsrc/depth_anything_3/bench/evaluator.py273 # Check if result file exists and is validCOMMENT
LOWsrc/depth_anything_3/bench/evaluator.py552 # Check if user provides custom configCOMMENT
LOWsrc/depth_anything_3/app/gradio_app.py107 # Check if scene name matches the gs tag for high-res+3DGS cachingCOMMENT
LOWsrc/depth_anything_3/app/gradio_app.py141 # Check if successfulCOMMENT
LOWsrc/depth_anything_3/app/modules/event_handlers.py293 # Check if GLB exists (could be cached example or reconstructed scene)COMMENT
LOWsrc/depth_anything_3/app/modules/utils.py94 # Check if directory already existsCOMMENT
LOWsrc/depth_anything_3/app/modules/file_handlers.py172 # Check if the file is a HEIC imageCOMMENT
LOWsrc/depth_anything_3/app/modules/file_handlers.py311 # Check if already cached (GLB file exists)COMMENT
LOWsrc/depth_anything_3/services/backend.py1307 # Add task to queueCOMMENT
Structural Annotation Overuse6 hits · 12 pts
SeverityFileLineSnippetContext
LOWda3_streaming/README.md36#### Step 1: Dependency InstallationCOMMENT
LOWda3_streaming/README.md44#### Step 2: Weights DownloadCOMMENT
LOW⚡src/depth_anything_3/bench/datasets/scannetpp.py455 # Step 1: nearest resize to original image sizeCOMMENT
LOW⚡src/depth_anything_3/bench/datasets/scannetpp.py462 # Step 2: linear resize to target resolutionCOMMENT
LOW⚡src/depth_anything_3/bench/datasets/scannetpp.py514 # Step 1: nearest resize to original image sizeCOMMENT
LOW⚡src/depth_anything_3/bench/datasets/scannetpp.py521 # Step 2: linear resize to target resolutionCOMMENT
Docstring Block Structure2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHsrc/depth_anything_3/utils/alignment.py26 Compute least squares scale factor s such that a ≈ s * b. Args: a: First tensor b: Second tensSTRING
HIGHsrc/depth_anything_3/model/dinov2/layers/rope.py159Applies 2D rotary position embeddings to input tokens. Args: tokens: Input tensor of shape (batch_sSTRING
Verbosity Indicators4 hits · 9 pts
SeverityFileLineSnippetContext
LOW⚡src/depth_anything_3/bench/datasets/scannetpp.py455 # Step 1: nearest resize to original image sizeCOMMENT
LOW⚡src/depth_anything_3/bench/datasets/scannetpp.py462 # Step 2: linear resize to target resolutionCOMMENT
LOW⚡src/depth_anything_3/bench/datasets/scannetpp.py514 # Step 1: nearest resize to original image sizeCOMMENT
LOW⚡src/depth_anything_3/bench/datasets/scannetpp.py521 # Step 2: linear resize to target resolutionCOMMENT
Modern Structural Boilerplate7 hits · 7 pts
SeverityFileLineSnippetContext
LOWsrc/depth_anything_3/bench/__init__.py44__all__ = ["Evaluator", "MV_REGISTRY", "MONO_REGISTRY"]CODE
LOWsrc/depth_anything_3/bench/registries.py28__all__ = ["METRIC_REGISTRY", "MONO_REGISTRY", "MV_REGISTRY", "NVS_REGISTRY"]CODE
LOWsrc/depth_anything_3/app/modules/__init__.py33__all__ = [CODE
LOWsrc/depth_anything_3/utils/logger.py76__all__ = ["logger"]CODE
LOWsrc/depth_anything_3/utils/export/__init__.py73__all__ = [CODE
LOWsrc/depth_anything_3/model/dinov2/layers/__init__.py15__all__ = [CODE
LOWsrc/depth_anything_3/services/__init__.py21__all__ = [CODE
AI Slop Vocabulary2 hits · 3 pts
SeverityFileLineSnippetContext
LOW⚡src/depth_anything_3/cfg.py27 # if eval is not available, we can just passCOMMENT
MEDIUMsrc/depth_anything_3/utils/memory.py43 """Perform a robust GPU cleanup sequence.STRING