Repository Analysis

roboflow/rf-detr

RF-DETR is a real-time object detection and segmentation model architecture developed by Roboflow, SOTA on COCO, designed for fine-tuning. [ICLR 2026]

61.7 Strong AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of roboflow/rf-detr, a Python project with 9,089 GitHub stars. SynthScan v2.0 examined 122,871 lines of code across 364 source files, recording 4762 pattern matches distributed across 18 syntactic categories. The overall adjusted score of 61.7 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).

61.7
Adjusted Score
61.7
Raw Score
100%
Time Factor
2026-08-25
Last Push
9.1K
Stars
Python
Language
122.9K
Lines of Code
364
Files
4.8K
Pattern Hits
2026-08-29
Scan Date
0.56
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

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

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 4HIGH 200MEDIUM 1051LOW 3507

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 4762 distinct pattern matches across 18 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 Separators1038 hits · 3608 pts
SeverityFileLineSnippetContext
MEDIUMAGENTS.md159# ------------------------------------------------------------------------COMMENT
MEDIUMAGENTS.md163# ------------------------------------------------------------------------COMMENT
MEDIUMtests/run_smoke_all_models.py2# ------------------------------------------------------------------------COMMENT
MEDIUMtests/run_smoke_all_models.py6# ------------------------------------------------------------------------COMMENT
MEDIUMtests/conftest.py1# ------------------------------------------------------------------------COMMENT
MEDIUMtests/conftest.py5# ------------------------------------------------------------------------COMMENT
MEDIUMtests/__init__.py1# ------------------------------------------------------------------------COMMENT
MEDIUMtests/__init__.py5# ------------------------------------------------------------------------COMMENT
MEDIUMtests/_online.py1# ------------------------------------------------------------------------COMMENT
MEDIUMtests/_online.py5# ------------------------------------------------------------------------COMMENT
MEDIUMtests/training/test_metrics_csv.py1# ------------------------------------------------------------------------COMMENT
MEDIUMtests/training/test_metrics_csv.py5# ------------------------------------------------------------------------COMMENT
MEDIUMtests/training/test_metrics_csv.py31# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/training/test_metrics_csv.py33# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/training/test_metrics_csv.py90# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/training/test_metrics_csv.py92# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/training/test_metrics_csv.py113# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/training/test_metrics_csv.py115# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/training/test_auto_batch.py1# ------------------------------------------------------------------------COMMENT
MEDIUMtests/training/test_auto_batch.py5# ------------------------------------------------------------------------COMMENT
MEDIUMtests/training/conftest.py1# ------------------------------------------------------------------------COMMENT
MEDIUMtests/training/conftest.py5# ------------------------------------------------------------------------COMMENT
MEDIUMtests/training/conftest.py16# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/training/conftest.py19# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/training/conftest.py93# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/training/conftest.py95# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/training/test_trainer_smoke.py1# ------------------------------------------------------------------------COMMENT
MEDIUMtests/training/test_trainer_smoke.py5# ------------------------------------------------------------------------COMMENT
MEDIUMtests/training/test_trainer_smoke.py37# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/training/test_trainer_smoke.py39# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/training/test_trainer_smoke.py59# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/training/test_trainer_smoke.py61# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/training/test_trainer_smoke.py341# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/training/test_trainer_smoke.py343# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/training/test_coco_map.py1# ------------------------------------------------------------------------COMMENT
MEDIUMtests/training/test_coco_map.py5# ------------------------------------------------------------------------COMMENT
MEDIUMtests/training/test_detr_shim.py110# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/training/test_detr_shim.py112# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/training/test_detr_shim.py411# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/training/test_detr_shim.py413# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/training/test_detr_shim.py587# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/training/test_detr_shim.py589# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/training/test_detr_shim.py1012# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/training/test_detr_shim.py1014# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/training/test_detr_shim.py1267# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/training/test_detr_shim.py1269# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/training/test_detr_shim.py1723# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/training/test_detr_shim.py1725# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/training/test_detr_shim.py1# ------------------------------------------------------------------------COMMENT
MEDIUMtests/training/test_detr_shim.py5# ------------------------------------------------------------------------COMMENT
MEDIUMtests/training/test_detr_shim.py38# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/training/test_detr_shim.py40# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/training/test_detr_shim.py710# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/training/test_detr_shim.py712# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/training/test_detr_shim.py911# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/training/test_detr_shim.py913# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/training/test_detr_shim.py1183# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/training/test_detr_shim.py1185# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/training/test_detr_shim.py1322# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/training/test_detr_shim.py1324# ---------------------------------------------------------------------------COMMENT
978 more matches not shown…
Hyper-Verbose Identifiers3042 hits · 2446 pts
SeverityFileLineSnippetContext
LOWtests/run_smoke_all_models.py171def _test_coco_class_name_mapping(model_instance: object) -> None:CODE
LOWtests/conftest.py53def synthetic_shape_dataset_dir(tmp_path_factory: pytest.TempPathFactory) -> Generator[Path, Any, None]:CODE
LOWtests/conftest.py90def synthetic_shape_segmentation_dataset_dir(CODE
LOWtests/training/test_metrics_csv.py121 def test_base_metrics_present_without_ema(self, base_model_config, base_train_config):CODE
LOWtests/training/test_metrics_csv.py134 def test_ema_metrics_present_with_ema_enabled(self, base_model_config, base_train_config):CODE
LOWtests/training/test_metrics_csv.py147 def test_train_loss_is_unscaled(self, base_model_config, base_train_config):CODE
LOWtests/training/test_metrics_csv.py252 def test_history_preserved_across_resume(self, base_model_config, base_train_config):CODE
LOWtests/training/test_metrics_csv.py284 def test_reused_output_dir_with_empty_resume_resets_history(self, base_model_config, base_train_config):CODE
LOWtests/training/test_metrics_csv.py307 def test_reused_output_dir_without_resume_resets_history(self, base_model_config, base_train_config):CODE
LOWtests/training/test_auto_batch.py25def test_recommend_grad_accum_steps_rounds_up():CODE
LOWtests/training/test_auto_batch.py29def test_probe_max_micro_batch_uses_exponential_then_binary_search():CODE
LOWtests/training/test_auto_batch.py55def test_probe_max_micro_batch_raises_if_one_is_not_safe():CODE
LOWtests/training/test_auto_batch.py74def test_probe_max_micro_batch_reprobes_batch_one_with_state_resident():CODE
LOWtests/training/test_auto_batch.py110def test_probe_max_micro_batch_warms_up_state_before_exponential_search():CODE
LOWtests/training/test_auto_batch.py142def test_probe_max_micro_batch_raises_before_building_shadow_optimizer_when_no_trainable_params():CODE
LOWtests/training/test_auto_batch.py169def test_probe_step_raises_when_loss_keys_do_not_overlap_weight_keys():CODE
LOWtests/training/test_auto_batch.py214def test_probe_step_rejects_trainable_params_shadow_args_passed_positionally():CODE
LOWtests/training/test_auto_batch.py304 def test_does_not_mutate_real_model_parameters(self) -> None:CODE
LOWtests/training/test_auto_batch.py335 def test_populates_shadow_optimizer_state(self) -> None:CODE
LOWtests/training/test_auto_batch.py348 def test_shadow_optimizer_state_reused_not_reallocated_across_iterations(self) -> None:CODE
LOWtests/training/test_auto_batch.py376 def test_shadow_grad_cleared_after_step(self) -> None:CODE
LOWtests/training/test_auto_batch.py386 def test_shadow_grad_cleared_when_step_itself_ooms(self) -> None:CODE
LOWtests/training/test_auto_batch.py456def test_probe_max_micro_batch_drives_real_search_loop_end_to_end():CODE
LOWtests/training/test_auto_batch.py482def test_probe_max_micro_batch_builds_shadow_optimizer_exactly_once():CODE
LOWtests/training/test_auto_batch.py509def test_probe_step_warns_once_with_correct_missing_grad_count_when_armed():CODE
LOWtests/training/test_auto_batch.py544def test_build_shadow_optimizer_forwards_optimizer_kwargs():CODE
LOWtests/training/test_auto_batch.py560def test_build_shadow_optimizer_does_not_raise_when_optimizer_kwargs_also_sets_lr():CODE
LOWtests/training/test_auto_batch.py572def test_build_shadow_optimizer_forwards_fused():CODE
LOWtests/training/test_auto_batch.py583def test_probe_max_micro_batch_restores_train_mode_when_shadow_optimizer_build_fails():CODE
LOWtests/training/test_auto_batch.py611def test_resolve_auto_batch_config_requires_cuda():CODE
LOWtests/training/test_auto_batch.py623def test_resolve_auto_batch_config_returns_expected_values():CODE
LOWtests/training/test_auto_batch.py657def test_resolve_auto_batch_config_scales_global_target_across_devices(CODE
LOWtests/training/test_auto_batch.py692def test_resolve_auto_batch_config_warns_when_optimizer_is_not_builtin_adamw():CODE
LOWtests/training/test_auto_batch.py718def test_resolve_auto_batch_config_does_not_warn_for_builtin_adamw():CODE
LOWtests/training/test_auto_batch.py741def test_resolve_auto_batch_config_forwards_optimizer_kwargs_for_builtin_adamw():CODE
LOWtests/training/test_auto_batch.py769def test_resolve_auto_batch_config_forwards_optimizer_kwargs_for_dotted_path_adamw():CODE
LOWtests/training/test_auto_batch.py797def test_resolve_auto_batch_config_does_not_forward_optimizer_kwargs_for_non_adamw():CODE
LOWtests/training/test_auto_batch.py884def test_resolve_auto_batch_config_does_not_force_fused_when_model_config_disables_it():CODE
LOWtests/training/test_auto_batch.py920def test_train_auto_batch_ensures_model_on_device_before_resolve(CODE
LOWtests/training/test_auto_batch.py971def test_probe_step_with_real_segmentation_criterion(tmp_path):CODE
LOWtests/training/conftest.py99def _restore_rfdetr_module_trainer_property():CODE
LOWtests/training/conftest.py119def _restore_rfdetr_datamodule_trainer_property():CODE
LOWtests/training/test_trainer_smoke.py67 def test_fit_runs_without_error(self, base_model_config, base_train_config):CODE
LOWtests/training/test_trainer_smoke.py93 def test_training_step_called_expected_times(self, base_model_config, base_train_config):CODE
LOWtests/training/test_trainer_smoke.py130 def test_val_step_called_expected_times(self, base_model_config, base_train_config):CODE
LOWtests/training/test_trainer_smoke.py167 def test_loss_decreases_or_is_finite(self, base_model_config, base_train_config):CODE
LOWtests/training/test_trainer_smoke.py212 def test_fit_runs_without_error(self, base_model_config, seg_train_config):CODE
LOWtests/training/test_trainer_smoke.py238 def test_segmentation_config_accepted(self, base_model_config, seg_train_config):CODE
LOWtests/training/test_trainer_smoke.py269 def test_fit_via_build_trainer(self, base_model_config, base_train_config):CODE
LOWtests/training/test_trainer_smoke.py354 def test_mutation_persists_to_training_step(self, base_model_config, base_train_config):CODE
LOWtests/training/test_trainer_smoke.py377def test_ddp_spawn_fit_runs_without_error(base_model_config, base_train_config):CODE
LOWtests/training/test_trainer_smoke.py408def test_ddp_spawn_multi_scale_mutation_propagates(base_model_config, base_train_config):CODE
LOWtests/training/test_coco_map.py452def test_adapter_rejects_stale_torchmetrics_state_contract() -> None:CODE
LOWtests/training/test_coco_map.py461def test_adapter_rejects_non_callable_coco_backend_factory() -> None:CODE
LOWtests/training/test_coco_map.py470def test_adapter_rejects_backend_method_missing_a_relied_on_parameter() -> None:CODE
LOWtests/training/test_coco_map.py22def test_one_pass_metric_matches_noncontiguous_per_class_results() -> None:CODE
LOWtests/training/test_coco_map.py51def test_class_metrics_use_one_coco_evaluator() -> None:CODE
LOWtests/training/test_coco_map.py78def test_metric_update_owns_cpu_state_and_ignores_non_metric_fields() -> None:CODE
LOWtests/training/test_coco_map.py107def test_class_metrics_disabled_keep_compact_sentinels() -> None:CODE
LOWtests/training/test_coco_map.py128def test_bbox_and_segmentation_results_match_torchmetrics() -> None:CODE
2982 more matches not shown…
Docstring Block Structure189 hits · 945 pts
SeverityFileLineSnippetContext
HIGHtests/_online.py14Report whether *host* accepts a TCP connection on *port* within *timeout_s*. Args: host: Hostname or IP addSTRING
HIGHtests/training/callbacks/test_best_model_callback.py37Create a minimal mock Trainer with controllable callback_metrics. Sets the attributes required by ModelCheckpoint aSTRING
HIGHtests/datasets/test_keypoint_schema.py31Write a minimal COCO annotation file. Args: path: Destination JSON path. categories: COCO category STRING
HIGHtests/datasets/test_coco.py1560Write a Roboflow-style COCO split whose category list starts with a synthetic root node. Args: directory: SSTRING
HIGHtests/legacy/test_checkpoint_compat.py99Parse a versions file and return a list of version strings. Args: versions_file: Path to the versions file.STRING
HIGHtests/legacy/test_checkpoint_compat.py131Return the expected checkpoint path for *version*. Args: version: rfdetr version string, e.g. ``"1.5.0"``. STRING
HIGHtests/legacy/test_checkpoint_compat.py151Return the artifact path for a legacy checkpoint prediction image. Args: version: Legacy RF-DETR version enSTRING
HIGHtests/legacy/generate_checkpoint.py79Download (once) and return the path to the fixed reference test image. Caches the file in a stable temp directory aSTRING
HIGHtests/legacy/generate_checkpoint.py118Extract the highest-confidence detection as a plain, picklable reference. ``class_id`` (not ``class_name``) is the STRING
HIGHtests/legacy/generate_checkpoint.py170Extract the bare model state-dict from an rfdetr facade instance. Tries the current layout (``model.model.model.staSTRING
HIGHtests/legacy/generate_checkpoint.py213Extract patch_size from an rfdetr facade instance. Args: model: An rfdetr facade instance. Returns: STRING
HIGHtests/legacy/generate_checkpoint.py239Instantiate an rfdetr model, falling back through available classes. Tries *preferred_class* first, then ``RFDETRBaSTRING
HIGHtests/legacy/generate_checkpoint.py319Best-effort check for whether *exc* looks like a network/infra failure, not a code bug. Walks the exception's ``__cSTRING
HIGHtests/models/test_model.py14Return the patch-embedding projection layer for an RF-DETR model. RFDETR wrappers are not nn.Module; the underlyingSTRING
HIGHtests/models/test_transformer_keypoints.py21Build minimal synthetic multi-scale inputs for `Transformer.forward`. Examples: >>> srcs, masks, pos_embedsSTRING
HIGHtests/models/test_transformer.py108Build minimal valid inputs for ms_deform_attn_core_pytorch. Examples: >>> value, spatial_shapes, sampling_lSTRING
HIGHtests/models/test_transformer.py1398Build batch=1 per-position class scores with `picks` as the strictly descending top-k winners. Args: total_STRING
HIGHtests/models/test_transformer.py1705Reproduce Transformer.forward's two-stage box construction from a bbox-delta MLP output. Args: delta: Raw `STRING
HIGHtests/models/heads/test_detection_head.py26Construct the smallest viable LWDETR without loading pretrained weights. Uses a MagicMock backbone and transformer STRING
HIGHtests/models/heads/test_detection_head.py61Construct a minimal keypoint-capable LWDETR with detection head resized to num_classes+1. Mirrors what happens afteSTRING
HIGHtests/models/heads/test_detection_head.py104Build a zero keypoint prediction tensor with the shape expected by _aggregate_keypoint_class_logits. The second-to-STRING
HIGHtests/benchmarks/test_inference_coco.py269Load a deterministic subset of COCO person-keypoint validation images. Args: images_root: Directory containSTRING
HIGHtests/benchmarks/test_inference_coco.py315Run keypoint-preview inference in fixed-size batches. Args: model: Loaded keypoint-preview model. iSTRING
HIGHtests/inference/test_from_checkpoint.py782Build a bool _kp_active_mask tensor encoding *schema* (mirrors LwDetr._create_kp_active_mask). Args: schemaSTRING
HIGHtests/evaluation/test_evaluation.py187Rasterise integer-aligned xyxy boxes into a boolean mask stack. Lets the ``iou_type="segm"`` path be driven by the STRING
HIGHtests/evaluation/test_evaluation.py217Naive, independently-written greedy matcher used as a ground-truth oracle. Reimplements the COCO greedy-matching coSTRING
HIGHtests/evaluation/test_evaluation.py829Build one random single-image bbox pred/target pair for the differential oracle. *num_shared_classes* random detectSTRING
HIGHtests/evaluation/test_evaluation.py896Independently compute build_matching_data's bbox-path output, per class, as an oracle. Mirrors the sharing strategySTRING
HIGHtests/evaluation/test_keypoint_oks.py82Build a minimal COCO GT object with a single annotation. Args: num_keypoints: Number of keypoints per instaSTRING
HIGHtests/evaluation/test_keypoint_oks.py133Build a per-image prediction dict for MetricKeypointOKS.update(). Args: image_id: COCO image ID. kpSTRING
HIGHtests/export/conftest.py36Build a deterministic, spatially correlated ``NCHW`` tensor for export parity. Combines a smooth spatial gradient wSTRING
HIGHtests/export/conftest.py75Load an RGB image, resize to square ``resolution``, and ImageNet-normalize (predict-style). Args: path: PatSTRING
HIGHtests/export/conftest.py109Run *example_input* through the eager export-mode model; return flattened float CPU output tensors. The export-modeSTRING
HIGHtests/export/conftest.py153Pair eager and backend output tensors positionally; return per-output max-abs-diff. Args: eager_tensors: ReSTRING
HIGHtests/export/test_roboflow_deploy_e2e.py64Generate a new dataset version (no preprocessing/augmentation) and wait until it is listed. Args: project: STRING
HIGHtests/export/test_roboflow_deploy_e2e.py94Poll the Roboflow version endpoint until a trained model appears or the timeout elapses. Args: workspace: RSTRING
HIGHtests/export/test_executorch_export.py827Compare ExecuTorch detection outputs (boxes, logits) to eager export-mode PyTorch. Args: pte_path: Path to STRING
HIGHtests/export/test_executorch_export.py853Compare ExecuTorch segmentation outputs (boxes, logits, masks) to eager export-mode PyTorch. Args: pte_pathSTRING
HIGHtests/export/test_executorch_export.py907Return the op name of every non-delegated (portable) kernel call in a ``.pte``, one entry per call. Args: pSTRING
HIGHtests/export/test_tflite_inference.py696Build a mock interpreter for a 3-output export whose rank-4 output carries no kind in its name. ``onnx2tf`` does noSTRING
HIGHtests/export/test_tflite_export.py1293Run the preload with a stubbed ``importlib.import_module`` and return the stub. Args: monkeypatch: STRING
HIGHtests/export/test_onnx_notes.py37Export a tiny model to ONNX and return the output file path. Args: tmp_path: Temporary directory provided bSTRING
HIGHtests/export/test_coreml_export.py54Run *example_input* through eager export-mode PyTorch and CoreML; return per-output max-abs-diff. Export-mode ``forSTRING
HIGHtests/export/test_coreml_export.py98Compare CoreML detection outputs (boxes, logits) to eager export-mode PyTorch. Args: mlpackage_path: Path tSTRING
HIGHtests/export/test_coreml_export.py128Compare CoreML segmentation outputs (boxes, logits, masks) to eager export-mode PyTorch. Args: mlpackage_paSTRING
HIGHdocs/hooks/cookbooks_cards.py15Load cookbook card definitions from a YAML file. Reads the YAML file and returns the ``cards`` list, which is consuSTRING
HIGHdocs/hooks/cookbooks_cards.py47Expose cookbook card data to MkDocs templates. Adds ``config.extra.cookbooks_cards`` so the cookbooks landing-page STRING
HIGHdocs/hooks/package_version.py19Load project metadata from a pyproject file. Reads the TOML file in binary mode, matching the parser API. The returSTRING
HIGHdocs/hooks/package_version.py47Read the package version from pyproject project metadata. Validates that the version exists and is a string before STRING
HIGHdocs/hooks/package_version.py74Expose the package version to MkDocs templates. Adds ``config.extra.software_version`` so schema.org JSON-LD can stSTRING
HIGH.github/CONTRIBUTING.md444 Provides a brief description of function behavior. Args: param1: Explanation of the first parameter's STRING
HIGHsrc/rfdetr/detr.py63Convert a normalized CHW tensor into the uint8 HWC source-image representation. For a CUDA tensor in ``float16``/``STRING
HIGHsrc/rfdetr/detr.py96Convert a 2-D/3-D uint8 image to contiguous CHW floating-point storage. This is the uint8 branch of ``torchvision.tSTRING
HIGHsrc/rfdetr/detr.py175Validate a user-supplied ``(height, width)`` shape tuple and return normalised plain-int dims. Args: shape:STRING
HIGHsrc/rfdetr/detr.py219Resolve and validate the ``patch_size`` argument for :meth:`RFDETR.export` and :meth:`RFDETR.predict`. Args: STRING
HIGHsrc/rfdetr/detr.py306Absorb the special run kwargs and build a :class:`~rfdetr.config.TrainConfig`. Shared by :meth:`RFDETR.train` and :STRING
HIGHsrc/rfdetr/detr.py511Load an RF-DETR model from a training checkpoint, automatically inferring the model class. The correct subclassSTRING
HIGHsrc/rfdetr/detr.py848Map a torch-style device specifier to PTL ``accelerator``/``devices`` kwargs. Args: device: A devicSTRING
HIGHsrc/rfdetr/detr.py1107Evaluate the current model on a dataset split and return COCO metrics. Runs a single evaluation pass over the rSTRING
HIGHsrc/rfdetr/detr.py1272Optimize the model for inference with optional JIT compilation and dtype casting. Operations are wrapped in theSTRING
129 more matches not shown…
Unused Imports237 hits · 219 pts
SeverityFileLineSnippetContext
LOWtests/_online.py8CODE
LOWtests/training/test_metrics_csv.py16CODE
LOWtests/training/test_cli.py25CODE
LOWtests/training/test_trainer.py8CODE
LOWtests/training/helpers.py14CODE
LOW…ing/callbacks/test_gpu_memory_progress_bar_callback.py8CODE
LOWtests/training/callbacks/test_ema_callback.py8CODE
LOWtests/training/callbacks/test_best_model_callback.py8CODE
LOWtests/training/callbacks/test_drop_path_callback.py8CODE
LOWtests/datasets/test_o365.py13CODE
LOWtests/datasets/test__torchvision.py8CODE
LOWtests/legacy/test_checkpoint_compat.py23CODE
LOWtests/legacy/generate_checkpoint.py36CODE
LOWtests/legacy/test_generate_checkpoint.py13CODE
LOWtests/models/test_safe_torch_load.py11CODE
LOWtests/models/test_math.py8CODE
LOWtests/models/backbone/test_backbone.py8CODE
LOWtests/visualize/test_training.py8CODE
LOWtests/utilities/test_logger.py19CODE
LOWtests/inference/test_model_device_move.py14CODE
LOWtests/inference/test_from_checkpoint.py12CODE
LOWtests/inference/helpers.py14CODE
LOWtests/export/test_onnx_inference.py14CODE
LOWtests/export/conftest.py16CODE
LOWtests/export/test_topk_selection_parity.py22CODE
LOWtests/export/test_roboflow_deploy_e2e.py30CODE
LOWtests/export/test_class_layout.py8CODE
LOWtests/export/test_parity_helpers.py13CODE
LOWtests/export/test_executorch_export.py16CODE
LOWtests/export/test_onnx_preprocess_parity.py14CODE
LOWtests/export/test_infer_preprocess_parity.py15CODE
LOWtests/export/test_export_for_roboflow.py13CODE
LOWtests/export/test_naming.py15CODE
LOWtests/export/test_coreml_op_coverage.py16CODE
LOWtests/export/test_tflite_inference.py14CODE
LOWtests/export/test_tensorrt_export.py13CODE
LOWtests/export/test_tflite_export.py20CODE
LOWtests/export/test_tflite_export.py1194CODE
LOWtests/export/test_tflite_inference_parity.py20CODE
LOWtests/export/test_coreml_export.py19CODE
LOWsrc/rfdetr/detr.py6CODE
LOWsrc/rfdetr/variants.py13CODE
LOWsrc/rfdetr/__init__.py45CODE
LOWsrc/rfdetr/__init__.py46CODE
LOWsrc/rfdetr/__init__.py46CODE
LOWsrc/rfdetr/__init__.py46CODE
LOWsrc/rfdetr/__init__.py46CODE
LOWsrc/rfdetr/__init__.py46CODE
LOWsrc/rfdetr/__init__.py46CODE
LOWsrc/rfdetr/__init__.py46CODE
LOWsrc/rfdetr/__init__.py46CODE
LOWsrc/rfdetr/__init__.py46CODE
LOWsrc/rfdetr/__init__.py46CODE
LOWsrc/rfdetr/__init__.py46CODE
LOWsrc/rfdetr/__init__.py46CODE
LOWsrc/rfdetr/__init__.py46CODE
LOWsrc/rfdetr/__init__.py46CODE
LOWsrc/rfdetr/inference.py8CODE
LOWsrc/rfdetr/inference.py12CODE
LOWsrc/rfdetr/training/module_data.py8CODE
177 more matches not shown…
Over-Commented Block79 hits · 70 pts
SeverityFileLineSnippetContext
LOWmkdocs.yaml81COMMENT
LOWpyproject.toml121 "executorch>=1.3,<2.0; python_version < '3.14'",COMMENT
LOWpyproject.toml341 "e2e_coreml: CoreML end-to-end convert + numerical parity (structured and photo inputs; opt-in)",COMMENT
LOWtests/__init__.py1# ------------------------------------------------------------------------COMMENT
LOWtests/training/__init__.py1# ------------------------------------------------------------------------COMMENT
LOWtests/training/callbacks/__init__.py1# ------------------------------------------------------------------------COMMENT
LOWtests/datasets/__init__.py1# ------------------------------------------------------------------------COMMENT
LOWtests/legacy/__init__.py1# ------------------------------------------------------------------------COMMENT
LOWtests/legacy/checkpoint_versions.txt1# RF-DETR versions to include in backward-compatibility checkpoint matrix.COMMENT
LOWtests/legacy/frozen_dependencies/req-1.7.txt1# Frozen dependency set for generating the rfdetr~=1.7.0 legacy checkpointCOMMENT
LOWtests/legacy/frozen_dependencies/req-1.6.txt1# Frozen dependency set for generating the rfdetr~=1.6.0 legacy checkpointCOMMENT
LOWtests/legacy/frozen_dependencies/req-1.4.txt1# Frozen dependency set for generating the rfdetr~=1.4.0 legacy checkpointCOMMENT
LOWtests/legacy/frozen_dependencies/req-1.5.txt1# Frozen dependency set for generating the rfdetr~=1.5.0 legacy checkpointCOMMENT
LOWtests/legacy/frozen_dependencies/req-1.8.txt1# Frozen dependency set for generating the rfdetr~=1.8.0 legacy checkpointCOMMENT
LOWtests/models/__init__.py1# ------------------------------------------------------------------------COMMENT
LOWtests/models/heads/__init__.py1# ------------------------------------------------------------------------COMMENT
LOWtests/models/backbone/__init__.py1# ------------------------------------------------------------------------COMMENT
LOWtests/cli/__init__.py1# ------------------------------------------------------------------------COMMENT
LOWtests/utilities/__init__.py1# ------------------------------------------------------------------------COMMENT
LOWtests/inference/__init__.py1# ------------------------------------------------------------------------COMMENT
LOWtests/evaluation/__init__.py1# ------------------------------------------------------------------------COMMENT
LOWtests/export/__init__.py1# ------------------------------------------------------------------------COMMENT
LOWtests/export/test_coreml_export.py361 ("RFDETRSegNano", validate_segmentation_coreml_vs_pytorch),COMMENT
LOWtests/assets/__init__.py1# ------------------------------------------------------------------------COMMENT
LOW.github/workflows/ci-integrations.yml81 timeout-minutes: 8COMMENT
LOW.github/workflows/ci-tests-xla.yml1name: XLA tests WorkflowCOMMENT
LOW.github/workflows/publish-docs.yml1# Build and deploy MkDocs documentation to GitHub Pages (https://rfdetr.roboflow.com/)COMMENT
LOWsrc/rfdetr/detr.py801 checkpoint_config_keys.add("num_classes")COMMENT
LOWsrc/rfdetr/detr.py981COMMENT
LOWsrc/rfdetr/detr.py2421 images = [images]COMMENT
LOWsrc/rfdetr/detr.py2521 # A pageable-memory .to(device) copy onto CUDA is slower than a pinned-memory one: the driver has toCOMMENT
LOWsrc/rfdetr/config.py621 # architecture overrides against the class defaults.COMMENT
LOWsrc/rfdetr/config.py1021 # autograd activation storage, but in-fit validation still shares device memory with the model and optimizerCOMMENT
LOWsrc/rfdetr/config.py1061 square_resize_div_64: bool = TrueCOMMENT
LOWsrc/rfdetr/config.py1081 # selected (EMA) model, mirrored from the EMA track by COCOEvalCallback so every scheduler,COMMENT
LOWsrc/rfdetr/training/module_model.py361 # Manual optimization is enabled only for keypoint models so that the box-countCOMMENT
LOWsrc/rfdetr/training/module_model.py421 logger.info(COMMENT
LOWsrc/rfdetr/training/module_model.py1241 # the keypoint path runs with ``Trainer(accumulate_grad_batches=1)`` and managesCOMMENT
LOWsrc/rfdetr/training/trainer.py61# ---------------------------------------------------------------------------COMMENT
LOWsrc/rfdetr/training/trainer.py541 # CPU accelerator: bf16 autocast on macOS CPU (Apple Silicon) is ~13x slowerCOMMENT
LOWsrc/rfdetr/training/trainer.py661 elif strategy_name == "ddp" or (strategy_name == "auto" and distributed_requested):COMMENT
LOWsrc/rfdetr/training/callbacks/best_model.py521 # inside _save_checkpoint (which receives no pl_module param).COMMENT
LOWsrc/rfdetr/training/callbacks/coco_eval.py881 # (coco_map.py) always returns `classes` and `*_per_class` as 1-d tensors, even for a singleCOMMENT
LOWsrc/rfdetr/datasets/coco.py1# ------------------------------------------------------------------------COMMENT
LOWsrc/rfdetr/datasets/transforms.py1# ------------------------------------------------------------------------COMMENT
LOWsrc/rfdetr/datasets/__init__.py1# ------------------------------------------------------------------------COMMENT
LOWsrc/rfdetr/models/matcher.py1# ------------------------------------------------------------------------COMMENT
LOWsrc/rfdetr/models/matcher.py381 )COMMENT
LOWsrc/rfdetr/models/matcher.py721 # Off CUDA the same call resolves to SciPy anyway, only behind extra stacking andCOMMENT
LOWsrc/rfdetr/models/position_encoding.py1# ------------------------------------------------------------------------COMMENT
LOWsrc/rfdetr/models/postprocess.py1# ------------------------------------------------------------------------COMMENT
LOWsrc/rfdetr/models/__init__.py1# ------------------------------------------------------------------------COMMENT
LOWsrc/rfdetr/models/transformer.py1# ------------------------------------------------------------------------COMMENT
LOWsrc/rfdetr/models/transformer.py321 # contiguous. Current nondeprecated models use one projector level; contiguous() is then a no-op, whileCOMMENT
LOWsrc/rfdetr/models/math.py1# ------------------------------------------------------------------------COMMENT
LOWsrc/rfdetr/models/criterion.py161 sampled = (COMMENT
LOWsrc/rfdetr/models/criterion.py921 >>> outputs = {"pred_logits": torch.zeros(1, 1, 1)}COMMENT
LOWsrc/rfdetr/models/lwdetr.py1# ------------------------------------------------------------------------COMMENT
LOWsrc/rfdetr/models/heads/keypoints.py201 logger.warning(COMMENT
LOWsrc/rfdetr/models/ops/__init__.py1# ------------------------------------------------------------------------COMMENT
19 more matches not shown…
Hallucination Indicators4 hits · 60 pts
SeverityFileLineSnippetContext
CRITICALtests/models/backbone/test_windowed_dino.py494 before = [layer.attention.attention.query.weight.clone() for layer in model.encoder.layer]CODE
CRITICALtests/models/backbone/test_windowed_dino.py509 key_before = [layer.attention.attention.key.weight.clone() for layer in model.encoder.layer]CODE
CRITICALtests/models/backbone/test_windowed_dino.py510 val_before = [layer.attention.attention.value.weight.clone() for layer in model.encoder.layer]CODE
CRITICALtests/models/backbone/test_windowed_dino.py527 dense_before = [layer.attention.output.dense.weight.clone() for layer in model.encoder.layer]CODE
Modern Structural Boilerplate40 hits · 47 pts
SeverityFileLineSnippetContext
LOWtests/training/test_detr_shim.py1354 def _set_class_names(mock_self: MagicMock, class_names: list[str]) -> None:CODE
LOWtests/training/helpers.py35 def update_drop_path(self, *args, **kwargs) -> None:CODE
LOWtests/training/helpers.py38 def update_dropout(self, *args, **kwargs) -> None:CODE
LOWsrc/rfdetr/detr.py139__all__ = ["RFDETR", "ModelContext", *_VARIANT_EXPORTS]CODE
LOWsrc/rfdetr/config.py27__all__ = [CODE
LOWsrc/rfdetr/variants.py15__all__ = [CODE
LOWsrc/rfdetr/__init__.py63__all__ = [CODE
LOWsrc/rfdetr/inference.py10__all__ = ["ModelContext"]CODE
LOWsrc/rfdetr/training/module_data.py667 def _setup_kornia_pipeline(self) -> None:CODE
LOWsrc/rfdetr/training/checkpoint.py22logger = logging.getLogger(__name__)CODE
LOWsrc/rfdetr/training/checkpoint.py24__all__ = ["convert_legacy_checkpoint"]CODE
LOWsrc/rfdetr/training/model_ema.py138__all__ = [CODE
LOWsrc/rfdetr/training/__init__.py36__all__ = [CODE
LOWsrc/rfdetr/training/callbacks/__init__.py17__all__ = [CODE
LOWsrc/rfdetr/training/callbacks/coco_eval.py1062 def _update_keypoint_oks_metric(self, trainer: Any, outputs: Mapping[str, Any], split: str) -> None:CODE
LOWsrc/rfdetr/datasets/synthetic.py26logger = logging.getLogger(__name__)CODE
LOWsrc/rfdetr/datasets/aug_config.py32__all__ = [CODE
LOWsrc/rfdetr/datasets/_keypoint_schema.py20__all__ = [CODE
LOWsrc/rfdetr/models/__init__.py24__all__ = [CODE
LOWsrc/rfdetr/models/weights.py35__all__ = ["load_pretrain_weights", "apply_lora", "interpolate_position_embeddings"]CODE
LOWsrc/rfdetr/models/lwdetr.py751 def update_drop_path(self, drop_path_rate: float, vit_encoder_num_layers: int) -> None:CODE
LOWsrc/rfdetr/models/lwdetr.py770 def update_dropout(self, drop_rate: float) -> None:CODE
LOWsrc/rfdetr/models/heads/__init__.py11__all__ = [CODE
LOWsrc/rfdetr/models/heads/keypoints.py601__all__ = [CODE
LOWsrc/rfdetr/models/ops/functions/__init__.py18__all__ = [CODE
LOWsrc/rfdetr/models/ops/modules/__init__.py15__all__ = [CODE
LOWsrc/rfdetr/models/backbone/dinov2_with_windowed_attn.py969 def set_attn_implementation(self, attn_implementation: str) -> None: # type: ignore[override]STRING
LOWsrc/rfdetr/models/backbone/dinov2_with_windowed_attn.py1370__all__ = [STRING
LOWsrc/rfdetr/models/backbone/backbone.py33__all__ = ["Backbone"]CODE
LOWsrc/rfdetr/cli/__init__.py14__all__ = ["main"]CODE
LOWsrc/rfdetr/visualize/__init__.py11__all__ = [CODE
LOWsrc/rfdetr/utilities/__init__.py35__all__ = [CODE
LOWsrc/rfdetr/utilities/keypoints.py15__all__ = [CODE
LOWsrc/rfdetr/utilities/decorators.py14__all__ = ["TargetMode", "deprecated", "void"]CODE
LOWsrc/rfdetr/evaluation/__init__.py14__all__ = [CODE
LOWsrc/rfdetr/export/_onnx/exporter.py327 def set_severity(self, severity: object) -> None:CODE
LOWsrc/rfdetr/export/_onnx/__init__.py16__all__ = [CODE
LOWsrc/rfdetr/export/_tflite/__init__.py16__all__ = ["export_tflite", "_IS_ONNX2TF_AVAILABLE"]CODE
LOWsrc/rfdetr/export/_executorch/__init__.py19__all__ = ["export_executorch"]CODE
LOWsrc/rfdetr/assets/__init__.py14__all__ = [CODE
Deep Nesting48 hits · 39 pts
SeverityFileLineSnippetContext
LOWtests/run_smoke_all_models.py230CODE
LOWtests/training/test_detr_shim.py722CODE
LOWsrc/rfdetr/detr.py303CODE
LOWsrc/rfdetr/detr.py510CODE
LOWsrc/rfdetr/detr.py1106CODE
LOWsrc/rfdetr/detr.py1547CODE
LOWsrc/rfdetr/detr.py2126CODE
LOWsrc/rfdetr/detr.py2299CODE
LOWsrc/rfdetr/config.py181CODE
LOWsrc/rfdetr/config.py566CODE
LOWsrc/rfdetr/training/coco_map.py205CODE
LOWsrc/rfdetr/training/module_data.py204CODE
LOWsrc/rfdetr/training/module_data.py767CODE
LOWsrc/rfdetr/training/module_model.py1184CODE
LOWsrc/rfdetr/training/module_model.py1361CODE
LOWsrc/rfdetr/training/auto_batch.py544CODE
LOWsrc/rfdetr/training/callbacks/best_model.py146CODE
LOWsrc/rfdetr/training/callbacks/best_model.py581CODE
LOWsrc/rfdetr/training/callbacks/ema.py141CODE
LOWsrc/rfdetr/datasets/synthetic.py196CODE
LOWsrc/rfdetr/datasets/synthetic.py310CODE
LOWsrc/rfdetr/datasets/coco.py514CODE
LOWsrc/rfdetr/datasets/coco.py649CODE
LOWsrc/rfdetr/datasets/transforms.py661CODE
LOWsrc/rfdetr/datasets/transforms.py690CODE
LOWsrc/rfdetr/datasets/_torchvision.py512CODE
LOWsrc/rfdetr/datasets/kornia_transforms.py305CODE
LOWsrc/rfdetr/datasets/yolo.py350CODE
LOWsrc/rfdetr/datasets/_develop.py209CODE
LOWsrc/rfdetr/datasets/_develop.py258CODE
LOWsrc/rfdetr/models/postprocess.py173CODE
LOWsrc/rfdetr/models/transformer.py611CODE
LOWsrc/rfdetr/models/criterion.py468CODE
LOWsrc/rfdetr/models/weights.py309CODE
LOWsrc/rfdetr/models/backbone/dinov2_with_windowed_attn.py1140CODE
LOWsrc/rfdetr/models/backbone/dinov2_with_windowed_attn.py1265CODE
LOWsrc/rfdetr/models/backbone/projector.py69CODE
LOWsrc/rfdetr/models/backbone/projector.py194CODE
LOWsrc/rfdetr/visualize/training.py90CODE
LOWsrc/rfdetr/utilities/files.py57CODE
LOWsrc/rfdetr/evaluation/coco_eval.py420CODE
LOWsrc/rfdetr/evaluation/matching.py167CODE
LOWsrc/rfdetr/export/benchmark.py416CODE
LOWsrc/rfdetr/export/main.py172CODE
LOWsrc/rfdetr/export/_onnx/exporter.py558CODE
LOWsrc/rfdetr/export/_onnx/exporter.py624CODE
LOWsrc/rfdetr/export/_tflite/converter.py746CODE
LOWsrc/rfdetr/export/_executorch/converter.py278CODE
Cross-File Repetition6 hits · 30 pts
SeverityFileLineSnippetContext
HIGHtests/export/test_onnx_preprocess_parity.py0mirror of the pytorch predict() preprocessing: to_tensor -> resize(antialias=false) -> normalize. examples: >>> import nSTRING
HIGHtests/export/test_infer_preprocess_parity.py0mirror of the pytorch predict() preprocessing: to_tensor -> resize(antialias=false) -> normalize. examples: >>> import nSTRING
HIGHtests/export/test_tflite_inference_parity.py0mirror of the pytorch predict() preprocessing: to_tensor -> resize(antialias=false) -> normalize. examples: >>> import nSTRING
HIGHtests/export/test_onnx_preprocess_parity.py0deterministic synthetic rgb image with structure (not pure noise) so resize filtering matters. examples: >>> img = _makeSTRING
HIGHtests/export/test_infer_preprocess_parity.py0deterministic synthetic rgb image with structure (not pure noise) so resize filtering matters. examples: >>> img = _makeSTRING
HIGHtests/export/test_tflite_inference_parity.py0deterministic synthetic rgb image with structure (not pure noise) so resize filtering matters. examples: >>> img = _makeSTRING
Magic Placeholder Names5 hits · 25 pts
SeverityFileLineSnippetContext
HIGHdocs/learn/deploy.md29 api_key="<YOUR_API_KEY>",CODE
HIGHdocs/learn/deploy.md29 api_key="<YOUR_API_KEY>",CODE
HIGHdocs/learn/deploy.md42 api_key="<YOUR_API_KEY>",CODE
HIGHdocs/learn/deploy.md42 api_key="<YOUR_API_KEY>",CODE
HIGHdocs/root-static/llms-full.txt255 api_key="YOUR_API_KEY"CODE
Self-Referential Comments8 hits · 22 pts
SeverityFileLineSnippetContext
MEDIUMtests/training/callbacks/test_coco_eval_callback.py630 # Create a fake callback whose class name is RichProgressBar soCOMMENT
MEDIUMtests/assets/test_downloads.py192 # Create a mock asset without MD5COMMENT
MEDIUMtests/assets/test_downloads.py206 # Create a mock asset without MD5COMMENT
MEDIUMsrc/rfdetr/datasets/yolo.py833 >>> # Create a sample image and targetSTRING
MEDIUMsrc/rfdetr/models/backbone/dinov2.py127 # Create the encoderCOMMENT
MEDIUMsrc/rfdetr/models/backbone/dinov2.py255 # Create a new Parameter with the new sizeCOMMENT
MEDIUMsrc/rfdetr/models/backbone/projector.py189 """This module implements MultiScaleProjector in :paper:`lwdetr`.STRING
MEDIUMsrc/rfdetr/utilities/state_dict.py209 # Create the temp file in the destination directory so os.replace stays on the same filesystem (atomic).COMMENT
Excessive Try-Catch Wrapping21 hits · 17 pts
SeverityFileLineSnippetContext
LOWtests/run_smoke_all_models.py275 except Exception as ex:CODE
LOWtests/conftest.py42 except Exception as exc:CODE
LOWtests/legacy/generate_checkpoint.py292 except Exception as exc:CODE
LOWtests/export/test_executorch_export.py188 except Exception:CODE
LOWtests/export/test_executorch_export.py204 except Exception:CODE
LOWtests/export/test_coreml_op_coverage.py165 except Exception:CODE
LOWtests/export/test_coreml_op_coverage.py197 except Exception:CODE
LOWsrc/rfdetr/detr.py54except Exception:CODE
LOWsrc/rfdetr/detr.py976 except Exception:CODE
LOWsrc/rfdetr/detr.py1419 except Exception:CODE
LOWsrc/rfdetr/training/trainer.py528 except Exception: # defensive parity with the rfdetr.detr import-time guardCODE
LOWsrc/rfdetr/datasets/transforms.py1059 except Exception as e:CODE
LOWsrc/rfdetr/models/weights.py371 except Exception:CODE
LOWsrc/rfdetr/utilities/files.py104 except Exception:CODE
LOWsrc/rfdetr/utilities/files.py120 except Exception:CODE
LOWsrc/rfdetr/export/_coreml/converter.py187 except Exception as exc:CODE
LOWsrc/rfdetr/export/_coreml/op_coverage.py41 except Exception:CODE
LOWsrc/rfdetr/export/_tflite/converter.py472 except Exception as exc:CODE
LOWsrc/rfdetr/export/_tflite/converter.py711 except Exception:CODE
LOWsrc/rfdetr/export/_tflite/converter.py1053 except Exception as exc:CODE
LOWsrc/rfdetr/export/_executorch/converter.py422 except Exception as exc:CODE
AI Structural Patterns19 hits · 17 pts
SeverityFileLineSnippetContext
LOWtests/export/test_export.py447CODE
LOWsrc/rfdetr/detr.py1547CODE
LOWsrc/rfdetr/training/coco_map.py125CODE
LOWsrc/rfdetr/training/auto_batch.py331CODE
LOWsrc/rfdetr/training/callbacks/coco_eval.py151CODE
LOWsrc/rfdetr/datasets/coco.py1099CODE
LOWsrc/rfdetr/datasets/coco.py1208CODE
LOWsrc/rfdetr/models/matcher.py93CODE
LOWsrc/rfdetr/models/transformer.py150CODE
LOWsrc/rfdetr/models/transformer.py571CODE
LOWsrc/rfdetr/models/transformer.py651CODE
LOWsrc/rfdetr/models/transformer.py814CODE
LOWsrc/rfdetr/models/transformer.py918CODE
LOWsrc/rfdetr/models/transformer.py1076CODE
LOWsrc/rfdetr/models/lwdetr.py121CODE
LOWsrc/rfdetr/models/backbone/dinov2_with_windowed_attn.py676CODE
LOWsrc/rfdetr/models/backbone/dinov2_with_windowed_attn.py235CODE
LOWsrc/rfdetr/models/backbone/dinov2.py101CODE
LOWsrc/rfdetr/models/backbone/backbone.py39CODE
Example Usage Blocks11 hits · 16 pts
SeverityFileLineSnippetContext
LOWconfigs/rfdetr_seg_small.yaml2# Usage:COMMENT
LOWconfigs/rfdetr_seg_2xlarge.yaml2# Usage:COMMENT
LOWconfigs/rfdetr_seg_large.yaml2# Usage:COMMENT
LOWconfigs/rfdetr_seg_nano.yaml2# Usage:COMMENT
LOWconfigs/rfdetr_seg_xlarge.yaml2# Usage:COMMENT
LOWconfigs/rfdetr_base.yaml2# Usage:COMMENT
LOWconfigs/rfdetr_medium.yaml2# Usage:COMMENT
LOWconfigs/rfdetr_seg_medium.yaml2# Usage:COMMENT
LOWconfigs/rfdetr_small.yaml2# Usage:COMMENT
LOWconfigs/rfdetr_nano.yaml2# Usage:COMMENT
LOWconfigs/rfdetr_large.yaml2# Usage:COMMENT
AI Slop Vocabulary5 hits · 12 pts
SeverityFileLineSnippetContext
LOWtests/training/test_drop_path.py139 # Should not raise an error, just return earlyCOMMENT
MEDIUMtests/inference/test_predict.py1829 """``predict()`` URL handling: robust HTTP fetch and correct local-path classification."""STRING
MEDIUMtests/export/test_executorch_export.py817# random weights); the bound keeps modest headroom, robust to BLAS/XNNPACK build differences while stillCOMMENT
MEDIUMsrc/rfdetr/export/_onnx/inference.py207 # Match by name so the code is robust to output reordering.COMMENT
MEDIUMsrc/rfdetr/export/_tflite/inference.py240 # Match by name so the code is robust to onnx2tf output reordering.COMMENT
Modern AI Meta-Vocabulary1 hit · 4 pts
SeverityFileLineSnippetContext
MEDIUMtests/export/test_export.py988 # patch_size=14, num_windows=3 → block_size=42; scaffold sets resolution=84 (42*2) which is validCOMMENT
Fake / Example Data8 hits · 4 pts
SeverityFileLineSnippetContext
LOWtests/training/test_detr_shim.py1387 api_key="dummy-key",CODE
LOWtests/training/test_detr_shim.py1420 api_key="dummy-key",CODE
LOWtests/training/test_detr_shim.py1452 api_key="dummy-key",CODE
LOWtests/training/test_detr_shim.py1480 api_key="dummy-key",CODE
LOWtests/training/test_detr_shim.py1506 api_key="dummy-key",CODE
LOWtests/training/test_detr_shim.py1533 api_key="dummy-key",CODE
LOWtests/training/test_detr_shim.py1552 api_key="dummy-key",CODE
LOWtests/training/test_detr_shim.py1612 api_key="dummy-key",CODE
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWsrc/rfdetr/assets/model_weights.py430 # Check if we have a hash for this modelCOMMENT