Repository Analysis

lyuwenyu/RT-DETR

[CVPR 2024] Official RT-DETR (RTDETR paddle pytorch), Real-Time DEtection TRansformer, DETRs Beat YOLOs on Real-time Object Detection. 🔥 🔥 🔥

21.3 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of lyuwenyu/RT-DETR, a Python project with 5,452 GitHub stars. SynthScan v2.0 examined 55,935 lines of code across 335 source files, recording 1021 pattern matches distributed across 12 syntactic categories. The overall adjusted score of 21.3 places this repository in the Moderate 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).

21.3
Adjusted Score
21.3
Raw Score
100%
Time Factor
2026-08-13
Last Push
5.5K
Stars
Python
Language
55.9K
Lines of Code
335
Files
1.0K
Pattern Hits
2026-08-13
Scan Date
0.12
HC Hit Rate

What These Metrics Mean

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

Score History

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

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

Severity Breakdown

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

CRITICAL 0HIGH 40MEDIUM 6LOW 975

Directory Score Breakdown

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

Pattern Findings

The scanner identified 1021 distinct pattern matches across 12 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.

Unused Imports474 hits · 474 pts
SeverityFileLineSnippetContext
LOWhubconf.py5CODE
LOWbenchmark/trtinfer.py4CODE
LOWbenchmark/trtinfer.py5CODE
LOWrtdetr_pytorch/tools/export_onnx.py9CODE
LOWrtdetr_pytorch/tools/infer.py11CODE
LOWrtdetr_pytorch/tools/infer.py13CODE
LOWrtdetr_pytorch/src/__init__.py2CODE
LOWrtdetr_pytorch/src/__init__.py3CODE
LOWrtdetr_pytorch/src/__init__.py4CODE
LOWrtdetr_pytorch/src/__init__.py5CODE
LOWrtdetr_pytorch/src/misc/__init__.py2CODE
LOWrtdetr_pytorch/src/misc/__init__.py3CODE
LOWrtdetr_pytorch/src/core/config.py4CODE
LOWrtdetr_pytorch/src/core/config.py12CODE
LOWrtdetr_pytorch/src/core/config.py12CODE
LOWrtdetr_pytorch/src/core/__init__.py5CODE
LOWrtdetr_pytorch/src/core/__init__.py6CODE
LOWrtdetr_pytorch/src/core/__init__.py7CODE
LOWrtdetr_pytorch/src/nn/__init__.py2CODE
LOWrtdetr_pytorch/src/nn/__init__.py3CODE
LOWrtdetr_pytorch/src/nn/__init__.py6CODE
LOWrtdetr_pytorch/src/nn/arch/classification.py1CODE
LOWrtdetr_pytorch/src/nn/arch/__init__.py1CODE
LOWrtdetr_pytorch/src/nn/backbone/test_resnet.py1CODE
LOWrtdetr_pytorch/src/nn/backbone/test_resnet.py5CODE
LOWrtdetr_pytorch/src/nn/backbone/regnet.py1CODE
LOWrtdetr_pytorch/src/nn/backbone/dla.py1CODE
LOWrtdetr_pytorch/src/nn/backbone/dla.py2CODE
LOWrtdetr_pytorch/src/nn/backbone/dla.py3CODE
LOWrtdetr_pytorch/src/nn/backbone/__init__.py2CODE
LOWrtdetr_pytorch/src/nn/backbone/__init__.py3CODE
LOWrtdetr_pytorch/src/nn/backbone/__init__.py4CODE
LOWrtdetr_pytorch/src/nn/backbone/__init__.py5CODE
LOWrtdetr_pytorch/src/nn/backbone/__init__.py6CODE
LOWrtdetr_pytorch/src/nn/backbone/utils.py8CODE
LOWrtdetr_pytorch/src/optim/amp.py1CODE
LOWrtdetr_pytorch/src/optim/amp.py2CODE
LOWrtdetr_pytorch/src/optim/amp.py7CODE
LOWrtdetr_pytorch/src/optim/__init__.py2CODE
LOWrtdetr_pytorch/src/optim/__init__.py3CODE
LOWrtdetr_pytorch/src/optim/__init__.py4CODE
LOWrtdetr_pytorch/src/optim/optim.py2CODE
LOWrtdetr_pytorch/src/optim/optim.py3CODE
LOWrtdetr_pytorch/src/solver/det_engine.py9CODE
LOWrtdetr_pytorch/src/solver/det_engine.py11CODE
LOWrtdetr_pytorch/src/solver/solver.py5CODE
LOWrtdetr_pytorch/src/zoo/__init__.py2CODE
LOWrtdetr_pytorch/src/zoo/rtdetr/rtdetr.py4CODE
LOWrtdetr_pytorch/src/zoo/rtdetr/__init__.py5CODE
LOWrtdetr_pytorch/src/zoo/rtdetr/__init__.py7CODE
LOWrtdetr_pytorch/src/zoo/rtdetr/__init__.py8CODE
LOWrtdetr_pytorch/src/zoo/rtdetr/__init__.py9CODE
LOWrtdetr_pytorch/src/zoo/rtdetr/__init__.py10CODE
LOWrtdetr_pytorch/src/zoo/rtdetr/__init__.py12CODE
LOWrtdetr_pytorch/src/data/__init__.py2CODE
LOWrtdetr_pytorch/src/data/__init__.py3CODE
LOWrtdetr_pytorch/src/data/__init__.py5CODE
LOWrtdetr_pytorch/src/data/__init__.py6CODE
LOWrtdetr_pytorch/src/data/functional.py5CODE
LOWrtdetr_pytorch/src/data/functional.py5CODE
414 more matches not shown…
Cross-File Repetition33 hits · 165 pts
SeverityFileLineSnippetContext
HIGHrtdetr_pytorch/src/misc/logger.py0track a series of values and provide access to smoothed values over a window or the global series average.STRING
HIGHrtdetrv2_pytorch/src/misc/logger.py0track a series of values and provide access to smoothed values over a window or the global series average.STRING
HIGHrtdetr_paddle/ppdet/utils/stats.py0track a series of values and provide access to smoothed values over a window or the global series average.STRING
HIGHrtdetr_pytorch/src/misc/logger.py0run all_gather on arbitrary picklable data (not necessarily tensors) args: data: any picklable object returns: list[dataSTRING
HIGHrtdetr_pytorch/src/misc/dist.py0run all_gather on arbitrary picklable data (not necessarily tensors) args: data: any picklable object returns: list[dataSTRING
HIGHrtdetrv2_pytorch/src/misc/logger.py0run all_gather on arbitrary picklable data (not necessarily tensors) args: data: any picklable object returns: list[dataSTRING
HIGHrtdetrv2_pytorch/src/misc/dist_utils.py0run all_gather on arbitrary picklable data (not necessarily tensors) args: data: any picklable object returns: list[dataSTRING
HIGHrtdetr_pytorch/src/optim/ema.py0model exponential moving average from https://github.com/rwightman/pytorch-image-models keep a moving average of everythSTRING
HIGHrtdetrv2_pytorch/src/optim/ema.py0model exponential moving average from https://github.com/rwightman/pytorch-image-models keep a moving average of everythSTRING
HIGHrtdetr_paddle/ppdet/optimizer/ema.py0model exponential moving average from https://github.com/rwightman/pytorch-image-models keep a moving average of everythSTRING
HIGHrtdetr_pytorch/src/zoo/rtdetr/rtdetr_decoder.py0args: query (tensor): [bs, query_length, c] reference_points (tensor): [bs, query_length, n_levels, 2], range in [0, 1],STRING
HIGHrtdetrv2_pytorch/src/zoo/rtdetr/rtdetr_decoder.py0args: query (tensor): [bs, query_length, c] reference_points (tensor): [bs, query_length, n_levels, 2], range in [0, 1],STRING
HIGH…ddle/ppdet/modeling/transformers/rtdetr_transformer.py0args: query (tensor): [bs, query_length, c] reference_points (tensor): [bs, query_length, n_levels, 2], range in [0, 1],STRING
HIGHrtdetrv2_pytorch/src/zoo/rtdetr/rtdetrv2_decoder.py0args: query (tensor): [bs, query_length, c] reference_points (tensor): [bs, query_length, n_levels, 2], range in [0, 1],STRING
HIGH…/ppdet/modeling/transformers/deformable_transformer.py0args: query (tensor): [bs, query_length, c] reference_points (tensor): [bs, query_length, n_levels, 2], range in [0, 1],STRING
HIGHrtdetr_pytorch/src/zoo/rtdetr/rtdetr_criterion.py0this class computes the loss for detr. the process happens in two steps: 1) we compute hungarian assignment between grouSTRING
HIGHrtdetrv2_pytorch/src/zoo/rtdetr/rtdetr_criterion.py0this class computes the loss for detr. the process happens in two steps: 1) we compute hungarian assignment between grouSTRING
HIGHrtdetrv2_pytorch/src/zoo/rtdetr/rtdetrv2_criterion.py0this class computes the loss for detr. the process happens in two steps: 1) we compute hungarian assignment between grouSTRING
HIGHrtdetr_pytorch/src/zoo/rtdetr/rtdetr_criterion.py0create the criterion. parameters: matcher: module able to compute a matching between targets and proposals num_classes: STRING
HIGHrtdetrv2_pytorch/src/zoo/rtdetr/rtdetr_criterion.py0create the criterion. parameters: matcher: module able to compute a matching between targets and proposals num_classes: STRING
HIGHrtdetrv2_pytorch/src/zoo/rtdetr/rtdetrv2_criterion.py0create the criterion. parameters: matcher: module able to compute a matching between targets and proposals num_classes: STRING
HIGHrtdetr_pytorch/src/zoo/rtdetr/rtdetr_criterion.py0compute the losses related to the bounding boxes, the l1 regression loss and the giou loss targets dicts must contain thSTRING
HIGHrtdetrv2_pytorch/src/zoo/rtdetr/rtdetr_criterion.py0compute the losses related to the bounding boxes, the l1 regression loss and the giou loss targets dicts must contain thSTRING
HIGHrtdetrv2_pytorch/src/zoo/rtdetr/rtdetrv2_criterion.py0compute the losses related to the bounding boxes, the l1 regression loss and the giou loss targets dicts must contain thSTRING
HIGHrtdetr_pytorch/src/zoo/rtdetr/rtdetr_criterion.py0this performs the loss computation. parameters: outputs: dict of tensors, see the output specification of the model for STRING
HIGHrtdetrv2_pytorch/src/zoo/rtdetr/rtdetr_criterion.py0this performs the loss computation. parameters: outputs: dict of tensors, see the output specification of the model for STRING
HIGHrtdetrv2_pytorch/src/zoo/rtdetr/rtdetrv2_criterion.py0this performs the loss computation. parameters: outputs: dict of tensors, see the output specification of the model for STRING
HIGHrtdetr_pytorch/src/zoo/rtdetr/utils.py0args: value (tensor): [bs, value_length, n_head, c] value_spatial_shapes (tensor|list): [n_levels, 2] value_level_start_STRING
HIGHrtdetrv2_pytorch/src/zoo/rtdetr/utils.py0args: value (tensor): [bs, value_length, n_head, c] value_spatial_shapes (tensor|list): [n_levels, 2] value_level_start_STRING
HIGHrtdetr_paddle/ppdet/modeling/transformers/utils.py0args: value (tensor): [bs, value_length, n_head, c] value_spatial_shapes (tensor|list): [n_levels, 2] value_level_start_STRING
HIGHrtdetr_pytorch/src/zoo/rtdetr/utils.py0initialize conv/fc bias value according to a given probability value.STRING
HIGHrtdetrv2_pytorch/src/zoo/rtdetr/utils.py0initialize conv/fc bias value according to a given probability value.STRING
HIGHrtdetr_paddle/ppdet/modeling/initializer.py0initialize conv/fc bias value according to a given probability value.STRING
Over-Commented Block117 hits · 117 pts
SeverityFileLineSnippetContext
LOWrtdetr_pytorch/tools/export_onnx.py81 print(f'Simplify onnx model {check}...')COMMENT
LOWrtdetr_pytorch/tools/export_onnx.py101 # output = sess.run(COMMENT
LOWrtdetr_pytorch/tools/export_onnx.py121 # print(i, sum(scr > thrh))COMMENT
LOWrtdetr_pytorch/src/solver/det_engine.py121 outputs = model(samples)COMMENT
LOWrtdetr_pytorch/src/solver/det_engine.py141 # target_sizes = torch.stack([t["size"] for t in targets], dim=0)COMMENT
LOWrtdetr_pytorch/src/zoo/rtdetr/denoising.py61 mask = torch.rand_like(input_query_class, dtype=torch.float) < (label_noise_ratio * 0.5)COMMENT
LOWrtdetrv2_pytorch/references/deploy/rtdetrv2_tensorrt.py1# Copyright 2023 lyuwenyu. All Rights Reserved.COMMENT
LOWrtdetrv2_pytorch/src/data/__init__.py21# _set_epoch_func([CIFAR10, VOCDetection, CocoDetection])COMMENT
LOWrtdetr_paddle/ppdet/__init__.py1# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWrtdetr_paddle/ppdet/metrics/keypoint_metrics.py1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. COMMENT
LOWrtdetr_paddle/ppdet/metrics/metrics.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. COMMENT
LOWrtdetr_paddle/ppdet/metrics/mcmot_metrics.py1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. COMMENT
LOWrtdetr_paddle/ppdet/metrics/munkres.py1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. COMMENT
LOWrtdetr_paddle/ppdet/metrics/__init__.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWrtdetr_paddle/ppdet/metrics/mot_metrics.py1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. COMMENT
LOWrtdetr_paddle/ppdet/metrics/mot_metrics.py881 # should be greater or equal to 0COMMENT
LOWrtdetr_paddle/ppdet/metrics/map_utils.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWrtdetr_paddle/ppdet/metrics/widerface_utils.py1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWrtdetr_paddle/ppdet/metrics/pose3d_metrics.py1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. COMMENT
LOWrtdetr_paddle/ppdet/metrics/coco_utils.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. COMMENT
LOWrtdetr_paddle/ppdet/metrics/json_results.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWrtdetr_paddle/ppdet/core/__init__.py1# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWrtdetr_paddle/ppdet/core/workspace.py1# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWrtdetr_paddle/ppdet/core/config/yaml_helpers.py1# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWrtdetr_paddle/ppdet/core/config/__init__.py1# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWrtdetr_paddle/ppdet/core/config/schema.py1# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWrtdetr_paddle/ppdet/optimizer/ema.py1# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWrtdetr_paddle/ppdet/optimizer/__init__.py1# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWrtdetr_paddle/ppdet/optimizer/utils.py1# Copyright (c) 2023 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWrtdetr_paddle/ppdet/optimizer/optimizer.py1# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWrtdetr_paddle/ppdet/utils/colormap.py1# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWrtdetr_paddle/ppdet/utils/voc_utils.py1# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWrtdetr_paddle/ppdet/utils/checkpoint.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWrtdetr_paddle/ppdet/utils/check.py1# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWrtdetr_paddle/ppdet/utils/download.py1# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWrtdetr_paddle/ppdet/utils/__init__.py1# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWrtdetr_paddle/ppdet/utils/logger.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWrtdetr_paddle/ppdet/utils/fuse_utils.py1# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWrtdetr_paddle/ppdet/utils/cli.py1# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWrtdetr_paddle/ppdet/utils/stats.py1# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWrtdetr_paddle/ppdet/utils/profiler.py1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWrtdetr_paddle/ppdet/utils/visualizer.py1# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWrtdetr_paddle/ppdet/modeling/shape_spec.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. COMMENT
LOWrtdetr_paddle/ppdet/modeling/__init__.py1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. COMMENT
LOWrtdetr_paddle/ppdet/modeling/keypoint_utils.py1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWrtdetr_paddle/ppdet/modeling/ops.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. COMMENT
LOWrtdetr_paddle/ppdet/modeling/initializer.py1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWrtdetr_paddle/ppdet/modeling/bbox_utils.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWrtdetr_paddle/ppdet/modeling/layers.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWrtdetr_paddle/ppdet/modeling/post_process.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWrtdetr_paddle/ppdet/modeling/cls_utils.py1# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWrtdetr_paddle/ppdet/modeling/losses/gfocal_loss.py1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWrtdetr_paddle/ppdet/modeling/losses/__init__.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWrtdetr_paddle/ppdet/modeling/losses/detr_loss.py1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWrtdetr_paddle/ppdet/modeling/losses/focal_loss.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWrtdetr_paddle/ppdet/modeling/losses/varifocal_loss.py1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. COMMENT
LOWrtdetr_paddle/ppdet/modeling/losses/iou_loss.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWrtdetr_paddle/ppdet/modeling/losses/smooth_l1_loss.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWrtdetr_paddle/ppdet/modeling/architectures/detr.py1# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWrtdetr_paddle/ppdet/modeling/architectures/__init__.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. COMMENT
57 more matches not shown…
Modern Structural Boilerplate103 hits · 104 pts
SeverityFileLineSnippetContext
LOWrtdetr_pytorch/src/misc/visualizer.py12__all__ = ['show_sample']CODE
LOWrtdetr_pytorch/src/core/config.py15__all__ = ['BaseConfig', ]CODE
LOWrtdetr_pytorch/src/core/yaml_utils.py9__all__ = ['GLOBAL_CONFIG', 'register', 'create', 'load_config', 'merge_config', 'merge_dict']CODE
LOWrtdetr_pytorch/src/nn/arch/classification.py7__all__ = ['Classification', 'ClassHead']CODE
LOWrtdetr_pytorch/src/nn/backbone/regnet.py8__all__ = ['RegNet']CODE
LOWrtdetr_pytorch/src/nn/backbone/dla.py17logger = logging.getLogger(__name__)CODE
LOWrtdetr_pytorch/src/nn/backbone/presnet.py14__all__ = ['PResNet']CODE
LOWrtdetr_pytorch/src/optim/ema.py20__all__ = ['ModelEMA']CODE
LOWrtdetr_pytorch/src/optim/amp.py10__all__ = ['GradScaler']CODE
LOWrtdetr_pytorch/src/optim/optim.py10__all__ = ['AdamW', 'SGD', 'Adam', 'MultiStepLR', 'CosineAnnealingLR', 'OneCycleLR', 'LambdaLR']CODE
LOWrtdetr_pytorch/src/zoo/rtdetr/rtdetr.py14__all__ = ['RTDETR', ]CODE
LOWrtdetr_pytorch/src/zoo/rtdetr/rtdetr_decoder.py21__all__ = ['RTDETRTransformer']CODE
LOWrtdetr_pytorch/src/zoo/rtdetr/rtdetr_postprocessor.py13__all__ = ['RTDETRPostProcessor']CODE
LOWrtdetr_pytorch/src/zoo/rtdetr/hybrid_encoder.py14__all__ = ['HybridEncoder']CODE
LOWrtdetr_pytorch/src/data/transforms.py21__all__ = ['Compose', ]CODE
LOWrtdetr_pytorch/src/data/dataloader.py7__all__ = ['DataLoader']CODE
LOWrtdetr_pytorch/src/data/coco/coco_dataset.py20__all__ = ['CocoDetection']CODE
LOWrtdetr_pytorch/src/data/coco/coco_eval.py22__all__ = ['CocoEvaluator',]CODE
LOWrtdetrv2_pytorch/tools/run_profile.py17__all__ = ["profile_stats"]CODE
LOWrtdetrv2_pytorch/src/misc/visualizer.py12__all__ = ['show_sample']CODE
LOWrtdetrv2_pytorch/src/core/yaml_utils.py11__all__ = [CODE
LOWrtdetrv2_pytorch/src/core/_config.py16__all__ = ['BaseConfig', ]CODE
LOW…trv2_pytorch/src/nn/postprocessor/nms_postprocessor.py15__all__ = ['DetNMSPostProcessor', ]CODE
LOW…rv2_pytorch/src/nn/postprocessor/detr_postprocessor.py11__all__ = ['DetDETRPostProcessor']CODE
LOWrtdetrv2_pytorch/src/nn/arch/classification.py11__all__ = ['Classification', 'ClassHead']CODE
LOWrtdetrv2_pytorch/src/nn/arch/yolo.py9__all__ = ['YOLO', ]CODE
LOWrtdetrv2_pytorch/src/nn/backbone/csp_resnet.py16__all__ = ['CSPResNet']CODE
LOWrtdetrv2_pytorch/src/nn/backbone/hgnetv2.py18__all__ = ['HGNetv2']CODE
LOWrtdetrv2_pytorch/src/nn/backbone/presnet.py14__all__ = ['PResNet']CODE
LOWrtdetrv2_pytorch/src/nn/backbone/torchvision_model.py10__all__ = ['TorchVisionModel']CODE
LOWrtdetrv2_pytorch/src/optim/ema.py14__all__ = ['ModelEMA']CODE
LOWrtdetrv2_pytorch/src/optim/amp.py10__all__ = ['GradScaler']CODE
LOWrtdetrv2_pytorch/src/optim/optim.py11__all__ = ['AdamW', 'SGD', 'Adam', 'MultiStepLR', 'CosineAnnealingLR', 'OneCycleLR', 'LambdaLR']CODE
LOWrtdetrv2_pytorch/src/zoo/rtdetr/rtdetr.py15__all__ = ['RTDETR', ]CODE
LOWrtdetrv2_pytorch/src/zoo/rtdetr/rtdetr_decoder.py21__all__ = ['RTDETRTransformer']CODE
LOWrtdetrv2_pytorch/src/zoo/rtdetr/rtdetrv2_decoder.py21__all__ = ['RTDETRTransformerv2']CODE
LOWrtdetrv2_pytorch/src/zoo/rtdetr/rtdetr_postprocessor.py13__all__ = ['RTDETRPostProcessor']CODE
LOWrtdetrv2_pytorch/src/zoo/rtdetr/hybrid_encoder.py16__all__ = ['HybridEncoder']CODE
LOWrtdetrv2_pytorch/src/data/__init__.py13# def set_epoch(self, epoch) -> None:COMMENT
LOWrtdetrv2_pytorch/src/data/dataloader.py20__all__ = [CODE
LOWrtdetrv2_pytorch/src/data/dataset/coco_dataset.py19__all__ = ['CocoDetection']CODE
LOWrtdetrv2_pytorch/src/data/dataset/_dataset.py17 def set_epoch(self, epoch) -> None:CODE
LOWrtdetr_paddle/ppdet/metrics/keypoint_metrics.py27__all__ = ['KeyPointTopDownCOCOEval', 'KeyPointTopDownMPIIEval']CODE
LOWrtdetr_paddle/ppdet/metrics/metrics.py37__all__ = [CODE
LOWrtdetr_paddle/ppdet/metrics/mcmot_metrics.py42__all__ = ['MCMOTEvaluator', 'MCMOTMetric']CODE
LOWrtdetr_paddle/ppdet/metrics/munkres.py20__all__ = ['Munkres', 'make_cost_matrix']CODE
LOWrtdetr_paddle/ppdet/metrics/mot_metrics.py43__all__ = ['MOTEvaluator', 'MOTMetric', 'JDEDetMetric', 'KITTIMOTMetric']CODE
LOWrtdetr_paddle/ppdet/metrics/map_utils.py28__all__ = [CODE
LOWrtdetr_paddle/ppdet/metrics/widerface_utils.py29__all__ = ['face_eval_run', 'lmk2out']CODE
LOWrtdetr_paddle/ppdet/metrics/pose3d_metrics.py24__all__ = ['Pose3DEval']CODE
LOWrtdetr_paddle/ppdet/core/workspace.py34__all__ = [CODE
LOWrtdetr_paddle/ppdet/core/config/yaml_helpers.py21__all__ = ['serializable', 'Callable']CODE
LOWrtdetr_paddle/ppdet/core/config/schema.py39__all__ = ['SchemaValue', 'SchemaDict', 'SharedConfig', 'extract_schema']CODE
LOWrtdetr_paddle/ppdet/optimizer/ema.py26__all__ = ['ModelEMA', 'SimpleModelEMA']CODE
LOWrtdetr_paddle/ppdet/optimizer/optimizer.py30__all__ = ['LearningRate', 'OptimizerBuilder']CODE
LOWrtdetr_paddle/ppdet/utils/voc_utils.py24__all__ = ['create_list']CODE
LOWrtdetr_paddle/ppdet/utils/check.py28__all__ = [CODE
LOWrtdetr_paddle/ppdet/utils/download.py41__all__ = [CODE
LOWrtdetr_paddle/ppdet/utils/logger.py21__all__ = ['setup_logger']CODE
LOWrtdetr_paddle/ppdet/utils/fuse_utils.py19__all__ = ['fuse_conv_bn']CODE
43 more matches not shown…
AI Structural Patterns97 hits · 97 pts
SeverityFileLineSnippetContext
LOWrtdetr_pytorch/src/nn/backbone/test_resnet.py34CODE
LOWrtdetr_pytorch/src/nn/backbone/test_resnet.py70CODE
LOWrtdetr_pytorch/src/nn/backbone/dla.py71CODE
LOWrtdetr_pytorch/src/nn/backbone/dla.py116CODE
LOWrtdetr_pytorch/src/nn/backbone/dla.py165CODE
LOWrtdetr_pytorch/src/nn/backbone/presnet.py67CODE
LOWrtdetr_pytorch/src/nn/backbone/presnet.py112CODE
LOWrtdetr_pytorch/src/zoo/rtdetr/rtdetr_decoder.py142CODE
LOWrtdetr_pytorch/src/zoo/rtdetr/rtdetr_decoder.py284CODE
LOWrtdetr_pytorch/src/zoo/rtdetr/hybrid_encoder.py184CODE
LOWrtdetrv2_pytorch/src/nn/postprocessor/box_revert.py23CODE
LOW…rv2_pytorch/src/nn/postprocessor/detr_postprocessor.py18CODE
LOWrtdetrv2_pytorch/src/nn/backbone/test_resnet.py34CODE
LOWrtdetrv2_pytorch/src/nn/backbone/test_resnet.py70CODE
LOWrtdetrv2_pytorch/src/nn/backbone/presnet.py84CODE
LOWrtdetrv2_pytorch/src/nn/backbone/presnet.py129CODE
LOWrtdetrv2_pytorch/src/zoo/rtdetr/rtdetr_decoder.py142CODE
LOWrtdetrv2_pytorch/src/zoo/rtdetr/rtdetr_decoder.py284CODE
LOWrtdetrv2_pytorch/src/zoo/rtdetr/rtdetrv2_decoder.py160CODE
LOWrtdetrv2_pytorch/src/zoo/rtdetr/rtdetrv2_decoder.py164CODE
LOWrtdetrv2_pytorch/src/zoo/rtdetr/rtdetrv2_decoder.py291CODE
LOWrtdetrv2_pytorch/src/zoo/rtdetr/rtdetr_postprocessor.py18CODE
LOWrtdetrv2_pytorch/src/zoo/rtdetr/hybrid_encoder.py186CODE
LOWrtdetr_paddle/ppdet/metrics/metrics.py223CODE
LOWrtdetr_paddle/ppdet/metrics/mot_metrics.py335CODE
LOWrtdetr_paddle/ppdet/metrics/mot_metrics.py385CODE
LOWrtdetr_paddle/ppdet/metrics/pose3d_metrics.py136CODE
LOWrtdetr_paddle/ppdet/utils/cam_utils.py200CODE
LOWrtdetr_paddle/ppdet/modeling/ops.py340CODE
LOWrtdetr_paddle/ppdet/modeling/ops.py481CODE
LOWrtdetr_paddle/ppdet/modeling/ops.py927CODE
LOWrtdetr_paddle/ppdet/modeling/ops.py1097CODE
LOWrtdetr_paddle/ppdet/modeling/layers.py1048CODE
LOWrtdetr_paddle/ppdet/modeling/layers.py118CODE
LOWrtdetr_paddle/ppdet/modeling/layers.py187CODE
LOWrtdetr_paddle/ppdet/modeling/layers.py325CODE
LOWrtdetr_paddle/ppdet/modeling/layers.py372CODE
LOWrtdetr_paddle/ppdet/modeling/layers.py510CODE
LOWrtdetr_paddle/ppdet/modeling/layers.py572CODE
LOWrtdetr_paddle/ppdet/modeling/post_process.py30CODE
LOWrtdetr_paddle/ppdet/modeling/losses/detr_loss.py35CODE
LOWrtdetr_paddle/ppdet/modeling/losses/detr_loss.py439CODE
LOWrtdetr_paddle/ppdet/modeling/architectures/meta_arch.py117CODE
LOWrtdetr_paddle/ppdet/modeling/heads/detr_head.py190CODE
LOW…ddle/ppdet/modeling/transformers/rtdetr_transformer.py85CODE
LOW…ddle/ppdet/modeling/transformers/rtdetr_transformer.py89CODE
LOW…ddle/ppdet/modeling/transformers/rtdetr_transformer.py237CODE
LOW…paddle/ppdet/modeling/transformers/detr_transformer.py234CODE
LOW…addle/ppdet/modeling/transformers/position_encoding.py32CODE
LOW…paddle/ppdet/modeling/transformers/dino_transformer.py46CODE
LOW…paddle/ppdet/modeling/transformers/dino_transformer.py186CODE
LOW…r_paddle/ppdet/modeling/transformers/hybrid_encoder.py119CODE
LOW…/ppdet/modeling/transformers/deformable_transformer.py158CODE
LOW…/ppdet/modeling/transformers/deformable_transformer.py162CODE
LOW…/ppdet/modeling/transformers/deformable_transformer.py266CODE
LOW…/ppdet/modeling/transformers/deformable_transformer.py379CODE
LOW…_paddle/ppdet/modeling/backbones/vision_transformer.py160CODE
LOW…_paddle/ppdet/modeling/backbones/vision_transformer.py319CODE
LOW…r_paddle/ppdet/modeling/backbones/transformer_utils.py41CODE
LOWrtdetr_paddle/ppdet/modeling/backbones/cspresnet.py234CODE
37 more matches not shown…
Deep Nesting88 hits · 87 pts
SeverityFileLineSnippetContext
LOWrtdetr_pytorch/src/core/yaml_utils.py71CODE
LOWrtdetr_pytorch/src/nn/backbone/common.py70CODE
LOWrtdetr_pytorch/src/solver/det_solver.py19CODE
LOWrtdetr_pytorch/src/zoo/rtdetr/rtdetr_criterion.py228CODE
LOWrtdetr_pytorch/src/zoo/rtdetr/utils.py67CODE
LOWrtdetr_pytorch/src/data/transforms.py39CODE
LOWrtdetrv2_pytorch/src/core/yaml_utils.py93CODE
LOWrtdetrv2_pytorch/src/core/yaml_utils.py108CODE
LOWrtdetrv2_pytorch/src/core/workspace.py92CODE
LOWrtdetrv2_pytorch/src/nn/backbone/common.py62CODE
LOWrtdetrv2_pytorch/src/nn/backbone/hgnetv2.py384CODE
LOWrtdetrv2_pytorch/src/solver/det_solver.py18CODE
LOWrtdetrv2_pytorch/src/zoo/rtdetr/rtdetr_criterion.py175CODE
LOWrtdetrv2_pytorch/src/zoo/rtdetr/utils.py137CODE
LOWrtdetrv2_pytorch/src/data/transforms/container.py19CODE
LOWrtdetr_paddle/ppdet/metrics/keypoint_metrics.py143CODE
LOWrtdetr_paddle/ppdet/metrics/metrics.py427CODE
LOWrtdetr_paddle/ppdet/metrics/mcmot_metrics.py227CODE
LOWrtdetr_paddle/ppdet/metrics/munkres.py299CODE
LOWrtdetr_paddle/ppdet/metrics/mot_metrics.py46CODE
LOWrtdetr_paddle/ppdet/metrics/mot_metrics.py477CODE
LOWrtdetr_paddle/ppdet/metrics/mot_metrics.py658CODE
LOWrtdetr_paddle/ppdet/metrics/map_utils.py147CODE
LOWrtdetr_paddle/ppdet/metrics/map_utils.py196CODE
LOWrtdetr_paddle/ppdet/metrics/widerface_utils.py217CODE
LOWrtdetr_paddle/ppdet/metrics/widerface_utils.py256CODE
LOWrtdetr_paddle/ppdet/metrics/widerface_utils.py339CODE
LOWrtdetr_paddle/ppdet/metrics/json_results.py76CODE
LOWrtdetr_paddle/ppdet/core/workspace.py210CODE
LOWrtdetr_paddle/ppdet/optimizer/ema.py141CODE
LOWrtdetr_paddle/ppdet/optimizer/optimizer.py61CODE
LOWrtdetr_paddle/ppdet/utils/voc_utils.py56CODE
LOWrtdetr_paddle/ppdet/utils/download.py179CODE
LOWrtdetr_paddle/ppdet/utils/download.py341CODE
LOWrtdetr_paddle/ppdet/utils/download.py393CODE
LOWrtdetr_paddle/ppdet/utils/download.py503CODE
LOWrtdetr_paddle/ppdet/utils/download.py539CODE
LOWrtdetr_paddle/ppdet/utils/cli.py91CODE
LOWrtdetr_paddle/ppdet/utils/cli.py61CODE
LOWrtdetr_paddle/ppdet/utils/cam_utils.py137CODE
LOWrtdetr_paddle/ppdet/utils/cam_utils.py202CODE
LOWrtdetr_paddle/ppdet/utils/profiler.py60CODE
LOWrtdetr_paddle/ppdet/utils/visualizer.py140CODE
LOWrtdetr_paddle/ppdet/modeling/keypoint_utils.py346CODE
LOWrtdetr_paddle/ppdet/modeling/initializer.py202CODE
LOWrtdetr_paddle/ppdet/modeling/initializer.py294CODE
LOWrtdetr_paddle/ppdet/modeling/post_process.py192CODE
LOWrtdetr_paddle/ppdet/modeling/losses/gfocal_loss.py132CODE
LOWrtdetr_paddle/ppdet/modeling/losses/gfocal_loss.py186CODE
LOWrtdetr_paddle/ppdet/modeling/losses/varifocal_loss.py114CODE
LOWrtdetr_paddle/ppdet/modeling/heads/detr_head.py376CODE
LOWrtdetr_paddle/ppdet/modeling/backbones/shufflenet_v2.py172CODE
LOWrtdetr_paddle/ppdet/modeling/backbones/mobilenet_v3.py89CODE
LOWrtdetr_paddle/ppdet/modeling/backbones/vit_mae.py640CODE
LOWrtdetr_paddle/ppdet/modeling/backbones/hgnet_v2.py421CODE
LOWrtdetr_paddle/ppdet/modeling/backbones/mobileone.py211CODE
LOWrtdetr_paddle/ppdet/data/shm_utils.py47CODE
LOWrtdetr_paddle/ppdet/data/utils.py24CODE
LOWrtdetr_paddle/ppdet/data/source/coco.py85CODE
LOWrtdetr_paddle/ppdet/data/source/coco.py395CODE
28 more matches not shown…
Hyper-Verbose Identifiers61 hits · 60 pts
SeverityFileLineSnippetContext
LOWrtdetr_pytorch/src/misc/logger.py37 def synchronize_between_processes(self):CODE
LOWrtdetr_pytorch/src/misc/logger.py179 def synchronize_between_processes(self):CODE
LOWrtdetr_pytorch/src/misc/dist.py66def is_dist_available_and_initialized():CODE
LOWrtdetr_pytorch/src/zoo/rtdetr/denoising.py11def get_contrastive_denoising_training_group(targets,CODE
LOWrtdetr_pytorch/src/zoo/rtdetr/utils.py15def deformable_attention_core_func(value, value_spatial_shapes, sampling_locations, attention_weights):CODE
LOWrtdetr_pytorch/src/zoo/rtdetr/hybrid_encoder.py62 def get_equivalent_kernel_bias(self):CODE
LOWrtdetr_pytorch/src/data/functional.py99 def get_size_with_aspect_ratio(image_size, size, max_size=None):CODE
LOWrtdetr_pytorch/src/data/coco/coco_dataset.py67def convert_coco_poly_to_mask(segmentations, height, width):CODE
LOWrtdetr_pytorch/src/data/coco/coco_eval.py58 def synchronize_between_processes(self):CODE
LOWrtdetr_pytorch/src/data/coco/coco_eval.py82 def prepare_for_coco_detection(self, predictions):CODE
LOWrtdetr_pytorch/src/data/coco/coco_eval.py106 def prepare_for_coco_segmentation(self, predictions):CODE
LOWrtdetr_pytorch/src/data/coco/coco_eval.py141 def prepare_for_coco_keypoint(self, predictions):CODE
LOWrtdetr_pytorch/src/data/coco/coco_utils.py10def convert_coco_poly_to_mask(segmentations, height, width):CODE
LOWrtdetr_pytorch/src/data/coco/coco_utils.py82def _coco_remove_images_without_annotations(dataset, cat_list=None):CODE
LOWrtdetr_pytorch/src/data/coco/coco_utils.py173def get_coco_api_from_dataset(dataset):CODE
LOWrtdetrv2_pytorch/src/misc/box_ops.py37def elementwise_generalized_box_iou(boxes1: Tensor, boxes2: Tensor) -> Tensor:CODE
LOWrtdetrv2_pytorch/src/misc/logger.py37 def synchronize_between_processes(self):CODE
LOWrtdetrv2_pytorch/src/misc/logger.py179 def synchronize_between_processes(self):CODE
LOWrtdetrv2_pytorch/src/misc/dist_utils.py86def is_dist_available_and_initialized():CODE
LOWrtdetrv2_pytorch/src/nn/backbone/csp_resnet.py75 def get_equivalent_kernel_bias(self):CODE
LOWrtdetrv2_pytorch/src/zoo/rtdetr/denoising.py11def get_contrastive_denoising_training_group(targets,CODE
LOWrtdetrv2_pytorch/src/zoo/rtdetr/utils.py23def deformable_attention_core_func(value, value_spatial_shapes, sampling_locations, attention_weights):CODE
LOWrtdetrv2_pytorch/src/zoo/rtdetr/hybrid_encoder.py62 def get_equivalent_kernel_bias(self):CODE
LOWrtdetrv2_pytorch/src/data/dataset/coco_dataset.py90def convert_coco_poly_to_mask(segmentations, height, width):CODE
LOWrtdetrv2_pytorch/src/data/dataset/coco_utils.py15def convert_coco_poly_to_mask(segmentations, height, width):CODE
LOWrtdetrv2_pytorch/src/data/dataset/coco_utils.py87def _coco_remove_images_without_annotations(dataset, cat_list=None):CODE
LOWrtdetrv2_pytorch/src/data/dataset/coco_utils.py183def get_coco_api_from_dataset(dataset):CODE
LOWrtdetrv2_pytorch/src/data/transforms/functional.py99 def get_size_with_aspect_ratio(image_size, size, max_size=None):CODE
LOWrtdetr_paddle/ppdet/metrics/keypoint_metrics.py93 def _write_coco_keypoint_results(self, keypoints):CODE
LOWrtdetr_paddle/ppdet/metrics/keypoint_metrics.py118 def _coco_keypoint_results_one_category_kernel(self, data_pack):CODE
LOWrtdetr_paddle/ppdet/metrics/keypoint_metrics.py272 def _mpii_keypoint_results_save(self):CODE
LOWrtdetr_paddle/ppdet/metrics/pose3d_metrics.py44def mean_per_joint_position_error(pred, gt, has_3d_joints):CODE
LOWrtdetr_paddle/ppdet/metrics/pose3d_metrics.py61def compute_similarity_transform(S1, S2):CODE
LOWrtdetr_paddle/ppdet/metrics/pose3d_metrics.py111def compute_similarity_transform_batch(S1, S2):CODE
LOWrtdetr_paddle/ppdet/core/config/yaml_helpers.py24def represent_dictionary_order(self, dict_data):CODE
LOWrtdetr_paddle/ppdet/optimizer/utils.py24def get_bn_running_state_names(model: nn.Layer) -> List[str]:CODE
LOWrtdetr_paddle/ppdet/utils/fuse_utils.py44def find_parent_layer_and_sub_name(model, name):CODE
LOWrtdetr_paddle/ppdet/modeling/ops.py1074def sigmoid_cross_entropy_with_logits(input,STRING
LOWrtdetr_paddle/ppdet/modeling/initializer.py127def _calculate_fan_in_and_fan_out(tensor, reverse=False):CODE
LOWrtdetr_paddle/ppdet/modeling/initializer.py294def reset_initialized_parameter(model, include_self=True):CODE
LOWrtdetr_paddle/ppdet/modeling/cls_utils.py16def _get_class_default_kwargs(cls, *args, **kwargs):CODE
LOWrtdetr_paddle/ppdet/modeling/losses/detr_loss.py553 def _get_point_coords_by_uncertainty(self, masks):STRING
LOWrtdetr_paddle/ppdet/modeling/architectures/meta_arch.py85 def merge_multi_scale_predictions(self, outs):CODE
LOWrtdetr_paddle/ppdet/modeling/heads/detr_head.py232 def get_gt_mask_from_polygons(gt_poly, pad_mask):CODE
LOW…paddle/ppdet/modeling/transformers/dino_transformer.py450 def _get_encoder_output_anchors(self,CODE
LOWrtdetr_paddle/ppdet/modeling/transformers/utils.py107def deformable_attention_core_func(value, value_spatial_shapes,CODE
LOWrtdetr_paddle/ppdet/modeling/transformers/utils.py161def get_denoising_training_group(targets,CODE
LOWrtdetr_paddle/ppdet/modeling/transformers/utils.py254def get_contrastive_denoising_training_group(targets,CODE
LOWrtdetr_paddle/ppdet/modeling/transformers/utils.py442def varifocal_loss_with_logits(pred_logits,CODE
LOW…ling/transformers/ext_op/test_ms_deformable_attn_op.py73def check_forward_equal_with_paddle_float():CODE
LOW…_paddle/ppdet/modeling/backbones/vision_transformer.py293def get_sinusoid_encoding_table(n_position, d_hid, token=False):CODE
LOWrtdetr_paddle/ppdet/modeling/backbones/cspresnet.py113 def get_equivalent_kernel_bias(self):CODE
LOWrtdetr_paddle/ppdet/modeling/backbones/mobileone.py182 def get_equivalent_kernel_bias(self):CODE
LOWrtdetr_paddle/ppdet/data/source/dataset.py104 def check_or_download_dataset(self):CODE
LOWrtdetr_paddle/ppdet/data/source/dataset.py167 def check_or_download_dataset(self):CODE
LOWrtdetr_paddle/ppdet/data/transform/op_helper.py148def generate_sample_bbox_square(sampler, image_width, image_height):CODE
LOWrtdetr_paddle/ppdet/data/transform/op_helper.py296def satisfy_sample_constraint(sampler,CODE
LOWrtdetr_paddle/ppdet/data/transform/op_helper.py326def satisfy_sample_constraint_coverage(sampler, sample_bbox, gt_bboxes):CODE
LOWrtdetr_paddle/ppdet/data/transform/operators.py1617 def _crop_box_with_center_constraint(self, box, crop):CODE
LOWrtdetr_paddle/ppdet/data/transform/operators.py2703 def get_size_with_aspect_ratio(self, image_shape, size, max_size=None):CODE
1 more matches not shown…
Excessive Try-Catch Wrapping37 hits · 42 pts
SeverityFileLineSnippetContext
LOWrtdetr_paddle/ppdet/metrics/keypoint_metrics.py108 except Exception:CODE
LOWrtdetr_paddle/ppdet/metrics/mcmot_metrics.py311 except Exception as e:CODE
LOWrtdetr_paddle/ppdet/metrics/mot_metrics.py129 except Exception as e:CODE
LOWrtdetr_paddle/ppdet/metrics/map_utils.py49 except Exception as e:CODE
LOWrtdetr_paddle/ppdet/metrics/map_utils.py267 except Exception as e:CODE
LOWrtdetr_paddle/ppdet/metrics/coco_utils.py123 except Exception as e:CODE
LOWrtdetr_paddle/ppdet/core/config/yaml_helpers.py42 except Exception as ex:CODE
MEDIUMrtdetr_paddle/ppdet/core/config/yaml_helpers.py43 print("Error when construct {} instance from yaml config".CODE
LOWrtdetr_paddle/ppdet/core/config/yaml_helpers.py113 except Exception:CODE
LOWrtdetr_paddle/ppdet/core/config/schema.py25except Exception:CODE
LOWrtdetr_paddle/ppdet/core/config/schema.py33except Exception:CODE
LOWrtdetr_paddle/ppdet/core/config/schema.py131 except Exception:CODE
LOWrtdetr_paddle/ppdet/core/config/schema.py205 except Exception:CODE
LOWrtdetr_paddle/ppdet/utils/check.py49 except Exception as e:CODE
LOWrtdetr_paddle/ppdet/utils/check.py69 except Exception as e:CODE
LOWrtdetr_paddle/ppdet/utils/check.py88 except Exception as e:CODE
LOWrtdetr_paddle/ppdet/utils/check.py107 except Exception as e:CODE
LOWrtdetr_paddle/ppdet/utils/check.py150 except Exception as e:CODE
LOWrtdetr_paddle/ppdet/utils/visualizer.py240 except Exception as e:CODE
LOWrtdetr_paddle/ppdet/utils/visualizer.py342 except Exception as e:CODE
MEDIUMrtdetr_paddle/ppdet/utils/visualizer.py229def draw_pose(image,CODE
MEDIUMrtdetr_paddle/ppdet/utils/visualizer.py332def draw_pose3d(image,CODE
LOW…ling/transformers/ext_op/test_ms_deformable_attn_op.py41except Exception as e:CODE
LOWrtdetr_paddle/ppdet/data/reader.py60 except Exception as e:CODE
LOWrtdetr_paddle/ppdet/data/reader.py79 except Exception as e:CODE
LOWrtdetr_paddle/ppdet/data/source/coco.py19except Exception:CODE
LOWrtdetr_paddle/ppdet/data/source/coco.py310 except Exception as e:CODE
LOWrtdetr_paddle/ppdet/data/source/dataset.py20except Exception:CODE
LOWrtdetr_paddle/ppdet/data/source/dataset.py227 except Exception as e:CODE
LOWrtdetr_paddle/ppdet/data/transform/batch_operators.py23except Exception:CODE
LOWrtdetr_paddle/ppdet/data/transform/operators.py25except Exception:CODE
LOWrtdetr_paddle/ppdet/data/transform/operators.py229 except Exception as e:CODE
LOWrtdetr_paddle/ppdet/engine/export_utils.py210 except Exception:CODE
LOWrtdetr_paddle/ppdet/engine/callbacks.py266 except Exception as e:CODE
LOWrtdetr_paddle/ppdet/engine/callbacks.py320 except Exception as e:CODE
LOWrtdetr_paddle/tools/slice_image.py23 except Exception as e:CODE
MEDIUMrtdetr_paddle/tools/slice_image.py19def slice_data(image_dir, dataset_json_path, output_dir, slice_size,CODE
Docstring Block Structure7 hits · 35 pts
SeverityFileLineSnippetContext
HIGHrtdetr_paddle/ppdet/modeling/ops.py120 **Anchor generator operator** Generate anchors for Faster RCNN algorithm. Each position of the input producSTRING
HIGHrtdetr_paddle/ppdet/modeling/ops.py218 **This op only takes LoDTensor as input.** In Feature Pyramid Networks (FPN) models, it is needed to distSTRING
HIGHrtdetr_paddle/ppdet/modeling/ops.py352 This op generates prior boxes for SSD(Single Shot MultiBox Detector) algorithm. Each position of the input proSTRING
HIGHrtdetr_paddle/ppdet/modeling/ops.py494 This operator is to do multi-class non maximum suppression (NMS) on boxes and scores. In the NMS step, thisSTRING
HIGHrtdetr_paddle/ppdet/modeling/ops.py649 **Matrix NMS** This operator does matrix non maximum suppression (NMS). First selects a subset of candidateSTRING
HIGHrtdetr_paddle/ppdet/modeling/ops.py780 **Box Coder Layer** Encode/Decode the target bounding box with the priorbox information. The Encoding STRING
HIGHrtdetr_paddle/ppdet/modeling/ops.py940 **Generate proposal Faster-RCNN** This operation proposes RoIs according to each box with their probabilitySTRING
Decorative Section Separators2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMrtdetrv2_pytorch/references/deploy/rtdetrv2_tensorrt.py16# ==============================================================================COMMENT
MEDIUMrtdetrv2_pytorch/references/deploy/rtdetrv2_tensorrt.py20# ==============================================================================COMMENT
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWrtdetrv2_pytorch/tools/onnx2trt.sh9# Check if an input file is provided.COMMENT
AI Slop Vocabulary1 hit · 2 pts
SeverityFileLineSnippetContext
LOWrtdetr_paddle/ppdet/data/transform/operators.py1481 # threshold and attempt to find a valid crop, and simply return theCOMMENT