RF-DETR is a real-time object detection and segmentation model architecture developed by Roboflow, SOTA on COCO, designed for fine-tuning. [ICLR 2026]
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).
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.
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.
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.
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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | AGENTS.md | 159 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM | AGENTS.md | 163 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM | tests/run_smoke_all_models.py | 2 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM | tests/run_smoke_all_models.py | 6 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM | tests/conftest.py | 1 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM | tests/conftest.py | 5 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM | tests/__init__.py | 1 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM | tests/__init__.py | 5 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM | tests/_online.py | 1 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM | tests/_online.py | 5 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM | tests/training/test_metrics_csv.py | 1 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM | tests/training/test_metrics_csv.py | 5 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM | tests/training/test_metrics_csv.py | 31 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/training/test_metrics_csv.py | 33 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/training/test_metrics_csv.py | 90 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/training/test_metrics_csv.py | 92 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/training/test_metrics_csv.py | 113 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/training/test_metrics_csv.py | 115 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/training/test_auto_batch.py | 1 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM | tests/training/test_auto_batch.py | 5 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM | tests/training/conftest.py | 1 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM | tests/training/conftest.py | 5 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM | tests/training/conftest.py | 16 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/training/conftest.py | 19 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/training/conftest.py | 93 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/training/conftest.py | 95 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/training/test_trainer_smoke.py | 1 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM | tests/training/test_trainer_smoke.py | 5 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM | tests/training/test_trainer_smoke.py | 37 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/training/test_trainer_smoke.py | 39 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/training/test_trainer_smoke.py | 59 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/training/test_trainer_smoke.py | 61 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/training/test_trainer_smoke.py | 341 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/training/test_trainer_smoke.py | 343 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/training/test_coco_map.py | 1 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM | tests/training/test_coco_map.py | 5 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | tests/training/test_detr_shim.py | 110 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/training/test_detr_shim.py | 112 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/training/test_detr_shim.py | 411 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/training/test_detr_shim.py | 413 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/training/test_detr_shim.py | 587 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/training/test_detr_shim.py | 589 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/training/test_detr_shim.py | 1012 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/training/test_detr_shim.py | 1014 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/training/test_detr_shim.py | 1267 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/training/test_detr_shim.py | 1269 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/training/test_detr_shim.py | 1723 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/training/test_detr_shim.py | 1725 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/training/test_detr_shim.py | 1 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM | tests/training/test_detr_shim.py | 5 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM | tests/training/test_detr_shim.py | 38 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/training/test_detr_shim.py | 40 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/training/test_detr_shim.py | 710 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/training/test_detr_shim.py | 712 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/training/test_detr_shim.py | 911 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/training/test_detr_shim.py | 913 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/training/test_detr_shim.py | 1183 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/training/test_detr_shim.py | 1185 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/training/test_detr_shim.py | 1322 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/training/test_detr_shim.py | 1324 | # --------------------------------------------------------------------------- | COMMENT |
| 978 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/run_smoke_all_models.py | 171 | def _test_coco_class_name_mapping(model_instance: object) -> None: | CODE |
| LOW | tests/conftest.py | 53 | def synthetic_shape_dataset_dir(tmp_path_factory: pytest.TempPathFactory) -> Generator[Path, Any, None]: | CODE |
| LOW | tests/conftest.py | 90 | def synthetic_shape_segmentation_dataset_dir( | CODE |
| LOW⚡ | tests/training/test_metrics_csv.py | 121 | def test_base_metrics_present_without_ema(self, base_model_config, base_train_config): | CODE |
| LOW | tests/training/test_metrics_csv.py | 134 | def test_ema_metrics_present_with_ema_enabled(self, base_model_config, base_train_config): | CODE |
| LOW | tests/training/test_metrics_csv.py | 147 | def test_train_loss_is_unscaled(self, base_model_config, base_train_config): | CODE |
| LOW | tests/training/test_metrics_csv.py | 252 | def test_history_preserved_across_resume(self, base_model_config, base_train_config): | CODE |
| LOW | tests/training/test_metrics_csv.py | 284 | def test_reused_output_dir_with_empty_resume_resets_history(self, base_model_config, base_train_config): | CODE |
| LOW | tests/training/test_metrics_csv.py | 307 | def test_reused_output_dir_without_resume_resets_history(self, base_model_config, base_train_config): | CODE |
| LOW | tests/training/test_auto_batch.py | 25 | def test_recommend_grad_accum_steps_rounds_up(): | CODE |
| LOW | tests/training/test_auto_batch.py | 29 | def test_probe_max_micro_batch_uses_exponential_then_binary_search(): | CODE |
| LOW | tests/training/test_auto_batch.py | 55 | def test_probe_max_micro_batch_raises_if_one_is_not_safe(): | CODE |
| LOW | tests/training/test_auto_batch.py | 74 | def test_probe_max_micro_batch_reprobes_batch_one_with_state_resident(): | CODE |
| LOW | tests/training/test_auto_batch.py | 110 | def test_probe_max_micro_batch_warms_up_state_before_exponential_search(): | CODE |
| LOW | tests/training/test_auto_batch.py | 142 | def test_probe_max_micro_batch_raises_before_building_shadow_optimizer_when_no_trainable_params(): | CODE |
| LOW | tests/training/test_auto_batch.py | 169 | def test_probe_step_raises_when_loss_keys_do_not_overlap_weight_keys(): | CODE |
| LOW | tests/training/test_auto_batch.py | 214 | def test_probe_step_rejects_trainable_params_shadow_args_passed_positionally(): | CODE |
| LOW | tests/training/test_auto_batch.py | 304 | def test_does_not_mutate_real_model_parameters(self) -> None: | CODE |
| LOW | tests/training/test_auto_batch.py | 335 | def test_populates_shadow_optimizer_state(self) -> None: | CODE |
| LOW | tests/training/test_auto_batch.py | 348 | def test_shadow_optimizer_state_reused_not_reallocated_across_iterations(self) -> None: | CODE |
| LOW | tests/training/test_auto_batch.py | 376 | def test_shadow_grad_cleared_after_step(self) -> None: | CODE |
| LOW | tests/training/test_auto_batch.py | 386 | def test_shadow_grad_cleared_when_step_itself_ooms(self) -> None: | CODE |
| LOW | tests/training/test_auto_batch.py | 456 | def test_probe_max_micro_batch_drives_real_search_loop_end_to_end(): | CODE |
| LOW | tests/training/test_auto_batch.py | 482 | def test_probe_max_micro_batch_builds_shadow_optimizer_exactly_once(): | CODE |
| LOW | tests/training/test_auto_batch.py | 509 | def test_probe_step_warns_once_with_correct_missing_grad_count_when_armed(): | CODE |
| LOW | tests/training/test_auto_batch.py | 544 | def test_build_shadow_optimizer_forwards_optimizer_kwargs(): | CODE |
| LOW | tests/training/test_auto_batch.py | 560 | def test_build_shadow_optimizer_does_not_raise_when_optimizer_kwargs_also_sets_lr(): | CODE |
| LOW | tests/training/test_auto_batch.py | 572 | def test_build_shadow_optimizer_forwards_fused(): | CODE |
| LOW | tests/training/test_auto_batch.py | 583 | def test_probe_max_micro_batch_restores_train_mode_when_shadow_optimizer_build_fails(): | CODE |
| LOW | tests/training/test_auto_batch.py | 611 | def test_resolve_auto_batch_config_requires_cuda(): | CODE |
| LOW | tests/training/test_auto_batch.py | 623 | def test_resolve_auto_batch_config_returns_expected_values(): | CODE |
| LOW | tests/training/test_auto_batch.py | 657 | def test_resolve_auto_batch_config_scales_global_target_across_devices( | CODE |
| LOW | tests/training/test_auto_batch.py | 692 | def test_resolve_auto_batch_config_warns_when_optimizer_is_not_builtin_adamw(): | CODE |
| LOW | tests/training/test_auto_batch.py | 718 | def test_resolve_auto_batch_config_does_not_warn_for_builtin_adamw(): | CODE |
| LOW | tests/training/test_auto_batch.py | 741 | def test_resolve_auto_batch_config_forwards_optimizer_kwargs_for_builtin_adamw(): | CODE |
| LOW | tests/training/test_auto_batch.py | 769 | def test_resolve_auto_batch_config_forwards_optimizer_kwargs_for_dotted_path_adamw(): | CODE |
| LOW | tests/training/test_auto_batch.py | 797 | def test_resolve_auto_batch_config_does_not_forward_optimizer_kwargs_for_non_adamw(): | CODE |
| LOW | tests/training/test_auto_batch.py | 884 | def test_resolve_auto_batch_config_does_not_force_fused_when_model_config_disables_it(): | CODE |
| LOW | tests/training/test_auto_batch.py | 920 | def test_train_auto_batch_ensures_model_on_device_before_resolve( | CODE |
| LOW | tests/training/test_auto_batch.py | 971 | def test_probe_step_with_real_segmentation_criterion(tmp_path): | CODE |
| LOW⚡ | tests/training/conftest.py | 99 | def _restore_rfdetr_module_trainer_property(): | CODE |
| LOW | tests/training/conftest.py | 119 | def _restore_rfdetr_datamodule_trainer_property(): | CODE |
| LOW⚡ | tests/training/test_trainer_smoke.py | 67 | def test_fit_runs_without_error(self, base_model_config, base_train_config): | CODE |
| LOW | tests/training/test_trainer_smoke.py | 93 | def test_training_step_called_expected_times(self, base_model_config, base_train_config): | CODE |
| LOW | tests/training/test_trainer_smoke.py | 130 | def test_val_step_called_expected_times(self, base_model_config, base_train_config): | CODE |
| LOW | tests/training/test_trainer_smoke.py | 167 | def test_loss_decreases_or_is_finite(self, base_model_config, base_train_config): | CODE |
| LOW | tests/training/test_trainer_smoke.py | 212 | def test_fit_runs_without_error(self, base_model_config, seg_train_config): | CODE |
| LOW | tests/training/test_trainer_smoke.py | 238 | def test_segmentation_config_accepted(self, base_model_config, seg_train_config): | CODE |
| LOW | tests/training/test_trainer_smoke.py | 269 | def test_fit_via_build_trainer(self, base_model_config, base_train_config): | CODE |
| LOW | tests/training/test_trainer_smoke.py | 354 | def test_mutation_persists_to_training_step(self, base_model_config, base_train_config): | CODE |
| LOW | tests/training/test_trainer_smoke.py | 377 | def test_ddp_spawn_fit_runs_without_error(base_model_config, base_train_config): | CODE |
| LOW | tests/training/test_trainer_smoke.py | 408 | def test_ddp_spawn_multi_scale_mutation_propagates(base_model_config, base_train_config): | CODE |
| LOW⚡ | tests/training/test_coco_map.py | 452 | def test_adapter_rejects_stale_torchmetrics_state_contract() -> None: | CODE |
| LOW⚡ | tests/training/test_coco_map.py | 461 | def test_adapter_rejects_non_callable_coco_backend_factory() -> None: | CODE |
| LOW⚡ | tests/training/test_coco_map.py | 470 | def test_adapter_rejects_backend_method_missing_a_relied_on_parameter() -> None: | CODE |
| LOW | tests/training/test_coco_map.py | 22 | def test_one_pass_metric_matches_noncontiguous_per_class_results() -> None: | CODE |
| LOW | tests/training/test_coco_map.py | 51 | def test_class_metrics_use_one_coco_evaluator() -> None: | CODE |
| LOW | tests/training/test_coco_map.py | 78 | def test_metric_update_owns_cpu_state_and_ignores_non_metric_fields() -> None: | CODE |
| LOW | tests/training/test_coco_map.py | 107 | def test_class_metrics_disabled_keep_compact_sentinels() -> None: | CODE |
| LOW | tests/training/test_coco_map.py | 128 | def test_bbox_and_segmentation_results_match_torchmetrics() -> None: | CODE |
| 2982 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/_online.py | 14 | Report whether *host* accepts a TCP connection on *port* within *timeout_s*. Args: host: Hostname or IP add | STRING |
| HIGH | tests/training/callbacks/test_best_model_callback.py | 37 | Create a minimal mock Trainer with controllable callback_metrics. Sets the attributes required by ModelCheckpoint a | STRING |
| HIGH | tests/datasets/test_keypoint_schema.py | 31 | Write a minimal COCO annotation file. Args: path: Destination JSON path. categories: COCO category | STRING |
| HIGH | tests/datasets/test_coco.py | 1560 | Write a Roboflow-style COCO split whose category list starts with a synthetic root node. Args: directory: S | STRING |
| HIGH | tests/legacy/test_checkpoint_compat.py | 99 | Parse a versions file and return a list of version strings. Args: versions_file: Path to the versions file. | STRING |
| HIGH | tests/legacy/test_checkpoint_compat.py | 131 | Return the expected checkpoint path for *version*. Args: version: rfdetr version string, e.g. ``"1.5.0"``. | STRING |
| HIGH | tests/legacy/test_checkpoint_compat.py | 151 | Return the artifact path for a legacy checkpoint prediction image. Args: version: Legacy RF-DETR version en | STRING |
| HIGH | tests/legacy/generate_checkpoint.py | 79 | Download (once) and return the path to the fixed reference test image. Caches the file in a stable temp directory a | STRING |
| HIGH | tests/legacy/generate_checkpoint.py | 118 | Extract the highest-confidence detection as a plain, picklable reference. ``class_id`` (not ``class_name``) is the | STRING |
| HIGH | tests/legacy/generate_checkpoint.py | 170 | Extract the bare model state-dict from an rfdetr facade instance. Tries the current layout (``model.model.model.sta | STRING |
| HIGH | tests/legacy/generate_checkpoint.py | 213 | Extract patch_size from an rfdetr facade instance. Args: model: An rfdetr facade instance. Returns: | STRING |
| HIGH | tests/legacy/generate_checkpoint.py | 239 | Instantiate an rfdetr model, falling back through available classes. Tries *preferred_class* first, then ``RFDETRBa | STRING |
| HIGH | tests/legacy/generate_checkpoint.py | 319 | Best-effort check for whether *exc* looks like a network/infra failure, not a code bug. Walks the exception's ``__c | STRING |
| HIGH | tests/models/test_model.py | 14 | Return the patch-embedding projection layer for an RF-DETR model. RFDETR wrappers are not nn.Module; the underlying | STRING |
| HIGH | tests/models/test_transformer_keypoints.py | 21 | Build minimal synthetic multi-scale inputs for `Transformer.forward`. Examples: >>> srcs, masks, pos_embeds | STRING |
| HIGH | tests/models/test_transformer.py | 108 | Build minimal valid inputs for ms_deform_attn_core_pytorch. Examples: >>> value, spatial_shapes, sampling_l | STRING |
| HIGH | tests/models/test_transformer.py | 1398 | Build batch=1 per-position class scores with `picks` as the strictly descending top-k winners. Args: total_ | STRING |
| HIGH | tests/models/test_transformer.py | 1705 | Reproduce Transformer.forward's two-stage box construction from a bbox-delta MLP output. Args: delta: Raw ` | STRING |
| HIGH | tests/models/heads/test_detection_head.py | 26 | Construct the smallest viable LWDETR without loading pretrained weights. Uses a MagicMock backbone and transformer | STRING |
| HIGH | tests/models/heads/test_detection_head.py | 61 | Construct a minimal keypoint-capable LWDETR with detection head resized to num_classes+1. Mirrors what happens afte | STRING |
| HIGH | tests/models/heads/test_detection_head.py | 104 | Build a zero keypoint prediction tensor with the shape expected by _aggregate_keypoint_class_logits. The second-to- | STRING |
| HIGH | tests/benchmarks/test_inference_coco.py | 269 | Load a deterministic subset of COCO person-keypoint validation images. Args: images_root: Directory contain | STRING |
| HIGH | tests/benchmarks/test_inference_coco.py | 315 | Run keypoint-preview inference in fixed-size batches. Args: model: Loaded keypoint-preview model. i | STRING |
| HIGH | tests/inference/test_from_checkpoint.py | 782 | Build a bool _kp_active_mask tensor encoding *schema* (mirrors LwDetr._create_kp_active_mask). Args: schema | STRING |
| HIGH | tests/evaluation/test_evaluation.py | 187 | Rasterise integer-aligned xyxy boxes into a boolean mask stack. Lets the ``iou_type="segm"`` path be driven by the | STRING |
| HIGH | tests/evaluation/test_evaluation.py | 217 | Naive, independently-written greedy matcher used as a ground-truth oracle. Reimplements the COCO greedy-matching co | STRING |
| HIGH | tests/evaluation/test_evaluation.py | 829 | Build one random single-image bbox pred/target pair for the differential oracle. *num_shared_classes* random detect | STRING |
| HIGH | tests/evaluation/test_evaluation.py | 896 | Independently compute build_matching_data's bbox-path output, per class, as an oracle. Mirrors the sharing strategy | STRING |
| HIGH | tests/evaluation/test_keypoint_oks.py | 82 | Build a minimal COCO GT object with a single annotation. Args: num_keypoints: Number of keypoints per insta | STRING |
| HIGH | tests/evaluation/test_keypoint_oks.py | 133 | Build a per-image prediction dict for MetricKeypointOKS.update(). Args: image_id: COCO image ID. kp | STRING |
| HIGH | tests/export/conftest.py | 36 | Build a deterministic, spatially correlated ``NCHW`` tensor for export parity. Combines a smooth spatial gradient w | STRING |
| HIGH | tests/export/conftest.py | 75 | Load an RGB image, resize to square ``resolution``, and ImageNet-normalize (predict-style). Args: path: Pat | STRING |
| HIGH | tests/export/conftest.py | 109 | Run *example_input* through the eager export-mode model; return flattened float CPU output tensors. The export-mode | STRING |
| HIGH | tests/export/conftest.py | 153 | Pair eager and backend output tensors positionally; return per-output max-abs-diff. Args: eager_tensors: Re | STRING |
| HIGH | tests/export/test_roboflow_deploy_e2e.py | 64 | Generate a new dataset version (no preprocessing/augmentation) and wait until it is listed. Args: project: | STRING |
| HIGH | tests/export/test_roboflow_deploy_e2e.py | 94 | Poll the Roboflow version endpoint until a trained model appears or the timeout elapses. Args: workspace: R | STRING |
| HIGH | tests/export/test_executorch_export.py | 827 | Compare ExecuTorch detection outputs (boxes, logits) to eager export-mode PyTorch. Args: pte_path: Path to | STRING |
| HIGH | tests/export/test_executorch_export.py | 853 | Compare ExecuTorch segmentation outputs (boxes, logits, masks) to eager export-mode PyTorch. Args: pte_path | STRING |
| HIGH | tests/export/test_executorch_export.py | 907 | Return the op name of every non-delegated (portable) kernel call in a ``.pte``, one entry per call. Args: p | STRING |
| HIGH | tests/export/test_tflite_inference.py | 696 | Build a mock interpreter for a 3-output export whose rank-4 output carries no kind in its name. ``onnx2tf`` does no | STRING |
| HIGH | tests/export/test_tflite_export.py | 1293 | Run the preload with a stubbed ``importlib.import_module`` and return the stub. Args: monkeypatch: | STRING |
| HIGH | tests/export/test_onnx_notes.py | 37 | Export a tiny model to ONNX and return the output file path. Args: tmp_path: Temporary directory provided b | STRING |
| HIGH | tests/export/test_coreml_export.py | 54 | Run *example_input* through eager export-mode PyTorch and CoreML; return per-output max-abs-diff. Export-mode ``for | STRING |
| HIGH | tests/export/test_coreml_export.py | 98 | Compare CoreML detection outputs (boxes, logits) to eager export-mode PyTorch. Args: mlpackage_path: Path t | STRING |
| HIGH | tests/export/test_coreml_export.py | 128 | Compare CoreML segmentation outputs (boxes, logits, masks) to eager export-mode PyTorch. Args: mlpackage_pa | STRING |
| HIGH | docs/hooks/cookbooks_cards.py | 15 | Load cookbook card definitions from a YAML file. Reads the YAML file and returns the ``cards`` list, which is consu | STRING |
| HIGH | docs/hooks/cookbooks_cards.py | 47 | Expose cookbook card data to MkDocs templates. Adds ``config.extra.cookbooks_cards`` so the cookbooks landing-page | STRING |
| HIGH | docs/hooks/package_version.py | 19 | Load project metadata from a pyproject file. Reads the TOML file in binary mode, matching the parser API. The retur | STRING |
| HIGH | docs/hooks/package_version.py | 47 | Read the package version from pyproject project metadata. Validates that the version exists and is a string before | STRING |
| HIGH | docs/hooks/package_version.py | 74 | Expose the package version to MkDocs templates. Adds ``config.extra.software_version`` so schema.org JSON-LD can st | STRING |
| HIGH | .github/CONTRIBUTING.md | 444 | Provides a brief description of function behavior. Args: param1: Explanation of the first parameter's | STRING |
| HIGH | src/rfdetr/detr.py | 63 | Convert a normalized CHW tensor into the uint8 HWC source-image representation. For a CUDA tensor in ``float16``/`` | STRING |
| HIGH | src/rfdetr/detr.py | 96 | Convert a 2-D/3-D uint8 image to contiguous CHW floating-point storage. This is the uint8 branch of ``torchvision.t | STRING |
| HIGH | src/rfdetr/detr.py | 175 | Validate a user-supplied ``(height, width)`` shape tuple and return normalised plain-int dims. Args: shape: | STRING |
| HIGH | src/rfdetr/detr.py | 219 | Resolve and validate the ``patch_size`` argument for :meth:`RFDETR.export` and :meth:`RFDETR.predict`. Args: | STRING |
| HIGH | src/rfdetr/detr.py | 306 | Absorb the special run kwargs and build a :class:`~rfdetr.config.TrainConfig`. Shared by :meth:`RFDETR.train` and : | STRING |
| HIGH | src/rfdetr/detr.py | 511 | Load an RF-DETR model from a training checkpoint, automatically inferring the model class. The correct subclass | STRING |
| HIGH | src/rfdetr/detr.py | 848 | Map a torch-style device specifier to PTL ``accelerator``/``devices`` kwargs. Args: device: A devic | STRING |
| HIGH | src/rfdetr/detr.py | 1107 | Evaluate the current model on a dataset split and return COCO metrics. Runs a single evaluation pass over the r | STRING |
| HIGH | src/rfdetr/detr.py | 1272 | Optimize the model for inference with optional JIT compilation and dtype casting. Operations are wrapped in the | STRING |
| 129 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/_online.py | 8 | CODE | |
| LOW | tests/training/test_metrics_csv.py | 16 | CODE | |
| LOW | tests/training/test_cli.py | 25 | CODE | |
| LOW | tests/training/test_trainer.py | 8 | CODE | |
| LOW | tests/training/helpers.py | 14 | CODE | |
| LOW | …ing/callbacks/test_gpu_memory_progress_bar_callback.py | 8 | CODE | |
| LOW | tests/training/callbacks/test_ema_callback.py | 8 | CODE | |
| LOW | tests/training/callbacks/test_best_model_callback.py | 8 | CODE | |
| LOW | tests/training/callbacks/test_drop_path_callback.py | 8 | CODE | |
| LOW | tests/datasets/test_o365.py | 13 | CODE | |
| LOW | tests/datasets/test__torchvision.py | 8 | CODE | |
| LOW | tests/legacy/test_checkpoint_compat.py | 23 | CODE | |
| LOW | tests/legacy/generate_checkpoint.py | 36 | CODE | |
| LOW | tests/legacy/test_generate_checkpoint.py | 13 | CODE | |
| LOW | tests/models/test_safe_torch_load.py | 11 | CODE | |
| LOW | tests/models/test_math.py | 8 | CODE | |
| LOW | tests/models/backbone/test_backbone.py | 8 | CODE | |
| LOW | tests/visualize/test_training.py | 8 | CODE | |
| LOW | tests/utilities/test_logger.py | 19 | CODE | |
| LOW | tests/inference/test_model_device_move.py | 14 | CODE | |
| LOW | tests/inference/test_from_checkpoint.py | 12 | CODE | |
| LOW | tests/inference/helpers.py | 14 | CODE | |
| LOW | tests/export/test_onnx_inference.py | 14 | CODE | |
| LOW | tests/export/conftest.py | 16 | CODE | |
| LOW | tests/export/test_topk_selection_parity.py | 22 | CODE | |
| LOW | tests/export/test_roboflow_deploy_e2e.py | 30 | CODE | |
| LOW | tests/export/test_class_layout.py | 8 | CODE | |
| LOW | tests/export/test_parity_helpers.py | 13 | CODE | |
| LOW | tests/export/test_executorch_export.py | 16 | CODE | |
| LOW | tests/export/test_onnx_preprocess_parity.py | 14 | CODE | |
| LOW | tests/export/test_infer_preprocess_parity.py | 15 | CODE | |
| LOW | tests/export/test_export_for_roboflow.py | 13 | CODE | |
| LOW | tests/export/test_naming.py | 15 | CODE | |
| LOW | tests/export/test_coreml_op_coverage.py | 16 | CODE | |
| LOW | tests/export/test_tflite_inference.py | 14 | CODE | |
| LOW | tests/export/test_tensorrt_export.py | 13 | CODE | |
| LOW | tests/export/test_tflite_export.py | 20 | CODE | |
| LOW | tests/export/test_tflite_export.py | 1194 | CODE | |
| LOW | tests/export/test_tflite_inference_parity.py | 20 | CODE | |
| LOW | tests/export/test_coreml_export.py | 19 | CODE | |
| LOW | src/rfdetr/detr.py | 6 | CODE | |
| LOW | src/rfdetr/variants.py | 13 | CODE | |
| LOW | src/rfdetr/__init__.py | 45 | CODE | |
| LOW | src/rfdetr/__init__.py | 46 | CODE | |
| LOW | src/rfdetr/__init__.py | 46 | CODE | |
| LOW | src/rfdetr/__init__.py | 46 | CODE | |
| LOW | src/rfdetr/__init__.py | 46 | CODE | |
| LOW | src/rfdetr/__init__.py | 46 | CODE | |
| LOW | src/rfdetr/__init__.py | 46 | CODE | |
| LOW | src/rfdetr/__init__.py | 46 | CODE | |
| LOW | src/rfdetr/__init__.py | 46 | CODE | |
| LOW | src/rfdetr/__init__.py | 46 | CODE | |
| LOW | src/rfdetr/__init__.py | 46 | CODE | |
| LOW | src/rfdetr/__init__.py | 46 | CODE | |
| LOW | src/rfdetr/__init__.py | 46 | CODE | |
| LOW | src/rfdetr/__init__.py | 46 | CODE | |
| LOW | src/rfdetr/__init__.py | 46 | CODE | |
| LOW | src/rfdetr/inference.py | 8 | CODE | |
| LOW | src/rfdetr/inference.py | 12 | CODE | |
| LOW | src/rfdetr/training/module_data.py | 8 | CODE | |
| 177 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | mkdocs.yaml | 81 | COMMENT | |
| LOW | pyproject.toml | 121 | "executorch>=1.3,<2.0; python_version < '3.14'", | COMMENT |
| LOW | pyproject.toml | 341 | "e2e_coreml: CoreML end-to-end convert + numerical parity (structured and photo inputs; opt-in)", | COMMENT |
| LOW | tests/__init__.py | 1 | # ------------------------------------------------------------------------ | COMMENT |
| LOW | tests/training/__init__.py | 1 | # ------------------------------------------------------------------------ | COMMENT |
| LOW | tests/training/callbacks/__init__.py | 1 | # ------------------------------------------------------------------------ | COMMENT |
| LOW | tests/datasets/__init__.py | 1 | # ------------------------------------------------------------------------ | COMMENT |
| LOW | tests/legacy/__init__.py | 1 | # ------------------------------------------------------------------------ | COMMENT |
| LOW | tests/legacy/checkpoint_versions.txt | 1 | # RF-DETR versions to include in backward-compatibility checkpoint matrix. | COMMENT |
| LOW | tests/legacy/frozen_dependencies/req-1.7.txt | 1 | # Frozen dependency set for generating the rfdetr~=1.7.0 legacy checkpoint | COMMENT |
| LOW | tests/legacy/frozen_dependencies/req-1.6.txt | 1 | # Frozen dependency set for generating the rfdetr~=1.6.0 legacy checkpoint | COMMENT |
| LOW | tests/legacy/frozen_dependencies/req-1.4.txt | 1 | # Frozen dependency set for generating the rfdetr~=1.4.0 legacy checkpoint | COMMENT |
| LOW | tests/legacy/frozen_dependencies/req-1.5.txt | 1 | # Frozen dependency set for generating the rfdetr~=1.5.0 legacy checkpoint | COMMENT |
| LOW | tests/legacy/frozen_dependencies/req-1.8.txt | 1 | # Frozen dependency set for generating the rfdetr~=1.8.0 legacy checkpoint | COMMENT |
| LOW | tests/models/__init__.py | 1 | # ------------------------------------------------------------------------ | COMMENT |
| LOW | tests/models/heads/__init__.py | 1 | # ------------------------------------------------------------------------ | COMMENT |
| LOW | tests/models/backbone/__init__.py | 1 | # ------------------------------------------------------------------------ | COMMENT |
| LOW | tests/cli/__init__.py | 1 | # ------------------------------------------------------------------------ | COMMENT |
| LOW | tests/utilities/__init__.py | 1 | # ------------------------------------------------------------------------ | COMMENT |
| LOW | tests/inference/__init__.py | 1 | # ------------------------------------------------------------------------ | COMMENT |
| LOW | tests/evaluation/__init__.py | 1 | # ------------------------------------------------------------------------ | COMMENT |
| LOW | tests/export/__init__.py | 1 | # ------------------------------------------------------------------------ | COMMENT |
| LOW | tests/export/test_coreml_export.py | 361 | ("RFDETRSegNano", validate_segmentation_coreml_vs_pytorch), | COMMENT |
| LOW | tests/assets/__init__.py | 1 | # ------------------------------------------------------------------------ | COMMENT |
| LOW | .github/workflows/ci-integrations.yml | 81 | timeout-minutes: 8 | COMMENT |
| LOW | .github/workflows/ci-tests-xla.yml | 1 | name: XLA tests Workflow | COMMENT |
| LOW | .github/workflows/publish-docs.yml | 1 | # Build and deploy MkDocs documentation to GitHub Pages (https://rfdetr.roboflow.com/) | COMMENT |
| LOW | src/rfdetr/detr.py | 801 | checkpoint_config_keys.add("num_classes") | COMMENT |
| LOW | src/rfdetr/detr.py | 981 | COMMENT | |
| LOW | src/rfdetr/detr.py | 2421 | images = [images] | COMMENT |
| LOW | src/rfdetr/detr.py | 2521 | # A pageable-memory .to(device) copy onto CUDA is slower than a pinned-memory one: the driver has to | COMMENT |
| LOW | src/rfdetr/config.py | 621 | # architecture overrides against the class defaults. | COMMENT |
| LOW | src/rfdetr/config.py | 1021 | # autograd activation storage, but in-fit validation still shares device memory with the model and optimizer | COMMENT |
| LOW | src/rfdetr/config.py | 1061 | square_resize_div_64: bool = True | COMMENT |
| LOW | src/rfdetr/config.py | 1081 | # selected (EMA) model, mirrored from the EMA track by COCOEvalCallback so every scheduler, | COMMENT |
| LOW | src/rfdetr/training/module_model.py | 361 | # Manual optimization is enabled only for keypoint models so that the box-count | COMMENT |
| LOW | src/rfdetr/training/module_model.py | 421 | logger.info( | COMMENT |
| LOW | src/rfdetr/training/module_model.py | 1241 | # the keypoint path runs with ``Trainer(accumulate_grad_batches=1)`` and manages | COMMENT |
| LOW | src/rfdetr/training/trainer.py | 61 | # --------------------------------------------------------------------------- | COMMENT |
| LOW | src/rfdetr/training/trainer.py | 541 | # CPU accelerator: bf16 autocast on macOS CPU (Apple Silicon) is ~13x slower | COMMENT |
| LOW | src/rfdetr/training/trainer.py | 661 | elif strategy_name == "ddp" or (strategy_name == "auto" and distributed_requested): | COMMENT |
| LOW | src/rfdetr/training/callbacks/best_model.py | 521 | # inside _save_checkpoint (which receives no pl_module param). | COMMENT |
| LOW | src/rfdetr/training/callbacks/coco_eval.py | 881 | # (coco_map.py) always returns `classes` and `*_per_class` as 1-d tensors, even for a single | COMMENT |
| LOW | src/rfdetr/datasets/coco.py | 1 | # ------------------------------------------------------------------------ | COMMENT |
| LOW | src/rfdetr/datasets/transforms.py | 1 | # ------------------------------------------------------------------------ | COMMENT |
| LOW | src/rfdetr/datasets/__init__.py | 1 | # ------------------------------------------------------------------------ | COMMENT |
| LOW | src/rfdetr/models/matcher.py | 1 | # ------------------------------------------------------------------------ | COMMENT |
| LOW | src/rfdetr/models/matcher.py | 381 | ) | COMMENT |
| LOW | src/rfdetr/models/matcher.py | 721 | # Off CUDA the same call resolves to SciPy anyway, only behind extra stacking and | COMMENT |
| LOW | src/rfdetr/models/position_encoding.py | 1 | # ------------------------------------------------------------------------ | COMMENT |
| LOW | src/rfdetr/models/postprocess.py | 1 | # ------------------------------------------------------------------------ | COMMENT |
| LOW | src/rfdetr/models/__init__.py | 1 | # ------------------------------------------------------------------------ | COMMENT |
| LOW | src/rfdetr/models/transformer.py | 1 | # ------------------------------------------------------------------------ | COMMENT |
| LOW | src/rfdetr/models/transformer.py | 321 | # contiguous. Current nondeprecated models use one projector level; contiguous() is then a no-op, while | COMMENT |
| LOW | src/rfdetr/models/math.py | 1 | # ------------------------------------------------------------------------ | COMMENT |
| LOW | src/rfdetr/models/criterion.py | 161 | sampled = ( | COMMENT |
| LOW | src/rfdetr/models/criterion.py | 921 | >>> outputs = {"pred_logits": torch.zeros(1, 1, 1)} | COMMENT |
| LOW | src/rfdetr/models/lwdetr.py | 1 | # ------------------------------------------------------------------------ | COMMENT |
| LOW | src/rfdetr/models/heads/keypoints.py | 201 | logger.warning( | COMMENT |
| LOW | src/rfdetr/models/ops/__init__.py | 1 | # ------------------------------------------------------------------------ | COMMENT |
| 19 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL⚡ | tests/models/backbone/test_windowed_dino.py | 494 | before = [layer.attention.attention.query.weight.clone() for layer in model.encoder.layer] | CODE |
| CRITICAL⚡ | tests/models/backbone/test_windowed_dino.py | 509 | key_before = [layer.attention.attention.key.weight.clone() for layer in model.encoder.layer] | CODE |
| CRITICAL⚡ | tests/models/backbone/test_windowed_dino.py | 510 | val_before = [layer.attention.attention.value.weight.clone() for layer in model.encoder.layer] | CODE |
| CRITICAL⚡ | tests/models/backbone/test_windowed_dino.py | 527 | dense_before = [layer.attention.output.dense.weight.clone() for layer in model.encoder.layer] | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/training/test_detr_shim.py | 1354 | def _set_class_names(mock_self: MagicMock, class_names: list[str]) -> None: | CODE |
| LOW⚡ | tests/training/helpers.py | 35 | def update_drop_path(self, *args, **kwargs) -> None: | CODE |
| LOW⚡ | tests/training/helpers.py | 38 | def update_dropout(self, *args, **kwargs) -> None: | CODE |
| LOW | src/rfdetr/detr.py | 139 | __all__ = ["RFDETR", "ModelContext", *_VARIANT_EXPORTS] | CODE |
| LOW | src/rfdetr/config.py | 27 | __all__ = [ | CODE |
| LOW⚡ | src/rfdetr/variants.py | 15 | __all__ = [ | CODE |
| LOW | src/rfdetr/__init__.py | 63 | __all__ = [ | CODE |
| LOW⚡ | src/rfdetr/inference.py | 10 | __all__ = ["ModelContext"] | CODE |
| LOW | src/rfdetr/training/module_data.py | 667 | def _setup_kornia_pipeline(self) -> None: | CODE |
| LOW⚡ | src/rfdetr/training/checkpoint.py | 22 | logger = logging.getLogger(__name__) | CODE |
| LOW⚡ | src/rfdetr/training/checkpoint.py | 24 | __all__ = ["convert_legacy_checkpoint"] | CODE |
| LOW | src/rfdetr/training/model_ema.py | 138 | __all__ = [ | CODE |
| LOW | src/rfdetr/training/__init__.py | 36 | __all__ = [ | CODE |
| LOW | src/rfdetr/training/callbacks/__init__.py | 17 | __all__ = [ | CODE |
| LOW | src/rfdetr/training/callbacks/coco_eval.py | 1062 | def _update_keypoint_oks_metric(self, trainer: Any, outputs: Mapping[str, Any], split: str) -> None: | CODE |
| LOW | src/rfdetr/datasets/synthetic.py | 26 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/rfdetr/datasets/aug_config.py | 32 | __all__ = [ | CODE |
| LOW | src/rfdetr/datasets/_keypoint_schema.py | 20 | __all__ = [ | CODE |
| LOW⚡ | src/rfdetr/models/__init__.py | 24 | __all__ = [ | CODE |
| LOW | src/rfdetr/models/weights.py | 35 | __all__ = ["load_pretrain_weights", "apply_lora", "interpolate_position_embeddings"] | CODE |
| LOW | src/rfdetr/models/lwdetr.py | 751 | def update_drop_path(self, drop_path_rate: float, vit_encoder_num_layers: int) -> None: | CODE |
| LOW | src/rfdetr/models/lwdetr.py | 770 | def update_dropout(self, drop_rate: float) -> None: | CODE |
| LOW⚡ | src/rfdetr/models/heads/__init__.py | 11 | __all__ = [ | CODE |
| LOW | src/rfdetr/models/heads/keypoints.py | 601 | __all__ = [ | CODE |
| LOW⚡ | src/rfdetr/models/ops/functions/__init__.py | 18 | __all__ = [ | CODE |
| LOW⚡ | src/rfdetr/models/ops/modules/__init__.py | 15 | __all__ = [ | CODE |
| LOW | src/rfdetr/models/backbone/dinov2_with_windowed_attn.py | 969 | def set_attn_implementation(self, attn_implementation: str) -> None: # type: ignore[override] | STRING |
| LOW | src/rfdetr/models/backbone/dinov2_with_windowed_attn.py | 1370 | __all__ = [ | STRING |
| LOW | src/rfdetr/models/backbone/backbone.py | 33 | __all__ = ["Backbone"] | CODE |
| LOW⚡ | src/rfdetr/cli/__init__.py | 14 | __all__ = ["main"] | CODE |
| LOW⚡ | src/rfdetr/visualize/__init__.py | 11 | __all__ = [ | CODE |
| LOW | src/rfdetr/utilities/__init__.py | 35 | __all__ = [ | CODE |
| LOW⚡ | src/rfdetr/utilities/keypoints.py | 15 | __all__ = [ | CODE |
| LOW⚡ | src/rfdetr/utilities/decorators.py | 14 | __all__ = ["TargetMode", "deprecated", "void"] | CODE |
| LOW⚡ | src/rfdetr/evaluation/__init__.py | 14 | __all__ = [ | CODE |
| LOW | src/rfdetr/export/_onnx/exporter.py | 327 | def set_severity(self, severity: object) -> None: | CODE |
| LOW⚡ | src/rfdetr/export/_onnx/__init__.py | 16 | __all__ = [ | CODE |
| LOW | src/rfdetr/export/_tflite/__init__.py | 16 | __all__ = ["export_tflite", "_IS_ONNX2TF_AVAILABLE"] | CODE |
| LOW | src/rfdetr/export/_executorch/__init__.py | 19 | __all__ = ["export_executorch"] | CODE |
| LOW⚡ | src/rfdetr/assets/__init__.py | 14 | __all__ = [ | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/run_smoke_all_models.py | 230 | CODE | |
| LOW | tests/training/test_detr_shim.py | 722 | CODE | |
| LOW | src/rfdetr/detr.py | 303 | CODE | |
| LOW | src/rfdetr/detr.py | 510 | CODE | |
| LOW | src/rfdetr/detr.py | 1106 | CODE | |
| LOW | src/rfdetr/detr.py | 1547 | CODE | |
| LOW | src/rfdetr/detr.py | 2126 | CODE | |
| LOW | src/rfdetr/detr.py | 2299 | CODE | |
| LOW | src/rfdetr/config.py | 181 | CODE | |
| LOW | src/rfdetr/config.py | 566 | CODE | |
| LOW | src/rfdetr/training/coco_map.py | 205 | CODE | |
| LOW | src/rfdetr/training/module_data.py | 204 | CODE | |
| LOW | src/rfdetr/training/module_data.py | 767 | CODE | |
| LOW | src/rfdetr/training/module_model.py | 1184 | CODE | |
| LOW | src/rfdetr/training/module_model.py | 1361 | CODE | |
| LOW | src/rfdetr/training/auto_batch.py | 544 | CODE | |
| LOW | src/rfdetr/training/callbacks/best_model.py | 146 | CODE | |
| LOW | src/rfdetr/training/callbacks/best_model.py | 581 | CODE | |
| LOW | src/rfdetr/training/callbacks/ema.py | 141 | CODE | |
| LOW | src/rfdetr/datasets/synthetic.py | 196 | CODE | |
| LOW | src/rfdetr/datasets/synthetic.py | 310 | CODE | |
| LOW | src/rfdetr/datasets/coco.py | 514 | CODE | |
| LOW | src/rfdetr/datasets/coco.py | 649 | CODE | |
| LOW | src/rfdetr/datasets/transforms.py | 661 | CODE | |
| LOW | src/rfdetr/datasets/transforms.py | 690 | CODE | |
| LOW | src/rfdetr/datasets/_torchvision.py | 512 | CODE | |
| LOW | src/rfdetr/datasets/kornia_transforms.py | 305 | CODE | |
| LOW | src/rfdetr/datasets/yolo.py | 350 | CODE | |
| LOW | src/rfdetr/datasets/_develop.py | 209 | CODE | |
| LOW | src/rfdetr/datasets/_develop.py | 258 | CODE | |
| LOW | src/rfdetr/models/postprocess.py | 173 | CODE | |
| LOW | src/rfdetr/models/transformer.py | 611 | CODE | |
| LOW | src/rfdetr/models/criterion.py | 468 | CODE | |
| LOW | src/rfdetr/models/weights.py | 309 | CODE | |
| LOW | src/rfdetr/models/backbone/dinov2_with_windowed_attn.py | 1140 | CODE | |
| LOW | src/rfdetr/models/backbone/dinov2_with_windowed_attn.py | 1265 | CODE | |
| LOW | src/rfdetr/models/backbone/projector.py | 69 | CODE | |
| LOW | src/rfdetr/models/backbone/projector.py | 194 | CODE | |
| LOW | src/rfdetr/visualize/training.py | 90 | CODE | |
| LOW | src/rfdetr/utilities/files.py | 57 | CODE | |
| LOW | src/rfdetr/evaluation/coco_eval.py | 420 | CODE | |
| LOW | src/rfdetr/evaluation/matching.py | 167 | CODE | |
| LOW | src/rfdetr/export/benchmark.py | 416 | CODE | |
| LOW | src/rfdetr/export/main.py | 172 | CODE | |
| LOW | src/rfdetr/export/_onnx/exporter.py | 558 | CODE | |
| LOW | src/rfdetr/export/_onnx/exporter.py | 624 | CODE | |
| LOW | src/rfdetr/export/_tflite/converter.py | 746 | CODE | |
| LOW | src/rfdetr/export/_executorch/converter.py | 278 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/export/test_onnx_preprocess_parity.py | 0 | mirror of the pytorch predict() preprocessing: to_tensor -> resize(antialias=false) -> normalize. examples: >>> import n | STRING |
| HIGH | tests/export/test_infer_preprocess_parity.py | 0 | mirror of the pytorch predict() preprocessing: to_tensor -> resize(antialias=false) -> normalize. examples: >>> import n | STRING |
| HIGH | tests/export/test_tflite_inference_parity.py | 0 | mirror of the pytorch predict() preprocessing: to_tensor -> resize(antialias=false) -> normalize. examples: >>> import n | STRING |
| HIGH | tests/export/test_onnx_preprocess_parity.py | 0 | deterministic synthetic rgb image with structure (not pure noise) so resize filtering matters. examples: >>> img = _make | STRING |
| HIGH | tests/export/test_infer_preprocess_parity.py | 0 | deterministic synthetic rgb image with structure (not pure noise) so resize filtering matters. examples: >>> img = _make | STRING |
| HIGH | tests/export/test_tflite_inference_parity.py | 0 | deterministic synthetic rgb image with structure (not pure noise) so resize filtering matters. examples: >>> img = _make | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | docs/learn/deploy.md | 29 | api_key="<YOUR_API_KEY>", | CODE |
| HIGH | docs/learn/deploy.md | 29 | api_key="<YOUR_API_KEY>", | CODE |
| HIGH | docs/learn/deploy.md | 42 | api_key="<YOUR_API_KEY>", | CODE |
| HIGH | docs/learn/deploy.md | 42 | api_key="<YOUR_API_KEY>", | CODE |
| HIGH | docs/root-static/llms-full.txt | 255 | api_key="YOUR_API_KEY" | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | tests/training/callbacks/test_coco_eval_callback.py | 630 | # Create a fake callback whose class name is RichProgressBar so | COMMENT |
| MEDIUM | tests/assets/test_downloads.py | 192 | # Create a mock asset without MD5 | COMMENT |
| MEDIUM | tests/assets/test_downloads.py | 206 | # Create a mock asset without MD5 | COMMENT |
| MEDIUM | src/rfdetr/datasets/yolo.py | 833 | >>> # Create a sample image and target | STRING |
| MEDIUM | src/rfdetr/models/backbone/dinov2.py | 127 | # Create the encoder | COMMENT |
| MEDIUM | src/rfdetr/models/backbone/dinov2.py | 255 | # Create a new Parameter with the new size | COMMENT |
| MEDIUM | src/rfdetr/models/backbone/projector.py | 189 | """This module implements MultiScaleProjector in :paper:`lwdetr`. | STRING |
| MEDIUM | src/rfdetr/utilities/state_dict.py | 209 | # Create the temp file in the destination directory so os.replace stays on the same filesystem (atomic). | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/run_smoke_all_models.py | 275 | except Exception as ex: | CODE |
| LOW | tests/conftest.py | 42 | except Exception as exc: | CODE |
| LOW | tests/legacy/generate_checkpoint.py | 292 | except Exception as exc: | CODE |
| LOW | tests/export/test_executorch_export.py | 188 | except Exception: | CODE |
| LOW | tests/export/test_executorch_export.py | 204 | except Exception: | CODE |
| LOW | tests/export/test_coreml_op_coverage.py | 165 | except Exception: | CODE |
| LOW | tests/export/test_coreml_op_coverage.py | 197 | except Exception: | CODE |
| LOW | src/rfdetr/detr.py | 54 | except Exception: | CODE |
| LOW | src/rfdetr/detr.py | 976 | except Exception: | CODE |
| LOW | src/rfdetr/detr.py | 1419 | except Exception: | CODE |
| LOW | src/rfdetr/training/trainer.py | 528 | except Exception: # defensive parity with the rfdetr.detr import-time guard | CODE |
| LOW | src/rfdetr/datasets/transforms.py | 1059 | except Exception as e: | CODE |
| LOW | src/rfdetr/models/weights.py | 371 | except Exception: | CODE |
| LOW | src/rfdetr/utilities/files.py | 104 | except Exception: | CODE |
| LOW | src/rfdetr/utilities/files.py | 120 | except Exception: | CODE |
| LOW | src/rfdetr/export/_coreml/converter.py | 187 | except Exception as exc: | CODE |
| LOW | src/rfdetr/export/_coreml/op_coverage.py | 41 | except Exception: | CODE |
| LOW | src/rfdetr/export/_tflite/converter.py | 472 | except Exception as exc: | CODE |
| LOW | src/rfdetr/export/_tflite/converter.py | 711 | except Exception: | CODE |
| LOW | src/rfdetr/export/_tflite/converter.py | 1053 | except Exception as exc: | CODE |
| LOW | src/rfdetr/export/_executorch/converter.py | 422 | except Exception as exc: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/export/test_export.py | 447 | CODE | |
| LOW | src/rfdetr/detr.py | 1547 | CODE | |
| LOW | src/rfdetr/training/coco_map.py | 125 | CODE | |
| LOW | src/rfdetr/training/auto_batch.py | 331 | CODE | |
| LOW | src/rfdetr/training/callbacks/coco_eval.py | 151 | CODE | |
| LOW | src/rfdetr/datasets/coco.py | 1099 | CODE | |
| LOW | src/rfdetr/datasets/coco.py | 1208 | CODE | |
| LOW | src/rfdetr/models/matcher.py | 93 | CODE | |
| LOW | src/rfdetr/models/transformer.py | 150 | CODE | |
| LOW | src/rfdetr/models/transformer.py | 571 | CODE | |
| LOW | src/rfdetr/models/transformer.py | 651 | CODE | |
| LOW | src/rfdetr/models/transformer.py | 814 | CODE | |
| LOW | src/rfdetr/models/transformer.py | 918 | CODE | |
| LOW | src/rfdetr/models/transformer.py | 1076 | CODE | |
| LOW | src/rfdetr/models/lwdetr.py | 121 | CODE | |
| LOW | src/rfdetr/models/backbone/dinov2_with_windowed_attn.py | 676 | CODE | |
| LOW | src/rfdetr/models/backbone/dinov2_with_windowed_attn.py | 235 | CODE | |
| LOW | src/rfdetr/models/backbone/dinov2.py | 101 | CODE | |
| LOW | src/rfdetr/models/backbone/backbone.py | 39 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | configs/rfdetr_seg_small.yaml | 2 | # Usage: | COMMENT |
| LOW | configs/rfdetr_seg_2xlarge.yaml | 2 | # Usage: | COMMENT |
| LOW | configs/rfdetr_seg_large.yaml | 2 | # Usage: | COMMENT |
| LOW | configs/rfdetr_seg_nano.yaml | 2 | # Usage: | COMMENT |
| LOW | configs/rfdetr_seg_xlarge.yaml | 2 | # Usage: | COMMENT |
| LOW | configs/rfdetr_base.yaml | 2 | # Usage: | COMMENT |
| LOW | configs/rfdetr_medium.yaml | 2 | # Usage: | COMMENT |
| LOW | configs/rfdetr_seg_medium.yaml | 2 | # Usage: | COMMENT |
| LOW | configs/rfdetr_small.yaml | 2 | # Usage: | COMMENT |
| LOW | configs/rfdetr_nano.yaml | 2 | # Usage: | COMMENT |
| LOW | configs/rfdetr_large.yaml | 2 | # Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tests/training/test_drop_path.py | 139 | # Should not raise an error, just return early | COMMENT |
| MEDIUM | tests/inference/test_predict.py | 1829 | """``predict()`` URL handling: robust HTTP fetch and correct local-path classification.""" | STRING |
| MEDIUM | tests/export/test_executorch_export.py | 817 | # random weights); the bound keeps modest headroom, robust to BLAS/XNNPACK build differences while still | COMMENT |
| MEDIUM | src/rfdetr/export/_onnx/inference.py | 207 | # Match by name so the code is robust to output reordering. | COMMENT |
| MEDIUM | src/rfdetr/export/_tflite/inference.py | 240 | # Match by name so the code is robust to onnx2tf output reordering. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | tests/export/test_export.py | 988 | # patch_size=14, num_windows=3 → block_size=42; scaffold sets resolution=84 (42*2) which is valid | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/training/test_detr_shim.py | 1387 | api_key="dummy-key", | CODE |
| LOW | tests/training/test_detr_shim.py | 1420 | api_key="dummy-key", | CODE |
| LOW | tests/training/test_detr_shim.py | 1452 | api_key="dummy-key", | CODE |
| LOW | tests/training/test_detr_shim.py | 1480 | api_key="dummy-key", | CODE |
| LOW | tests/training/test_detr_shim.py | 1506 | api_key="dummy-key", | CODE |
| LOW | tests/training/test_detr_shim.py | 1533 | api_key="dummy-key", | CODE |
| LOW | tests/training/test_detr_shim.py | 1552 | api_key="dummy-key", | CODE |
| LOW | tests/training/test_detr_shim.py | 1612 | api_key="dummy-key", | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/rfdetr/assets/model_weights.py | 430 | # Check if we have a hash for this model | COMMENT |