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 8,529 GitHub stars. SynthScan v2.0 examined 84,673 lines of code across 325 source files, recording 3438 pattern matches distributed across 17 syntactic categories. The overall adjusted score of 70.4 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).
Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.
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 3438 distinct pattern matches across 17 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 | 147 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM | AGENTS.md | 151 | # ------------------------------------------------------------------------ | 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/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 | 69 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/training/test_metrics_csv.py | 71 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/training/test_metrics_csv.py | 93 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/training/test_metrics_csv.py | 95 | # --------------------------------------------------------------------------- | 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 | 53 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/training/test_trainer_smoke.py | 55 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/training/test_trainer_smoke.py | 335 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/training/test_trainer_smoke.py | 337 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/training/test_detr_shim.py | 90 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/training/test_detr_shim.py | 92 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/training/test_detr_shim.py | 457 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/training/test_detr_shim.py | 459 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/training/test_detr_shim.py | 647 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/training/test_detr_shim.py | 649 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/training/test_detr_shim.py | 1072 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/training/test_detr_shim.py | 1074 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/training/test_detr_shim.py | 1255 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/training/test_detr_shim.py | 1257 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/training/test_detr_shim.py | 1444 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/training/test_detr_shim.py | 1446 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/training/test_detr_shim.py | 1838 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/training/test_detr_shim.py | 1840 | # --------------------------------------------------------------------------- | 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 | 39 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/training/test_detr_shim.py | 41 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/training/test_detr_shim.py | 770 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/training/test_detr_shim.py | 772 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/training/test_detr_shim.py | 971 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/training/test_detr_shim.py | 973 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/training/test_detr_shim.py | 1360 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/training/test_detr_shim.py | 1362 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/training/test_detr_shim.py | 1499 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/training/test_detr_shim.py | 1501 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/training/test_detr_shim.py | 1770 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/training/test_detr_shim.py | 1772 | # --------------------------------------------------------------------------- | COMMENT |
| 856 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 reset_build_namespace_warning_state() -> Generator[None, Any, None]: | CODE |
| LOW | tests/conftest.py | 76 | def synthetic_shape_dataset_dir(tmp_path_factory: pytest.TempPathFactory) -> Generator[Path, Any, None]: | CODE |
| LOW | tests/conftest.py | 113 | def synthetic_shape_segmentation_dataset_dir( | CODE |
| LOW⚡ | tests/training/test_metrics_csv.py | 101 | def test_base_metrics_present_without_ema(self, base_model_config, base_train_config): | CODE |
| LOW | tests/training/test_metrics_csv.py | 113 | def test_ema_metrics_present_with_ema_enabled(self, base_model_config, base_train_config): | CODE |
| LOW | tests/training/test_metrics_csv.py | 125 | def test_train_loss_is_unscaled(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_step_raises_when_loss_keys_do_not_overlap_weight_keys(): | CODE |
| LOW | tests/training/test_auto_batch.py | 110 | def test_resolve_auto_batch_config_requires_cuda(): | CODE |
| LOW | tests/training/test_auto_batch.py | 122 | def test_resolve_auto_batch_config_returns_expected_values(): | CODE |
| LOW | tests/training/test_auto_batch.py | 150 | def test_train_auto_batch_ensures_model_on_device_before_resolve( | CODE |
| LOW | tests/training/test_auto_batch.py | 200 | 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 | 61 | def test_fit_runs_without_error(self, base_model_config, base_train_config): | CODE |
| LOW | tests/training/test_trainer_smoke.py | 87 | def test_training_step_called_expected_times(self, base_model_config, base_train_config): | CODE |
| LOW | tests/training/test_trainer_smoke.py | 124 | def test_val_step_called_expected_times(self, base_model_config, base_train_config): | CODE |
| LOW | tests/training/test_trainer_smoke.py | 161 | def test_loss_decreases_or_is_finite(self, base_model_config, base_train_config): | CODE |
| LOW | tests/training/test_trainer_smoke.py | 206 | def test_fit_runs_without_error(self, base_model_config, seg_train_config): | CODE |
| LOW | tests/training/test_trainer_smoke.py | 232 | def test_segmentation_config_accepted(self, base_model_config, seg_train_config): | CODE |
| LOW | tests/training/test_trainer_smoke.py | 263 | def test_fit_via_build_trainer(self, base_model_config, base_train_config): | CODE |
| LOW | tests/training/test_trainer_smoke.py | 348 | def test_mutation_persists_to_training_step(self, base_model_config, base_train_config): | CODE |
| LOW | tests/training/test_trainer_smoke.py | 371 | def test_ddp_spawn_fit_runs_without_error(base_model_config, base_train_config): | CODE |
| LOW | tests/training/test_trainer_smoke.py | 402 | def test_ddp_spawn_multi_scale_mutation_propagates(base_model_config, base_train_config): | CODE |
| LOW⚡ | tests/training/test_detr_shim.py | 98 | def test_build_trainer_called_with_config_and_model_config(self, tmp_path, patch_lit): | CODE |
| LOW⚡ | tests/training/test_detr_shim.py | 108 | def test_trainer_fit_called_with_module_and_datamodule(self, tmp_path, patch_lit): | CODE |
| LOW⚡ | tests/training/test_detr_shim.py | 120 | def test_ckpt_path_none_when_resume_not_set(self, tmp_path, patch_lit): | CODE |
| LOW⚡ | tests/training/test_detr_shim.py | 130 | def test_ckpt_path_forwarded_when_resume_set(self, tmp_path, patch_lit): | CODE |
| LOW⚡ | tests/training/test_detr_shim.py | 140 | def test_ckpt_path_none_when_resume_is_empty_string(self, tmp_path, patch_lit): | CODE |
| LOW⚡ | tests/training/test_detr_shim.py | 281 | def test_device_kwarg_cpu_no_warning(self, tmp_path, patch_lit): | CODE |
| LOW⚡ | tests/training/test_detr_shim.py | 291 | def test_device_kwarg_cuda_forwards_gpu_accelerator_without_devices(self, tmp_path, patch_lit): | CODE |
| LOW⚡ | tests/training/test_detr_shim.py | 301 | def test_device_kwarg_torch_device_cuda_index_forwards_gpu_accelerator_and_devices(self, tmp_path, patch_lit): | CODE |
| LOW⚡ | tests/training/test_detr_shim.py | 311 | def test_callbacks_none_no_warning(self, tmp_path, patch_lit): | CODE |
| LOW⚡ | tests/training/test_detr_shim.py | 320 | def test_callbacks_empty_dict_no_warning(self, tmp_path, patch_lit): | CODE |
| LOW⚡ | tests/training/test_detr_shim.py | 329 | def test_callbacks_all_empty_lists_no_warning(self, tmp_path, patch_lit): | CODE |
| LOW⚡ | tests/training/test_detr_shim.py | 339 | def test_callbacks_non_empty_emits_deprecation_warning(self, tmp_path, patch_lit): | CODE |
| LOW⚡ | tests/training/test_detr_shim.py | 385 | def test_do_benchmark_not_forwarded_to_get_train_config(self, tmp_path, patch_lit): | CODE |
| LOW⚡ | tests/training/test_detr_shim.py | 394 | def test_device_not_forwarded_to_get_train_config(self, tmp_path, patch_lit): | CODE |
| LOW⚡ | tests/training/test_detr_shim.py | 403 | def test_skip_best_epochs_forwarded_to_get_train_config(self, tmp_path, patch_lit): | CODE |
| LOW⚡ | tests/training/test_detr_shim.py | 412 | def test_batch_size_auto_resolved_before_module_and_datamodule_build(self, tmp_path, patch_lit): | CODE |
| LOW⚡ | tests/training/test_detr_shim.py | 465 | def test_device_cpu_absorbed_as_accelerator_cpu(self, tmp_path, patch_lit): | CODE |
| LOW⚡ | tests/training/test_detr_shim.py | 474 | def test_device_cuda_absorbed_as_accelerator_gpu(self, tmp_path, patch_lit): | CODE |
| LOW⚡ | tests/training/test_detr_shim.py | 484 | def test_device_cuda_index_absorbed_as_accelerator_gpu_devices_list(self, tmp_path, patch_lit): | CODE |
| LOW⚡ | tests/training/test_detr_shim.py | 493 | def test_device_torch_device_cuda_index_absorbed_as_accelerator_gpu_devices_list(self, tmp_path, patch_lit): | CODE |
| LOW⚡ | tests/training/test_detr_shim.py | 502 | def test_device_invalid_raises_value_error_with_expected_message(self, tmp_path, patch_lit): | CODE |
| LOW⚡ | tests/training/test_detr_shim.py | 514 | def test_device_unmapped_valid_type_warns_and_falls_back_to_auto_detection(self, tmp_path, patch_lit): | CODE |
| LOW⚡ | tests/training/test_detr_shim.py | 524 | def test_callbacks_empty_dict_no_error(self, tmp_path, patch_lit): | CODE |
| LOW⚡ | tests/training/test_detr_shim.py | 531 | def test_callbacks_non_empty_emits_deprecation_warning(self, tmp_path, patch_lit): | CODE |
| LOW⚡ | tests/training/test_detr_shim.py | 655 | def test_updates_model_config_resolution(self, tmp_path, patch_lit): | CODE |
| LOW⚡ | tests/training/test_detr_shim.py | 665 | def test_does_not_implicitly_update_positional_encoding_size(self, tmp_path, patch_lit): | CODE |
| LOW⚡ | tests/training/test_detr_shim.py | 691 | def test_does_not_reach_get_train_config(self, tmp_path, patch_lit): | CODE |
| LOW⚡ | tests/training/test_detr_shim.py | 700 | def test_indivisible_raises_value_error(self, tmp_path, patch_lit): | CODE |
| LOW⚡ | tests/training/test_detr_shim.py | 709 | def test_none_leaves_model_config_unchanged(self, tmp_path, patch_lit): | CODE |
| LOW⚡ | tests/training/test_detr_shim.py | 839 | def test_epoch_defaults_to_zero_when_missing(self, tmp_path, patch_lit): | CODE |
| LOW⚡ | tests/training/test_detr_shim.py | 848 | def test_global_step_always_zero(self, tmp_path, patch_lit): | CODE |
| LOW⚡ | tests/training/test_detr_shim.py | 856 | def test_legacy_checkpoint_format_flag_set(self, tmp_path, patch_lit): | CODE |
| LOW⚡ | tests/training/test_detr_shim.py | 864 | def test_args_as_namespace_converted_to_dict(self, tmp_path, patch_lit): | CODE |
| 1952 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| 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/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/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 | 288 | Load a deterministic subset of COCO person-keypoint validation images. Args: images_root: Directory contain | STRING |
| HIGH | tests/benchmarks/test_inference_coco.py | 330 | Run keypoint-preview inference in fixed-size batches. Args: model: Loaded keypoint-preview model. i | 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 | 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 | 428 | Provides a brief description of function behavior. Args: param1: Explanation of the first parameter's | STRING |
| HIGH | src/rfdetr/detr.py | 113 | Validate a user-supplied ``(height, width)`` shape tuple and return normalised plain-int dims. Args: shape: | STRING |
| HIGH | src/rfdetr/detr.py | 157 | Resolve and validate the ``patch_size`` argument for :meth:`RFDETR.export` and :meth:`RFDETR.predict`. Args: | STRING |
| HIGH | src/rfdetr/detr.py | 310 | Load an RF-DETR model from a training checkpoint, automatically inferring the model class. The correct subclass | STRING |
| HIGH | src/rfdetr/detr.py | 640 | Map a torch-style device specifier to PTL ``accelerator``/``devices`` kwargs. Args: device: A devic | STRING |
| HIGH | src/rfdetr/detr.py | 926 | Optimize the model for inference with optional JIT compilation and dtype casting. Operations are wrapped in the | STRING |
| HIGH | src/rfdetr/detr.py | 1196 | Export the trained model to ONNX or TFLite format. See the `export documentation <https://rfdetr.roboflow.com/l | STRING |
| HIGH | src/rfdetr/detr.py | 1557 | Return the Roboflow COCO train annotation path when it exists. Args: dataset_dir: Path to the Robof | STRING |
| HIGH | src/rfdetr/detr.py | 1579 | Return the native COCO train keypoint annotation path when it exists. Args: dataset_dir: Path to th | STRING |
| HIGH | src/rfdetr/detr.py | 1599 | Return the YOLO data file path when a dataset root has one. Args: dataset_dir: Path to the YOLO dat | STRING |
| HIGH | src/rfdetr/detr.py | 1636 | Infer or validate keypoint schema from COCO, Roboflow COCO, or YOLO pose metadata. Args: config: Tr | STRING |
| HIGH | src/rfdetr/detr.py | 1808 | Performs model inference on the input images. This method accepts a single image or a list of images in various | STRING |
| HIGH | src/rfdetr/config.py | 438 | Normalize supported device inputs to a canonical torch-style string. Args: v: Device specifier prov | STRING |
| HIGH | src/rfdetr/util/io.py | 29 | Load a PyTorch checkpoint as safely as possible. Tries progressively less restrictive deserialization strategies: | STRING |
| HIGH | src/rfdetr/training/module_data.py | 128 | Resolve ``"auto"`` to ``"cpu"`` or ``"gpu"`` based on runtime availability. For ``"cpu"`` and ``"gpu"`` the value i | STRING |
| HIGH | src/rfdetr/training/module_data.py | 401 | Build a private diagnostic figure for transformed dataset samples. Samples the dataset after RF-DETR dataset tr | STRING |
| HIGH | src/rfdetr/training/drop_schedule.py | 26 | Build a per-iteration drop-path or dropout rate schedule. ``"standard"`` mode: every iteration uses the same ``drop | STRING |
| HIGH | src/rfdetr/training/auto_batch.py | 171 | Find the largest per-device batch size that fits in memory for one train step. Uses exponential search (1, 2, 4, .. | STRING |
| HIGH | src/rfdetr/training/auto_batch.py | 277 | Recommend gradient accumulation steps to reach target effective batch size. Args: safe_micro_batch: Per-ste | STRING |
| HIGH | src/rfdetr/training/auto_batch.py | 303 | Resolve batch_size='auto' into concrete batch_size and grad_accum_steps using a probe. Expects model_context to hav | STRING |
| HIGH | src/rfdetr/datasets/synthetic.py | 69 | Normalize split ratios parameter to a dictionary. Args: split_ratios: Can be: - DatasetSplitRat | STRING |
| HIGH | src/rfdetr/datasets/coco.py | 531 | Build the standard COCO transform pipeline for a given dataset split. Returns a composed transform that resizes ima | STRING |
| HIGH | src/rfdetr/datasets/transforms.py | 51 | Normalize image and convert target coordinates to relative format. Applies ImageNet-style channel normalization | STRING |
| HIGH | src/rfdetr/datasets/transforms.py | 153 | Return True if transform (or any nested transform) affects spatial coordinates. For container transforms such as `` | STRING |
| HIGH | src/rfdetr/datasets/transforms.py | 182 | Build a single Albumentations transform from its name and parameter dict. Handles container transforms (``OneOf``, | STRING |
| HIGH | src/rfdetr/datasets/transforms.py | 278 | Normalize transform params across Albumentations API variations. Currently this adapts ``RandomSizedCrop`` argument | STRING |
| HIGH | src/rfdetr/datasets/transforms.py | 784 | Apply the Albumentations transform to image and target. This method handles the data format conversion between | STRING |
| HIGH | src/rfdetr/datasets/transforms.py | 886 | Build a list of :class:`AlbumentationsWrapper` instances from a config. Supports both a flat dictionary format | STRING |
| HIGH | src/rfdetr/datasets/__init__.py | 44 | Detect if a Roboflow dataset is in COCO or YOLO format. Args: dataset_dir: Path to the Roboflow dataset roo | STRING |
| HIGH | src/rfdetr/datasets/kornia_transforms.py | 87 | Resolve an ``augmentation_backend`` value to a concrete ``"cpu"`` or ``"gpu"``. ``"auto"`` resolves to ``"gpu"`` on | STRING |
| HIGH | src/rfdetr/datasets/kornia_transforms.py | 303 | Build a Kornia ``AugmentationSequential`` from an aug_config dict. Each key in *aug_config* is looked up in ``_REGI | STRING |
| HIGH | src/rfdetr/datasets/kornia_transforms.py | 441 | Pack variable-length instance masks into a zero-padded ``[B, N_max, H, W]`` tensor. Kornia ``AugmentationSequential | STRING |
| HIGH | src/rfdetr/datasets/_keypoint_schema.py | 32 | Keypoint schema inferred from COCO category metadata. Args: class_names: Category names sorted by category | STRING |
| HIGH | src/rfdetr/datasets/_keypoint_schema.py | 59 | Keypoint schema inferred from an Ultralytics YOLO pose YAML file. Args: class_names: Class names ordered by | STRING |
| HIGH | src/rfdetr/datasets/_keypoint_schema.py | 94 | Load a YAML file and require a mapping root. Args: yaml_path: Path to a YAML data file. Returns: | STRING |
| HIGH | src/rfdetr/datasets/_keypoint_schema.py | 289 | Load a COCO annotation JSON file. Args: annotation_path: Path to a COCO annotation JSON file. Returns: | STRING |
| HIGH | src/rfdetr/datasets/_keypoint_schema.py | 316 | Validate and sort COCO categories by category id. Args: categories: Raw ``categories`` value from a COCO an | STRING |
| HIGH | src/rfdetr/datasets/_keypoint_schema.py | 347 | Validate COCO annotations container type. Args: annotations: Raw ``annotations`` value from a COCO annotati | STRING |
| HIGH | src/rfdetr/datasets/_keypoint_schema.py | 371 | Infer keypoint count for one category from annotation vectors. Args: annotations: COCO annotation dictionar | STRING |
| HIGH | src/rfdetr/datasets/_keypoint_schema.py | 411 | Infer a keypoint schema from a COCO annotation JSON file. Args: annotation_path: Path to a COCO annotation | STRING |
| HIGH | src/rfdetr/datasets/_keypoint_schema.py | 467 | Infer a keypoint schema from an Ultralytics YOLO pose YAML file. Args: data_file: Path to a YOLO ``data.yam | STRING |
| HIGH | src/rfdetr/datasets/_keypoint_schema.py | 507 | Return non-zero keypoint counts from a model schema. Args: num_keypoints_per_class: Model keypoint schema. | STRING |
| HIGH | src/rfdetr/datasets/yolo.py | 183 | Parse one YOLO label line and return ``(class_id, xyxy_px, polygon_px)``. Args: values: Whitespace-split fi | STRING |
| HIGH | src/rfdetr/datasets/yolo.py | 352 | Build the class list and sample list shared by both YOLO builder functions. Iterates over every image in ``img_fold | STRING |
| HIGH | src/rfdetr/datasets/yolo.py | 636 | Parse ``data_file`` and resolve image/label dirs for ``split``. Returns ``None`` when the YAML declares no usable p | STRING |
| HIGH | src/rfdetr/datasets/_develop.py | 44 | Check whether the COCO val2017 image directory contains the expected number of JPEG files. Returns ``False`` for a | STRING |
| HIGH | src/rfdetr/datasets/_develop.py | 76 | Check whether a file exists and contains at least one byte. Returns ``False`` for a missing or empty file so caller | STRING |
| 36 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/training/test_metrics_csv.py | 16 | CODE | |
| LOW | tests/training/test_cli.py | 25 | CODE | |
| LOW | tests/training/helpers.py | 14 | 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/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/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_export_for_roboflow.py | 13 | CODE | |
| LOW | tests/export/test_tflite_inference.py | 14 | CODE | |
| LOW | tests/export/test_tflite_export.py | 18 | CODE | |
| LOW | tests/export/test_tflite_export.py | 1051 | CODE | |
| LOW | tests/export/test_tflite_inference_parity.py | 17 | CODE | |
| LOW | src/rfdetr/detr.py | 6 | CODE | |
| LOW | src/rfdetr/variants.py | 13 | CODE | |
| LOW | src/rfdetr/__init__.py | 52 | CODE | |
| LOW | src/rfdetr/__init__.py | 53 | CODE | |
| LOW | src/rfdetr/__init__.py | 53 | CODE | |
| LOW | src/rfdetr/__init__.py | 53 | CODE | |
| LOW | src/rfdetr/__init__.py | 53 | CODE | |
| LOW | src/rfdetr/__init__.py | 53 | CODE | |
| LOW | src/rfdetr/__init__.py | 53 | CODE | |
| LOW | src/rfdetr/__init__.py | 53 | CODE | |
| LOW | src/rfdetr/__init__.py | 53 | CODE | |
| LOW | src/rfdetr/__init__.py | 53 | CODE | |
| LOW | src/rfdetr/__init__.py | 53 | CODE | |
| LOW | src/rfdetr/__init__.py | 53 | CODE | |
| LOW | src/rfdetr/__init__.py | 53 | CODE | |
| LOW | src/rfdetr/__init__.py | 53 | CODE | |
| LOW | src/rfdetr/__init__.py | 53 | CODE | |
| LOW | src/rfdetr/inference.py | 8 | CODE | |
| LOW | src/rfdetr/inference.py | 12 | CODE | |
| LOW | src/rfdetr/util/package.py | 12 | CODE | |
| LOW | src/rfdetr/util/package.py | 12 | CODE | |
| LOW | src/rfdetr/util/misc.py | 29 | CODE | |
| LOW | src/rfdetr/util/misc.py | 29 | CODE | |
| LOW | src/rfdetr/util/misc.py | 29 | CODE | |
| LOW | src/rfdetr/util/misc.py | 30 | CODE | |
| LOW | src/rfdetr/util/misc.py | 30 | CODE | |
| LOW | src/rfdetr/util/misc.py | 30 | CODE | |
| LOW | src/rfdetr/util/misc.py | 30 | CODE | |
| LOW | src/rfdetr/util/misc.py | 30 | CODE | |
| LOW | src/rfdetr/util/misc.py | 30 | CODE | |
| LOW | src/rfdetr/util/misc.py | 30 | CODE | |
| LOW | src/rfdetr/util/misc.py | 39 | CODE | |
| LOW | src/rfdetr/util/misc.py | 40 | CODE | |
| LOW | src/rfdetr/util/misc.py | 41 | CODE | |
| LOW | src/rfdetr/util/misc.py | 41 | CODE | |
| LOW | src/rfdetr/util/misc.py | 41 | CODE | |
| LOW | src/rfdetr/util/misc.py | 41 | CODE | |
| LOW | src/rfdetr/util/coco_classes.py | 14 | CODE | |
| LOW | src/rfdetr/util/box_ops.py | 12 | CODE | |
| LOW | src/rfdetr/util/box_ops.py | 12 | CODE | |
| LOW | src/rfdetr/util/box_ops.py | 12 | CODE | |
| 161 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL⚡ | tests/models/backbone/test_windowed_dino.py | 482 | before = [layer.attention.attention.query.weight.clone() for layer in model.encoder.layer] | CODE |
| CRITICAL⚡ | tests/models/backbone/test_windowed_dino.py | 497 | key_before = [layer.attention.attention.key.weight.clone() for layer in model.encoder.layer] | CODE |
| CRITICAL⚡ | tests/models/backbone/test_windowed_dino.py | 498 | val_before = [layer.attention.attention.value.weight.clone() for layer in model.encoder.layer] | CODE |
| CRITICAL⚡ | tests/models/backbone/test_windowed_dino.py | 515 | dense_before = [layer.attention.output.dense.weight.clone() for layer in model.encoder.layer] | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | mkdocs.yaml | 81 | theme: | COMMENT |
| LOW | pyproject.toml | 221 | "tflite: tests requiring onnx2tf and TFLite dependencies", | 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/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/assets/__init__.py | 1 | # ------------------------------------------------------------------------ | 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 | 601 | # a caller accidentally passes pretrain_weights inside kwargs. | COMMENT |
| LOW | src/rfdetr/util/misc.py | 1 | # ------------------------------------------------------------------------ | COMMENT |
| LOW | src/rfdetr/util/__init__.py | 1 | # ------------------------------------------------------------------------ | COMMENT |
| LOW | src/rfdetr/training/module_model.py | 101 | if compile_enabled: | COMMENT |
| LOW | src/rfdetr/training/module_model.py | 601 | # ``trainer.estimated_stepping_batches`` is reported in *microbatch* units when | COMMENT |
| LOW | src/rfdetr/training/trainer.py | 61 | # "Invalid thread pool!" SIGABRT when the autograd engine initialises in | COMMENT |
| LOW | src/rfdetr/training/trainer.py | 181 | f"amp_dtype={tc.amp_dtype!r} has no effect when model_config.amp=False.", | 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/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/math.py | 1 | # ------------------------------------------------------------------------ | COMMENT |
| LOW | src/rfdetr/models/lwdetr.py | 1 | # ------------------------------------------------------------------------ | COMMENT |
| LOW | src/rfdetr/models/ops/__init__.py | 1 | # ------------------------------------------------------------------------ | COMMENT |
| LOW | src/rfdetr/models/ops/functions/ms_deform_attn_func.py | 1 | # ------------------------------------------------------------------------ | COMMENT |
| LOW | src/rfdetr/models/ops/functions/__init__.py | 1 | # ------------------------------------------------------------------------ | COMMENT |
| LOW | src/rfdetr/models/ops/modules/ms_deform_attn.py | 1 | # ------------------------------------------------------------------------ | COMMENT |
| LOW | src/rfdetr/models/ops/modules/__init__.py | 1 | # ------------------------------------------------------------------------ | COMMENT |
| LOW | src/rfdetr/models/backbone/dinov2_with_windowed_attn.py | 1 | # ------------------------------------------------------------------------ | COMMENT |
| LOW | src/rfdetr/models/backbone/backbone.py | 1 | # ------------------------------------------------------------------------ | COMMENT |
| LOW | src/rfdetr/models/backbone/projector.py | 1 | # ------------------------------------------------------------------------ | COMMENT |
| LOW | src/rfdetr/utilities/box_ops.py | 1 | # ------------------------------------------------------------------------ | COMMENT |
| LOW | src/rfdetr/utilities/tensors.py | 1 | # ------------------------------------------------------------------------ | COMMENT |
| LOW | src/rfdetr/utilities/distributed.py | 1 | # ------------------------------------------------------------------------ | COMMENT |
| LOW | src/rfdetr/evaluation/coco_eval.py | 1 | # ------------------------------------------------------------------------ | COMMENT |
| LOW | src/rfdetr/evaluation/matching.py | 1 | # ------------------------------------------------------------------------ | COMMENT |
| LOW | src/rfdetr/export/__init__.py | 1 | # ------------------------------------------------------------------------ | COMMENT |
| LOW | src/rfdetr/export/_tflite/converter.py | 901 | # _patch_validation_download redirects onnx2tf's | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/training/test_detr_shim.py | 1531 | 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 | 77 | __all__ = ["RFDETR", "ModelContext", *_VARIANT_EXPORTS] | CODE |
| LOW⚡ | src/rfdetr/variants.py | 15 | __all__ = [ | CODE |
| LOW | src/rfdetr/__init__.py | 70 | __all__ = [ | CODE |
| LOW⚡ | src/rfdetr/inference.py | 10 | __all__ = ["ModelContext"] | CODE |
| LOW | src/rfdetr/training/module_data.py | 572 | 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 | 34 | __all__ = [ | CODE |
| LOW⚡ | src/rfdetr/training/callbacks/__init__.py | 13 | __all__ = [ | CODE |
| LOW | src/rfdetr/training/callbacks/coco_eval.py | 854 | def _update_keypoint_oks_metric(self, trainer: Any, outputs: dict[str, Any], split: str) -> None: | CODE |
| LOW | src/rfdetr/datasets/synthetic.py | 25 | logger = logging.getLogger(__name__) | 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 | 36 | __all__ = ["load_pretrain_weights", "apply_lora", "interpolate_position_embeddings"] | CODE |
| LOW | src/rfdetr/models/lwdetr.py | 745 | def update_drop_path(self, drop_path_rate: float, vit_encoder_num_layers: int) -> None: | CODE |
| LOW | src/rfdetr/models/lwdetr.py | 764 | 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 | 518 | __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 | 1369 | __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 | 33 | __all__ = [ | CODE |
| LOW⚡ | src/rfdetr/utilities/keypoints.py | 13 | __all__ = [ | CODE |
| LOW⚡ | src/rfdetr/utilities/decorators.py | 12 | __all__ = ["TargetMode", "deprecated", "void"] | CODE |
| LOW⚡ | src/rfdetr/evaluation/__init__.py | 14 | __all__ = [ | CODE |
| LOW | src/rfdetr/export/_onnx/exporter.py | 319 | 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/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 | 782 | CODE | |
| LOW | src/rfdetr/detr.py | 309 | CODE | |
| LOW | src/rfdetr/detr.py | 677 | CODE | |
| LOW | src/rfdetr/detr.py | 1178 | CODE | |
| LOW | src/rfdetr/detr.py | 1635 | CODE | |
| LOW | src/rfdetr/detr.py | 1799 | CODE | |
| LOW | src/rfdetr/config.py | 28 | CODE | |
| LOW | src/rfdetr/config.py | 258 | CODE | |
| LOW | src/rfdetr/training/module_data.py | 229 | CODE | |
| LOW | src/rfdetr/training/module_data.py | 670 | CODE | |
| LOW | src/rfdetr/training/module_model.py | 669 | CODE | |
| LOW | src/rfdetr/training/callbacks/best_model.py | 492 | CODE | |
| LOW | src/rfdetr/training/callbacks/ema.py | 90 | CODE | |
| LOW | src/rfdetr/datasets/synthetic.py | 195 | CODE | |
| LOW | src/rfdetr/datasets/synthetic.py | 309 | CODE | |
| LOW | src/rfdetr/datasets/coco.py | 326 | CODE | |
| LOW | src/rfdetr/datasets/transforms.py | 617 | CODE | |
| LOW | src/rfdetr/datasets/transforms.py | 642 | CODE | |
| LOW | src/rfdetr/datasets/yolo.py | 343 | CODE | |
| LOW | src/rfdetr/datasets/_develop.py | 175 | CODE | |
| LOW | src/rfdetr/models/transformer.py | 559 | CODE | |
| LOW | src/rfdetr/models/criterion.py | 662 | CODE | |
| LOW | src/rfdetr/models/weights.py | 272 | CODE | |
| LOW | src/rfdetr/models/backbone/dinov2_with_windowed_attn.py | 1139 | CODE | |
| LOW | src/rfdetr/models/backbone/dinov2_with_windowed_attn.py | 1264 | 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/evaluation/coco_eval.py | 420 | CODE | |
| LOW | src/rfdetr/evaluation/matching.py | 55 | CODE | |
| LOW | src/rfdetr/evaluation/matching.py | 134 | CODE | |
| LOW | src/rfdetr/export/benchmark.py | 390 | CODE | |
| LOW | src/rfdetr/export/main.py | 94 | CODE | |
| LOW | src/rfdetr/export/_onnx/exporter.py | 550 | CODE | |
| LOW | src/rfdetr/export/_onnx/exporter.py | 616 | CODE | |
| LOW | src/rfdetr/export/_tflite/converter.py | 680 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | docs/learn/deploy.md | 30 | api_key="<YOUR_API_KEY>", | CODE |
| HIGH | docs/learn/deploy.md | 30 | api_key="<YOUR_API_KEY>", | CODE |
| HIGH | docs/learn/deploy.md | 44 | api_key="<YOUR_API_KEY>", | CODE |
| HIGH | docs/learn/deploy.md | 44 | api_key="<YOUR_API_KEY>", | CODE |
| HIGH | docs/root-static/llms-full.txt | 237 | api_key="YOUR_API_KEY" | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | tests/training/callbacks/test_coco_eval_callback.py | 466 | # 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 | 785 | >>> # Create a sample image and target | STRING |
| MEDIUM | src/rfdetr/models/backbone/dinov2.py | 84 | # Create the encoder | COMMENT |
| MEDIUM | src/rfdetr/models/backbone/dinov2.py | 203 | # 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 | 180 | # Create the temp file in the destination directory so os.replace stays on the same filesystem (atomic). | COMMENT |
| 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/export/test_export.py | 249 | CODE | |
| LOW | src/rfdetr/detr.py | 1178 | CODE | |
| LOW | src/rfdetr/datasets/coco.py | 519 | CODE | |
| LOW | src/rfdetr/datasets/coco.py | 626 | CODE | |
| LOW | src/rfdetr/models/matcher.py | 56 | CODE | |
| LOW | src/rfdetr/models/transformer.py | 138 | CODE | |
| LOW | src/rfdetr/models/transformer.py | 519 | CODE | |
| LOW | src/rfdetr/models/transformer.py | 599 | CODE | |
| LOW | src/rfdetr/models/transformer.py | 755 | CODE | |
| LOW | src/rfdetr/models/transformer.py | 859 | CODE | |
| LOW | src/rfdetr/models/transformer.py | 1014 | 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 | 59 | CODE | |
| LOW | src/rfdetr/models/backbone/backbone.py | 39 | CODE |
| 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 | src/rfdetr/detr.py | 52 | except Exception: | CODE |
| LOW | src/rfdetr/detr.py | 867 | except Exception: | CODE |
| LOW | src/rfdetr/detr.py | 1073 | except Exception: | CODE |
| LOW | src/rfdetr/variants.py | 203 | except Exception as retry_exc: | CODE |
| LOW | src/rfdetr/datasets/transforms.py | 1006 | except Exception as e: | CODE |
| LOW | src/rfdetr/models/weights.py | 332 | except Exception: | CODE |
| LOW | src/rfdetr/utilities/files.py | 110 | except Exception: | CODE |
| LOW | src/rfdetr/utilities/files.py | 128 | except Exception: | CODE |
| LOW | src/rfdetr/export/_tflite/converter.py | 463 | except Exception as exc: | CODE |
| LOW | src/rfdetr/export/_tflite/converter.py | 644 | except Exception: | CODE |
| LOW | src/rfdetr/export/_tflite/converter.py | 957 | except Exception as exc: | CODE |
| 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 | 1070 | """``predict()`` URL handling: robust HTTP fetch and correct local-path classification.""" | STRING |
| MEDIUM | src/rfdetr/export/_onnx/inference.py | 180 | # Match by name so the code is robust to output reordering. | COMMENT |
| MEDIUM | src/rfdetr/export/_tflite/inference.py | 253 | # Match by name so the code is robust to onnx2tf output reordering. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | tests/export/test_export.py | 675 | # 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 | 1564 | api_key="dummy-key", | CODE |
| LOW | tests/training/test_detr_shim.py | 1597 | api_key="dummy-key", | CODE |
| LOW | tests/training/test_detr_shim.py | 1629 | api_key="dummy-key", | CODE |
| LOW | tests/training/test_detr_shim.py | 1657 | api_key="dummy-key", | CODE |
| LOW | tests/training/test_detr_shim.py | 1683 | api_key="dummy-key", | CODE |
| LOW | tests/training/test_detr_shim.py | 1710 | api_key="dummy-key", | CODE |
| LOW | tests/training/test_detr_shim.py | 1729 | api_key="dummy-key", | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/rfdetr/utilities/files.py | 71 | # Check if file exists and has correct hash | COMMENT |
| LOW | src/rfdetr/assets/model_weights.py | 416 | # Check if we have a hash for this model | COMMENT |