Repository Analysis

ByteDance-Seed/Depth-Anything-3

Depth Anything 3

31.1 Strong AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of ByteDance-Seed/Depth-Anything-3, a Python project with 5,825 GitHub stars. SynthScan v2.0 examined 31,344 lines of code across 121 source files, recording 546 pattern matches distributed across 16 syntactic categories. The overall adjusted score of 31.1 places this repository in the Strong AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

31.1
Adjusted Score
31.1
Raw Score
100%
Time Factor
2026-07-13
Last Push
5.8K
Stars
Python
Language
31.3K
Lines of Code
121
Files
546
Pattern Hits
2026-07-14
Scan Date
0.14
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 17MEDIUM 143LOW 386

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 546 distinct pattern matches across 16 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Decorative Section Separators119 hits · 402 pts
SeverityFileLineSnippetContext
MEDIUMda3_streaming/loop_utils/loop_detector.py62 # ----------------------------------COMMENT
MEDIUMsrc/depth_anything_3/cli.py102# ============================================================================COMMENT
MEDIUMsrc/depth_anything_3/cli.py104# ============================================================================COMMENT
MEDIUMsrc/depth_anything_3/cli.py106# ============================================================================COMMENT
MEDIUMsrc/depth_anything_3/cli.py108# ============================================================================COMMENT
MEDIUMsrc/depth_anything_3/cli.py701# ============================================================================COMMENT
MEDIUMsrc/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
MEDIUMsrc/depth_anything_3/bench/utils.py286# =============================================================================COMMENT
MEDIUMsrc/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
MEDIUMsrc/depth_anything_3/bench/datasets/dtu.py240 # ------------------------------COMMENT
MEDIUMsrc/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
MEDIUMsrc/depth_anything_3/bench/configs/eval_bench.yaml8# ==============================================================================COMMENT
MEDIUMsrc/depth_anything_3/bench/configs/eval_bench.yaml10# ==============================================================================COMMENT
MEDIUMsrc/depth_anything_3/bench/configs/eval_bench.yaml15# ==============================================================================COMMENT
MEDIUMsrc/depth_anything_3/bench/configs/eval_bench.yaml17# ==============================================================================COMMENT
MEDIUMsrc/depth_anything_3/bench/configs/eval_bench.yaml22# ==============================================================================COMMENT
MEDIUMsrc/depth_anything_3/bench/configs/eval_bench.yaml24# ==============================================================================COMMENT
MEDIUMsrc/depth_anything_3/bench/configs/eval_bench.yaml62# ==============================================================================COMMENT
MEDIUMsrc/depth_anything_3/bench/configs/eval_bench.yaml64# ==============================================================================COMMENT
MEDIUMsrc/depth_anything_3/bench/configs/eval_bench.yaml72# ==============================================================================COMMENT
MEDIUMsrc/depth_anything_3/bench/configs/eval_bench.yaml74# ==============================================================================COMMENT
MEDIUMsrc/depth_anything_3/utils/constants.py21# =============================================================================COMMENT
MEDIUMsrc/depth_anything_3/utils/constants.py23# =============================================================================COMMENT
MEDIUMsrc/depth_anything_3/utils/constants.py33# -----------------------------------------------------------------------------COMMENT
59 more matches not shown…
Excessive Try-Catch Wrapping88 hits · 112 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
LOWda3_streaming/loop_utils/alignment_triton.py483 except Exception as e:CODE
LOWda3_streaming/loop_utils/alignment_triton.py489 except Exception as e:CODE
LOWda3_streaming/loop_utils/alignment_triton.py497 except Exception as e:CODE
LOWda3_streaming/loop_utils/alignment_triton.py504 except Exception as e:CODE
LOWda3_streaming/loop_utils/alignment_torch.py326 except Exception as e:CODE
LOWda3_streaming/loop_utils/alignment_torch.py332 except Exception as e:CODE
LOWda3_streaming/loop_utils/alignment_torch.py338 except Exception as e:CODE
LOWda3_streaming/loop_utils/alignment_torch.py344 except Exception as e:CODE
LOWda3_streaming/loop_utils/alignment_torch.py350 except Exception as e:CODE
LOWda3_streaming/loop_utils/alignment_torch.py356 except Exception as e:CODE
LOWda3_streaming/loop_utils/sim3utils.py925 except Exception as e:CODE
LOWda3_streaming/loop_utils/sim3utils.py931 except Exception as e:CODE
LOWda3_streaming/loop_utils/sim3utils.py937 except Exception as e:CODE
LOWda3_streaming/loop_utils/sim3utils.py943 except Exception as e:CODE
LOWda3_streaming/loop_utils/sim3utils.py949 except Exception as e:CODE
LOWda3_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
LOWsrc/depth_anything_3/cfg.py26except Exception as e:CODE
MEDIUMsrc/depth_anything_3/cfg.py28 print(f"Error registering eval resolver: {e}")CODE
LOWsrc/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
LOWsrc/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.py419 except Exception as e:CODE
MEDIUMsrc/depth_anything_3/app/modules/event_handlers.py420 print(f"Error loading cached data: {e}")CODE
LOWsrc/depth_anything_3/app/modules/event_handlers.py434 except Exception as e:CODE
MEDIUMsrc/depth_anything_3/app/modules/event_handlers.py435 print(f"Error loading cached 3DGS video: {e}")CODE
LOWsrc/depth_anything_3/app/modules/event_handlers.py617 except Exception as e:CODE
MEDIUMsrc/depth_anything_3/app/modules/event_handlers.py618 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
LOWsrc/depth_anything_3/app/modules/visualization.py417 except Exception as e:CODE
LOWsrc/depth_anything_3/app/modules/visualization.py425 except Exception as e:CODE
LOWsrc/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.py141 except Exception as e:CODE
MEDIUMsrc/depth_anything_3/app/modules/file_handlers.py142 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
LOWsrc/depth_anything_3/utils/memory.py108 except Exception as e:CODE
LOWsrc/depth_anything_3/utils/ray_utils.py181 except Exception:CODE
28 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
LOWsrc/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.py493 "if(location.pathname!=\"/\")history.replaceState(null,'','/'+location.search)",CODE
HIGHsrc/depth_anything_3/services/backend.py494 "if(!location.pathname.startsWith(\"/gallery\"))history.replaceState(null,'','/gallery/'+location.search)",CODE
HIGHsrc/depth_anything_3/services/gallery.py554let GROUPS=[],SCENES=[],currentGroup=null,currentScene=null,currentPage=1,currentScenePage=1;CODE
HIGHsrc/depth_anything_3/services/gallery.py560function renderScenes(list,page=1){topPager.innerHTML='';grid.innerHTML='';const q=searchInput.value.trim().toLowerCase(CODE
HIGHsrc/depth_anything_3/services/gallery.py561function enterLevel1({push=false}={}){currentGroup=null;pageTitle.textContent='Depth Anything 3 Gallery';crumb.textConteCODE
HIGHsrc/depth_anything_3/services/gallery.py562async function enterLevel2(g,{push=false}={}){currentGroup=g;pageTitle.textContent=g;crumb.textContent='(group)';backBtnCODE
HIGHsrc/depth_anything_3/services/gallery.py613function openViewer(i,{push=false}={}){currentScene=i;viewerTitle.textContent=i.title;mv.src=i.model;overlay.classList.aCODE
HIGHsrc/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
HIGHsrc/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.py350CODE
LOWsrc/depth_anything_3/app/modules/event_handlers.py544CODE
LOWsrc/depth_anything_3/app/modules/visualization.py259CODE
LOWsrc/depth_anything_3/app/modules/file_handlers.py101CODE
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.py513CODE
LOWsrc/depth_anything_3/services/backend.py541CODE
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.py71 # Create a unique folder name within input_imagesCOMMENT
MEDIUMsrc/depth_anything_3/app/modules/file_handlers.py256 # 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
Redundant / Tautological Comments13 hits · 22 pts
SeverityFileLineSnippetContext
LOWsrc/depth_anything_3/cfg.py36 # Check if path is a module path (contains dots but no slashes and doesn't end with .yaml)COMMENT
LOWsrc/depth_anything_3/cli.py71 # Check if it's a fileCOMMENT
LOWsrc/depth_anything_3/cli.py80 # Check if it's a directoryCOMMENT
LOWsrc/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.py120 # Check if the file is a HEIC imageCOMMENT
LOWsrc/depth_anything_3/app/modules/file_handlers.py260 # Check if already cached (GLB file exists)COMMENT
LOWsrc/depth_anything_3/services/backend.py1310 # 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
LOWsrc/depth_anything_3/bench/datasets/scannetpp.py455 # Step 1: nearest resize to original image sizeCOMMENT
LOWsrc/depth_anything_3/bench/datasets/scannetpp.py462 # Step 2: linear resize to target resolutionCOMMENT
LOWsrc/depth_anything_3/bench/datasets/scannetpp.py514 # Step 1: nearest resize to original image sizeCOMMENT
LOWsrc/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
LOWsrc/depth_anything_3/bench/datasets/scannetpp.py455 # Step 1: nearest resize to original image sizeCOMMENT
LOWsrc/depth_anything_3/bench/datasets/scannetpp.py462 # Step 2: linear resize to target resolutionCOMMENT
LOWsrc/depth_anything_3/bench/datasets/scannetpp.py514 # Step 1: nearest resize to original image sizeCOMMENT
LOWsrc/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
LOWsrc/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