Detectron2 is a platform for object detection, segmentation and other visual recognition tasks.
This report presents the forensic synthetic code analysis of facebookresearch/detectron2, a Python project with 34,599 GitHub stars. SynthScan v2.0 examined 90,768 lines of code across 793 source files, recording 1379 pattern matches distributed across 20 syntactic categories. The overall adjusted score of 19.1 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).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 1379 distinct pattern matches across 20 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 |
|---|---|---|---|---|
| LOW | …ojects/MViTv2/configs/cascade_mask_rcnn_mvitv2_s_3x.py | 1 | CODE | |
| LOW | …ojects/MViTv2/configs/cascade_mask_rcnn_mvitv2_s_3x.py | 1 | CODE | |
| LOW | …ojects/MViTv2/configs/cascade_mask_rcnn_mvitv2_s_3x.py | 1 | CODE | |
| LOW | …ojects/MViTv2/configs/cascade_mask_rcnn_mvitv2_t_3x.py | 8 | CODE | |
| LOW | …ojects/MViTv2/configs/cascade_mask_rcnn_mvitv2_t_3x.py | 8 | CODE | |
| LOW | …ojects/MViTv2/configs/cascade_mask_rcnn_mvitv2_t_3x.py | 8 | CODE | |
| LOW | …ojects/MViTv2/configs/cascade_mask_rcnn_mvitv2_t_3x.py | 8 | CODE | |
| LOW | …/MViTv2/configs/cascade_mask_rcnn_mvitv2_b_in21k_3x.py | 1 | CODE | |
| LOW | …/MViTv2/configs/cascade_mask_rcnn_mvitv2_b_in21k_3x.py | 1 | CODE | |
| LOW | …/MViTv2/configs/cascade_mask_rcnn_mvitv2_b_in21k_3x.py | 1 | CODE | |
| LOW | …/MViTv2/configs/cascade_mask_rcnn_mvitv2_b_in21k_3x.py | 1 | CODE | |
| LOW | …Tv2/configs/cascade_mask_rcnn_mvitv2_h_in21k_lsj_3x.py | 1 | CODE | |
| LOW | …Tv2/configs/cascade_mask_rcnn_mvitv2_h_in21k_lsj_3x.py | 1 | CODE | |
| LOW | …Tv2/configs/cascade_mask_rcnn_mvitv2_h_in21k_lsj_3x.py | 2 | CODE | |
| LOW | …2/configs/cascade_mask_rcnn_mvitv2_l_in21k_lsj_50ep.py | 7 | CODE | |
| LOW | …ojects/MViTv2/configs/cascade_mask_rcnn_mvitv2_b_3x.py | 1 | CODE | |
| LOW | …ojects/MViTv2/configs/cascade_mask_rcnn_mvitv2_b_3x.py | 1 | CODE | |
| LOW | …ojects/MViTv2/configs/cascade_mask_rcnn_mvitv2_b_3x.py | 1 | CODE | |
| LOW | projects/MViTv2/configs/common/coco_loader_lsj.py | 2 | CODE | |
| LOW | projects/TridentNet/tridentnet/__init__.py | 2 | CODE | |
| LOW | projects/TridentNet/tridentnet/__init__.py | 3 | CODE | |
| LOW | projects/TridentNet/tridentnet/__init__.py | 3 | CODE | |
| LOW | projects/TridentNet/tridentnet/__init__.py | 3 | CODE | |
| LOW | projects/TridentNet/tridentnet/__init__.py | 8 | CODE | |
| LOW | projects/TridentNet/tridentnet/__init__.py | 9 | CODE | |
| LOW | projects/TridentNet/tridentnet/__init__.py | 9 | CODE | |
| LOW | projects/DensePose/setup.py | 6 | CODE | |
| LOW | projects/DensePose/densepose/__init__.py | 4 | CODE | |
| LOW | projects/DensePose/densepose/__init__.py | 5 | CODE | |
| LOW | projects/DensePose/densepose/__init__.py | 6 | CODE | |
| LOW | projects/DensePose/densepose/__init__.py | 6 | CODE | |
| LOW | projects/DensePose/densepose/__init__.py | 6 | CODE | |
| LOW | projects/DensePose/densepose/__init__.py | 6 | CODE | |
| LOW | projects/DensePose/densepose/__init__.py | 6 | CODE | |
| LOW | projects/DensePose/densepose/__init__.py | 6 | CODE | |
| LOW | projects/DensePose/densepose/__init__.py | 14 | CODE | |
| LOW | projects/DensePose/densepose/__init__.py | 14 | CODE | |
| LOW | projects/DensePose/densepose/__init__.py | 14 | CODE | |
| LOW | projects/DensePose/densepose/__init__.py | 15 | CODE | |
| LOW | projects/DensePose/densepose/__init__.py | 16 | CODE | |
| LOW | projects/DensePose/densepose/__init__.py | 17 | CODE | |
| LOW | projects/DensePose/densepose/__init__.py | 17 | CODE | |
| LOW | projects/DensePose/densepose/__init__.py | 21 | CODE | |
| LOW | projects/DensePose/densepose/__init__.py | 22 | CODE | |
| LOW | projects/DensePose/densepose/structures/__init__.py | 5 | CODE | |
| LOW | projects/DensePose/densepose/structures/__init__.py | 6 | CODE | |
| LOW | projects/DensePose/densepose/structures/__init__.py | 7 | CODE | |
| LOW | projects/DensePose/densepose/structures/__init__.py | 8 | CODE | |
| LOW | projects/DensePose/densepose/structures/__init__.py | 8 | CODE | |
| LOW | projects/DensePose/densepose/structures/__init__.py | 8 | CODE | |
| LOW | projects/DensePose/densepose/structures/__init__.py | 8 | CODE | |
| LOW | projects/DensePose/densepose/structures/__init__.py | 8 | CODE | |
| LOW | projects/DensePose/densepose/structures/__init__.py | 15 | CODE | |
| LOW | projects/DensePose/densepose/structures/__init__.py | 16 | CODE | |
| LOW | projects/DensePose/densepose/structures/__init__.py | 17 | CODE | |
| LOW | projects/DensePose/densepose/structures/__init__.py | 18 | CODE | |
| LOW | projects/DensePose/densepose/structures/__init__.py | 18 | CODE | |
| LOW | projects/DensePose/densepose/structures/__init__.py | 19 | CODE | |
| LOW | projects/DensePose/densepose/structures/__init__.py | 19 | CODE | |
| LOW | projects/DensePose/densepose/converters/__init__.py | 5 | CODE | |
| 515 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/lightning_train_net.py | 124 | def _process_dataset_evaluation_results(self) -> OrderedDict: | CODE |
| LOW⚡ | tools/lightning_train_net.py | 135 | def _reset_dataset_evaluators(self): | CODE |
| LOW⚡ | tools/lightning_train_net.py | 142 | def on_validation_epoch_start(self, _outputs): | CODE |
| LOW | projects/TridentNet/tridentnet/trident_backbone.py | 129 | def build_trident_resnet_backbone(cfg, input_shape): | CODE |
| LOW | projects/DensePose/query_db.py | 199 | def _extract_data_for_visualizers_from_entry( | STRING |
| LOW | projects/DensePose/densepose/config.py | 8 | def add_dataset_category_config(cfg: CN) -> None: | CODE |
| LOW | projects/DensePose/densepose/config.py | 59 | def get_bootstrap_dataset_config() -> CN: | CODE |
| LOW | projects/DensePose/densepose/config.py | 105 | def add_densepose_head_cse_config(cfg: CN) -> None: | CODE |
| LOW | projects/DensePose/densepose/config.py | 158 | def add_densepose_head_config(cfg: CN) -> None: | CODE |
| LOW | …ojects/DensePose/densepose/structures/data_relative.py | 92 | def extract_segmentation_mask(annotation): | CODE |
| LOW | …cts/DensePose/densepose/structures/chart_confidence.py | 12 | def decorate_predictor_output_class_with_confidences(BasePredictorOutput: type) -> type: | CODE |
| LOW | projects/DensePose/densepose/structures/chart_result.py | 122 | def quantize_densepose_chart_result(result: DensePoseChartResult) -> DensePoseChartResultQuantized: | CODE |
| LOW | projects/DensePose/densepose/structures/chart_result.py | 138 | def compress_quantized_densepose_chart_result( | CODE |
| LOW | projects/DensePose/densepose/structures/chart_result.py | 164 | def decompress_compressed_densepose_chart_result( | CODE |
| LOW | …jects/DensePose/densepose/structures/cse_confidence.py | 12 | def decorate_cse_predictor_output_class_with_confidences(BasePredictorOutput: type) -> type: | CODE |
| LOW | …jects/DensePose/densepose/structures/transform_data.py | 8 | def normalized_coords_transform(x0, y0, w, h): | CODE |
| LOW | …e/densepose/converters/chart_output_to_chart_result.py | 20 | def resample_uv_tensors_to_bbox( | CODE |
| LOW | …e/densepose/converters/chart_output_to_chart_result.py | 75 | def densepose_chart_predictor_output_to_result( | CODE |
| LOW | …e/densepose/converters/chart_output_to_chart_result.py | 103 | def resample_confidences_to_bbox( | CODE |
| LOW | …e/densepose/converters/chart_output_to_chart_result.py | 165 | def densepose_chart_predictor_output_to_result_with_confidences( | CODE |
| LOW | …s/DensePose/densepose/converters/chart_output_hflip.py | 10 | def densepose_chart_predictor_output_hflip( | CODE |
| LOW | …s/DensePose/densepose/converters/chart_output_hflip.py | 43 | def _flip_iuv_semantics_tensor( | CODE |
| LOW | …s/DensePose/densepose/converters/chart_output_hflip.py | 66 | def _flip_segm_semantics_tensor( | CODE |
| LOW | projects/DensePose/densepose/converters/segm_to_mask.py | 15 | def resample_coarse_segm_tensor_to_bbox(coarse_segm: torch.Tensor, box_xywh_abs: IntTupleBox): | CODE |
| LOW | projects/DensePose/densepose/converters/segm_to_mask.py | 34 | def resample_fine_and_coarse_segm_tensors_to_bbox( | CODE |
| LOW | projects/DensePose/densepose/converters/segm_to_mask.py | 67 | def resample_fine_and_coarse_segm_to_bbox(predictor_output: Any, box_xywh_abs: IntTupleBox): | CODE |
| LOW | projects/DensePose/densepose/converters/segm_to_mask.py | 87 | def predictor_output_with_coarse_segm_to_mask( | CODE |
| LOW | projects/DensePose/densepose/converters/segm_to_mask.py | 120 | def predictor_output_with_fine_and_coarse_segm_to_mask( | CODE |
| LOW | projects/DensePose/densepose/utils/dbhelper.py | 96 | def _parse_specifier_into_predicates(self, spec: str): | CODE |
| LOW | projects/DensePose/densepose/modeling/build.py | 14 | def build_densepose_predictor(cfg: CfgNode, input_channels: int): | CODE |
| LOW | projects/DensePose/densepose/modeling/build.py | 30 | def build_densepose_data_filter(cfg: CfgNode): | CODE |
| LOW | projects/DensePose/densepose/modeling/hrnet.py | 474 | def build_pose_hrnet_backbone(cfg, input_shape: ShapeSpec): | CODE |
| LOW | projects/DensePose/densepose/modeling/losses/mask.py | 25 | def extract_data_for_mask_loss_from_matches( | CODE |
| LOW | …nsePose/densepose/modeling/losses/cycle_shape2shape.py | 70 | def _get_embeddings_and_geodists_for_mesh( | CODE |
| LOW | …DensePose/densepose/modeling/losses/cycle_pix2shape.py | 20 | def _create_pixel_dist_matrix(grid_size: int) -> torch.Tensor: | CODE |
| LOW | …DensePose/densepose/modeling/losses/cycle_pix2shape.py | 32 | def _sample_fg_pixels_randperm(fg_mask: torch.Tensor, sample_size: int) -> torch.Tensor: | CODE |
| LOW | …DensePose/densepose/modeling/losses/cycle_pix2shape.py | 42 | def _sample_fg_pixels_multinomial(fg_mask: torch.Tensor, sample_size: int) -> torch.Tensor: | CODE |
| LOW | projects/DensePose/densepose/modeling/losses/chart.py | 141 | def produce_fake_densepose_losses(self, densepose_predictor_outputs: Any) -> LossDict: | CODE |
| LOW | projects/DensePose/densepose/modeling/losses/chart.py | 166 | def produce_fake_densepose_losses_uv(self, densepose_predictor_outputs: Any) -> LossDict: | CODE |
| LOW | projects/DensePose/densepose/modeling/losses/chart.py | 189 | def produce_fake_densepose_losses_segm(self, densepose_predictor_outputs: Any) -> LossDict: | CODE |
| LOW | projects/DensePose/densepose/modeling/losses/chart.py | 213 | def produce_densepose_losses_uv( | CODE |
| LOW | projects/DensePose/densepose/modeling/losses/chart.py | 245 | def produce_densepose_losses_segm( | CODE |
| LOW | …se/densepose/modeling/losses/chart_with_confidences.py | 35 | def produce_fake_densepose_losses_uv(self, densepose_predictor_outputs: Any) -> LossDict: | CODE |
| LOW | …se/densepose/modeling/losses/chart_with_confidences.py | 73 | def produce_densepose_losses_uv( | CODE |
| LOW | projects/DensePose/densepose/modeling/losses/utils.py | 18 | def _linear_interpolation_utilities(v_norm, v0_src, size_src, v0_dst, size_dst, size_z): | CODE |
| LOW | projects/DensePose/densepose/modeling/losses/utils.py | 421 | def extract_packed_annotations_from_matches( | CODE |
| LOW | …Pose/densepose/modeling/predictors/chart_confidence.py | 49 | def _initialize_confidence_estimation_layers(self, cfg: CfgNode, dim_in: int): | CODE |
| LOW | …sePose/densepose/modeling/predictors/cse_confidence.py | 48 | def _initialize_confidence_estimation_layers(self, cfg: CfgNode, dim_in: int): | CODE |
| LOW | projects/DensePose/densepose/modeling/cse/utils.py | 9 | def squared_euclidean_distance_matrix(pts1: torch.Tensor, pts2: torch.Tensor) -> torch.Tensor: | CODE |
| LOW | projects/DensePose/densepose/modeling/cse/embedder.py | 95 | def load_from_model_checkpoint(self, fpath: str, prefix: Optional[str] = None): | CODE |
| LOW | projects/DensePose/densepose/vis/densepose_results.py | 36 | def create_visualization_context(self, image_bgr: Image): | CODE |
| LOW | projects/DensePose/densepose/vis/densepose_results.py | 45 | def get_image_bgr_from_context(self, context): | CODE |
| LOW | projects/DensePose/densepose/vis/densepose_results.py | 95 | def create_visualization_context(self, image_bgr: Image): | CODE |
| LOW⚡ | …jects/DensePose/densepose/vis/densepose_data_points.py | 71 | def _densepose_data_u_for_cmap(densepose_data): | CODE |
| LOW⚡ | …jects/DensePose/densepose/vis/densepose_data_points.py | 76 | def _densepose_data_v_for_cmap(densepose_data): | CODE |
| LOW⚡ | …jects/DensePose/densepose/vis/densepose_data_points.py | 81 | def _densepose_data_i_for_cmap(densepose_data): | CODE |
| LOW | projects/DensePose/densepose/vis/extractor.py | 26 | def extract_scores_from_instances(instances: Instances, select=None): | CODE |
| LOW | projects/DensePose/densepose/vis/extractor.py | 32 | def extract_boxes_xywh_from_instances(instances: Instances, select=None): | CODE |
| LOW | …ts/DensePose/densepose/vis/densepose_outputs_vertex.py | 99 | def extract_and_check_outputs_and_boxes(self, outputs_boxes_xywh_classes): | CODE |
| LOW | …ts/DensePose/densepose/vis/densepose_outputs_vertex.py | 219 | def generate_image_with_texture(self, bbox_image_bgr, uv_array, mask, mesh_name): | CODE |
| 310 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tools/plain_train_net.py | 0 | create evaluator(s) for a given dataset. this uses the special metadata "evaluator_type" associated with each builtin da | STRING |
| HIGH | tools/train_net.py | 0 | create evaluator(s) for a given dataset. this uses the special metadata "evaluator_type" associated with each builtin da | STRING |
| HIGH | projects/Panoptic-DeepLab/train_net.py | 0 | create evaluator(s) for a given dataset. this uses the special metadata "evaluator_type" associated with each builtin da | STRING |
| HIGH | projects/PointSup/train_net.py | 0 | create evaluator(s) for a given dataset. this uses the special metadata "evaluator_type" associated with each builtin da | STRING |
| HIGH | projects/DeepLab/train_net.py | 0 | create evaluator(s) for a given dataset. this uses the special metadata "evaluator_type" associated with each builtin da | STRING |
| HIGH | projects/PointRend/train_net.py | 0 | create evaluator(s) for a given dataset. this uses the special metadata "evaluator_type" associated with each builtin da | STRING |
| HIGH | projects/TridentNet/train_net.py | 0 | pointrend training script. this script is a simplified version of the training script in detectron2/tools. | STRING |
| HIGH | projects/Panoptic-DeepLab/train_net.py | 0 | pointrend training script. this script is a simplified version of the training script in detectron2/tools. | STRING |
| HIGH | projects/TensorMask/train_net.py | 0 | pointrend training script. this script is a simplified version of the training script in detectron2/tools. | STRING |
| HIGH | projects/DeepLab/train_net.py | 0 | pointrend training script. this script is a simplified version of the training script in detectron2/tools. | STRING |
| HIGH | projects/PointRend/train_net.py | 0 | pointrend training script. this script is a simplified version of the training script in detectron2/tools. | STRING |
| HIGH | projects/DensePose/densepose/modeling/losses/mask.py | 0 | fake segmentation loss used when no suitable ground truth data was found in a batch. the loss has a value 0 and is prima | STRING |
| HIGH | projects/DensePose/densepose/modeling/losses/segm.py | 0 | fake segmentation loss used when no suitable ground truth data was found in a batch. the loss has a value 0 and is prima | STRING |
| HIGH | …ts/DensePose/densepose/modeling/losses/mask_or_segm.py | 0 | fake segmentation loss used when no suitable ground truth data was found in a batch. the loss has a value 0 and is prima | STRING |
| HIGH | projects/DensePose/densepose/evaluation/evaluator.py | 0 | args: inputs: the inputs to a lvis model (e.g., generalizedrcnn). it is a list of dict. each dict corresponds to an imag | STRING |
| HIGH | detectron2/evaluation/coco_evaluation.py | 0 | args: inputs: the inputs to a lvis model (e.g., generalizedrcnn). it is a list of dict. each dict corresponds to an imag | STRING |
| HIGH | detectron2/evaluation/rotated_coco_evaluation.py | 0 | args: inputs: the inputs to a lvis model (e.g., generalizedrcnn). it is a list of dict. each dict corresponds to an imag | STRING |
| HIGH | detectron2/evaluation/lvis_evaluation.py | 0 | args: inputs: the inputs to a lvis model (e.g., generalizedrcnn). it is a list of dict. each dict corresponds to an imag | STRING |
| HIGH | projects/DensePose/densepose/data/dataset_mapper.py | 0 | args: dataset_dict (dict): metadata of one image, in detectron2 dataset format. returns: dict: a format that builtin mod | STRING |
| HIGH | …ts/Panoptic-DeepLab/panoptic_deeplab/dataset_mapper.py | 0 | args: dataset_dict (dict): metadata of one image, in detectron2 dataset format. returns: dict: a format that builtin mod | STRING |
| HIGH | projects/PointSup/point_sup/dataset_mapper.py | 0 | args: dataset_dict (dict): metadata of one image, in detectron2 dataset format. returns: dict: a format that builtin mod | STRING |
| HIGH | detectron2/data/dataset_mapper.py | 0 | args: dataset_dict (dict): metadata of one image, in detectron2 dataset format. returns: dict: a format that builtin mod | STRING |
| HIGH | …ts/DensePose/densepose/data/samplers/densepose_base.py | 0 | produce a sample of indices to select data based on confidences args: values (torch.tensor): an array of size [n, k] tha | STRING |
| HIGH | …DensePose/densepose/data/samplers/densepose_uniform.py | 0 | produce a sample of indices to select data based on confidences args: values (torch.tensor): an array of size [n, k] tha | STRING |
| HIGH | …/densepose/data/samplers/densepose_confidence_based.py | 0 | produce a sample of indices to select data based on confidences args: values (torch.tensor): an array of size [n, k] tha | STRING |
| HIGH | projects/Panoptic-DeepLab/train_net.py | 0 | we use the "defaulttrainer" which contains a number pre-defined logic for standard training workflow. they may not work | STRING |
| HIGH | projects/DeepLab/train_net.py | 0 | we use the "defaulttrainer" which contains a number pre-defined logic for standard training workflow. they may not work | STRING |
| HIGH | projects/PointRend/train_net.py | 0 | we use the "defaulttrainer" which contains a number pre-defined logic for standard training workflow. they may not work | STRING |
| HIGH | projects/Panoptic-DeepLab/train_net.py | 0 | it now calls :func:`detectron2.solver.build_lr_scheduler`. overwrite it if you'd like a different scheduler. | STRING |
| HIGH | projects/DeepLab/train_net.py | 0 | it now calls :func:`detectron2.solver.build_lr_scheduler`. overwrite it if you'd like a different scheduler. | STRING |
| HIGH | detectron2/engine/defaults.py | 0 | it now calls :func:`detectron2.solver.build_lr_scheduler`. overwrite it if you'd like a different scheduler. | STRING |
| HIGH | …ects/Panoptic-DeepLab/panoptic_deeplab/panoptic_seg.py | 0 | returns: in training, returns (none, dict of losses) in inference, returns (cxhxw logits, {}) | STRING |
| HIGH | projects/DeepLab/deeplab/semantic_seg.py | 0 | returns: in training, returns (none, dict of losses) in inference, returns (cxhxw logits, {}) | STRING |
| HIGH | detectron2/modeling/meta_arch/semantic_seg.py | 0 | returns: in training, returns (none, dict of losses) in inference, returns (cxhxw logits, {}) | STRING |
| HIGH | projects/PointSup/point_sup/mask_head.py | 0 | args: x: input 4d region feature(s) provided by :class:`roiheads`. instances (list[instances]): contains the boxes & lab | STRING |
| HIGH | detectron2/modeling/roi_heads/mask_head.py | 0 | args: x: input 4d region feature(s) provided by :class:`roiheads`. instances (list[instances]): contains the boxes & lab | STRING |
| HIGH | detectron2/modeling/roi_heads/keypoint_head.py | 0 | args: x: input 4d region feature(s) provided by :class:`roiheads`. instances (list[instances]): contains the boxes & lab | STRING |
| HIGH | tests/layers/test_roi_align.py | 0 | 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | STRING |
| HIGH | tests/layers/test_deformable.py | 0 | 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | STRING |
| HIGH | tests/layers/test_roi_align_rotated.py | 0 | 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | STRING |
| HIGH | …ts/tracking/test_vanilla_hungarian_bbox_iou_tracker.py | 0 | convert prediction from dict to d2 instances format | STRING |
| HIGH | tests/tracking/test_hungarian_tracker.py | 0 | convert prediction from dict to d2 instances format | STRING |
| HIGH | …acking/test_iou_weighted_hungarian_bbox_iou_tracker.py | 0 | convert prediction from dict to d2 instances format | STRING |
| HIGH | tests/tracking/test_bbox_iou_tracker.py | 0 | convert prediction from dict to d2 instances format | STRING |
| HIGH | detectron2/tracking/bbox_iou_tracker.py | 0 | args: video_height: height the video frame video_width: width of the video frame max_num_instances: maximum number of id | STRING |
| HIGH | …ectron2/tracking/vanilla_hungarian_bbox_iou_tracker.py | 0 | args: video_height: height the video frame video_width: width of the video frame max_num_instances: maximum number of id | STRING |
| HIGH | …n2/tracking/iou_weighted_hungarian_bbox_iou_tracker.py | 0 | args: video_height: height the video frame video_width: width of the video frame max_num_instances: maximum number of id | STRING |
| HIGH | detectron2/tracking/hungarian_tracker.py | 0 | args: video_height: height the video frame video_width: width of the video frame max_num_instances: maximum number of id | STRING |
| HIGH | detectron2/tracking/bbox_iou_tracker.py | 0 | old style initialization using cfgnode args: cfg: d2 cfgnode, config file return: dictionary storing arguments for __ini | STRING |
| HIGH | …ectron2/tracking/vanilla_hungarian_bbox_iou_tracker.py | 0 | old style initialization using cfgnode args: cfg: d2 cfgnode, config file return: dictionary storing arguments for __ini | STRING |
| HIGH | …n2/tracking/iou_weighted_hungarian_bbox_iou_tracker.py | 0 | old style initialization using cfgnode args: cfg: d2 cfgnode, config file return: dictionary storing arguments for __ini | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | setup.py | 173 | # ------------------------------------------------------------ | COMMENT |
| MEDIUM | projects/DensePose/densepose/modeling/hrnet.py | 2 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | projects/DensePose/densepose/modeling/hrnet.py | 8 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | docs/conf.py | 158 | # ------------------------- | COMMENT |
| MEDIUM⚡ | detectron2/checkpoint/c2_model_loading.py | 83 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | detectron2/checkpoint/c2_model_loading.py | 85 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | detectron2/checkpoint/c2_model_loading.py | 95 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | detectron2/checkpoint/c2_model_loading.py | 97 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | detectron2/checkpoint/c2_model_loading.py | 116 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | detectron2/checkpoint/c2_model_loading.py | 118 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | detectron2/checkpoint/c2_model_loading.py | 126 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | detectron2/checkpoint/c2_model_loading.py | 128 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | detectron2/checkpoint/c2_model_loading.py | 153 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | detectron2/checkpoint/c2_model_loading.py | 155 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | detectron2/checkpoint/c2_model_loading.py | 163 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | detectron2/checkpoint/c2_model_loading.py | 165 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | detectron2/checkpoint/c2_model_loading.py | 173 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | detectron2/checkpoint/c2_model_loading.py | 175 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | detectron2/config/defaults.py | 8 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | detectron2/config/defaults.py | 10 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | detectron2/config/defaults.py | 18 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | detectron2/config/defaults.py | 20 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | detectron2/config/defaults.py | 49 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | detectron2/config/defaults.py | 51 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | detectron2/config/defaults.py | 90 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | detectron2/config/defaults.py | 92 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | detectron2/config/defaults.py | 110 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | detectron2/config/defaults.py | 112 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | detectron2/evaluation/pascal_voc_evaluation.py | 122 | # -------------------------------------------------------- | COMMENT |
| MEDIUM | detectron2/evaluation/pascal_voc_evaluation.py | 126 | # -------------------------------------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | projects/TridentNet/tridentnet/trident_backbone.py | 12 | __all__ = ["TridentBottleneckBlock", "make_trident_stage", "build_trident_resnet_backbone"] | CODE |
| LOW | projects/DensePose/densepose/modeling/hrnet.py | 21 | logger = logging.getLogger(__name__) | CODE |
| LOW | projects/DensePose/densepose/modeling/hrnet.py | 23 | __all__ = ["build_pose_hrnet_backbone", "PoseHigherResolutionNet"] | CODE |
| LOW | …ojects/DensePose/densepose/modeling/losses/__init__.py | 11 | __all__ = [ | CODE |
| LOW | …Pose/densepose/evaluation/densepose_coco_evaluation.py | 39 | logger = logging.getLogger(__name__) | CODE |
| LOW | projects/DensePose/densepose/data/build.py | 54 | __all__ = ["build_detection_train_loader", "build_detection_test_loader"] | CODE |
| LOW | projects/DensePose/densepose/data/__init__.py | 27 | __all__ = [k for k in globals().keys() if not k.startswith("_")] | CODE |
| LOW | projects/DensePose/densepose/data/datasets/__init__.py | 7 | __all__ = [k for k in globals().keys() if "builtin" not in k and not k.startswith("_")] | CODE |
| LOW | projects/DensePose/densepose/data/meshes/__init__.py | 7 | __all__ = [k for k in globals().keys() if "builtin" not in k and not k.startswith("_")] | CODE |
| LOW | …ts/Panoptic-DeepLab/panoptic_deeplab/dataset_mapper.py | 16 | __all__ = ["PanopticDeeplabDatasetMapper"] | CODE |
| LOW | …ects/Panoptic-DeepLab/panoptic_deeplab/panoptic_seg.py | 26 | __all__ = ["PanopticDeepLab", "INS_EMBED_BRANCHES_REGISTRY", "build_ins_embed_branch"] | CODE |
| LOW | projects/PointSup/point_sup/mask_head.py | 14 | __all__ = [ | CODE |
| LOW | projects/PointSup/point_sup/dataset_mapper.py | 14 | __all__ = [ | CODE |
| LOW | …jects/PointSup/point_sup/register_point_annotations.py | 9 | logger = logging.getLogger(__name__) | CODE |
| LOW | projects/TensorMask/tensormask/arch.py | 20 | __all__ = ["TensorMask"] | CODE |
| LOW | projects/TensorMask/tensormask/layers/__init__.py | 4 | __all__ = [k for k in globals().keys() if not k.startswith("_")] | CODE |
| LOW | tests/test_model_zoo.py | 9 | logger = logging.getLogger(__name__) | CODE |
| LOW | tests/layers/test_roi_align_rotated.py | 11 | logger = logging.getLogger(__name__) | CODE |
| LOW | tests/structures/test_rotated_boxes.py | 15 | logger = logging.getLogger(__name__) | CODE |
| LOW | tests/modeling/test_roi_pooler.py | 10 | logger = logging.getLogger(__name__) | CODE |
| LOW | tests/modeling/test_anchor_generator.py | 10 | logger = logging.getLogger(__name__) | CODE |
| LOW | tests/modeling/test_roi_heads.py | 29 | logger = logging.getLogger(__name__) | CODE |
| LOW | tests/modeling/test_rpn.py | 18 | logger = logging.getLogger(__name__) | CODE |
| LOW | tests/modeling/test_fast_rcnn.py | 13 | logger = logging.getLogger(__name__) | CODE |
| LOW | tests/modeling/test_box2box_transform.py | 13 | logger = logging.getLogger(__name__) | CODE |
| LOW | tests/data/test_transforms.py | 17 | logger = logging.getLogger(__name__) | CODE |
| LOW | detectron2/checkpoint/__init__.py | 10 | __all__ = ["Checkpointer", "PeriodicCheckpointer", "DetectionCheckpointer"] | CODE |
| LOW | detectron2/layers/__init__.py | 26 | __all__ = [k for k in globals().keys() if not k.startswith("_")] | CODE |
| LOW | detectron2/layers/mask_ops.py | 8 | __all__ = ["paste_masks_in_image"] | CODE |
| LOW | detectron2/structures/__init__.py | 11 | __all__ = [k for k in globals().keys() if not k.startswith("_")] | CODE |
| LOW | detectron2/config/config.py | 111 | def set_global_cfg(cfg: CfgNode) -> None: | CODE |
| LOW | detectron2/config/compat.py | 30 | __all__ = ["upgrade_config", "downgrade_config"] | CODE |
| LOW | detectron2/config/__init__.py | 7 | __all__ = [ | CODE |
| LOW | detectron2/config/instantiate.py | 10 | __all__ = ["dump_dataclass", "instantiate"] | CODE |
| LOW | detectron2/config/lazy.py | 22 | __all__ = ["LazyCall", "LazyConfig"] | CODE |
| LOW | detectron2/projects/__init__.py | 6 | __all__ = [] | CODE |
| LOW | detectron2/utils/colormap.py | 11 | __all__ = ["colormap", "random_color", "random_colors"] | CODE |
| LOW | detectron2/utils/env.py | 12 | __all__ = ["seed_all_rng"] | CODE |
| LOW | detectron2/utils/analysis.py | 12 | __all__ = [ | CODE |
| LOW | detectron2/utils/memory.py | 8 | __all__ = ["retry_if_cuda_oom"] | CODE |
| LOW | detectron2/utils/registry.py | 12 | __all__ = ["Registry", "locate"] | CODE |
| LOW | detectron2/utils/events.py | 16 | __all__ = [ | CODE |
| LOW | detectron2/utils/collect_env.py | 14 | __all__ = ["collect_env_info"] | CODE |
| LOW | detectron2/utils/logger.py | 15 | __all__ = ["setup_logger", "log_first_n", "log_every_n", "log_every_n_seconds"] | CODE |
| LOW | detectron2/utils/file_io.py | 5 | __all__ = ["PathManager", "PathHandler"] | CODE |
| LOW | detectron2/utils/visualizer.py | 22 | logger = logging.getLogger(__name__) | CODE |
| LOW | detectron2/utils/visualizer.py | 24 | __all__ = ["ColorMode", "VisImage", "Visualizer"] | CODE |
| LOW | detectron2/solver/lr_scheduler.py | 19 | logger = logging.getLogger(__name__) | CODE |
| LOW | detectron2/solver/__init__.py | 11 | __all__ = [k for k in globals().keys() if not k.startswith("_")] | CODE |
| LOW | detectron2/model_zoo/__init__.py | 10 | __all__ = ["get_checkpoint_url", "get", "get_config_file", "get_config"] | CODE |
| LOW | detectron2/modeling/test_time_augmentation.py | 26 | __all__ = ["DatasetMapperTTA", "GeneralizedRCNNWithTTA"] | CODE |
| LOW | detectron2/modeling/poolers.py | 20 | __all__ = ["ROIPooler"] | CODE |
| LOW | detectron2/modeling/__init__.py | 58 | __all__ = [k for k in globals().keys() if k not in _EXCLUDE and not k.startswith("_")] | CODE |
| LOW | detectron2/modeling/box_regression.py | 17 | __all__ = ["Box2BoxTransform", "Box2BoxTransformRotated", "Box2BoxTransformLinear"] | CODE |
| LOW | detectron2/modeling/mmdet_wrapper.py | 18 | logger = logging.getLogger(__name__) | CODE |
| LOW | detectron2/modeling/sampling.py | 6 | __all__ = ["subsample_labels"] | CODE |
| LOW | detectron2/modeling/meta_arch/rcnn.py | 21 | __all__ = ["GeneralizedRCNN", "ProposalNetwork"] | CODE |
| LOW | detectron2/modeling/meta_arch/panoptic_fpn.py | 17 | __all__ = ["PanopticFPN"] | CODE |
| LOW | detectron2/modeling/meta_arch/fcos.py | 20 | __all__ = ["FCOS"] | CODE |
| LOW | detectron2/modeling/meta_arch/fcos.py | 22 | logger = logging.getLogger(__name__) | CODE |
| 61 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | demo/demo.py | 93 | CODE | |
| LOW | tools/plain_train_net.py | 113 | CODE | |
| LOW | tools/deploy/export_model.py | 40 | CODE | |
| LOW | projects/DensePose/apply_net.py | 162 | CODE | |
| LOW | projects/DensePose/densepose/utils/logger.py | 7 | CODE | |
| LOW | projects/DensePose/densepose/modeling/hrnet.py | 190 | CODE | |
| LOW | projects/DensePose/densepose/modeling/cse/embedder.py | 95 | CODE | |
| LOW | projects/DensePose/densepose/vis/densepose_results.py | 169 | CODE | |
| LOW | projects/DensePose/densepose/vis/densepose_results.py | 241 | CODE | |
| LOW | …jects/DensePose/densepose/vis/densepose_outputs_iuv.py | 29 | CODE | |
| LOW | projects/DensePose/densepose/vis/extractor.py | 41 | CODE | |
| LOW | …Pose/densepose/evaluation/densepose_coco_evaluation.py | 302 | CODE | |
| LOW | …Pose/densepose/evaluation/densepose_coco_evaluation.py | 379 | CODE | |
| LOW | …Pose/densepose/evaluation/densepose_coco_evaluation.py | 538 | CODE | |
| LOW | …Pose/densepose/evaluation/densepose_coco_evaluation.py | 583 | CODE | |
| LOW | …Pose/densepose/evaluation/densepose_coco_evaluation.py | 619 | CODE | |
| LOW | …Pose/densepose/evaluation/densepose_coco_evaluation.py | 721 | CODE | |
| LOW | …Pose/densepose/evaluation/densepose_coco_evaluation.py | 781 | CODE | |
| LOW | …Pose/densepose/evaluation/densepose_coco_evaluation.py | 926 | CODE | |
| LOW | …Pose/densepose/evaluation/densepose_coco_evaluation.py | 1221 | CODE | |
| LOW | projects/DensePose/densepose/evaluation/evaluator.py | 89 | CODE | |
| LOW | projects/DensePose/densepose/data/build.py | 114 | CODE | |
| LOW | projects/DensePose/densepose/data/build.py | 503 | CODE | |
| LOW | projects/DensePose/densepose/data/build.py | 553 | CODE | |
| LOW | …cts/DensePose/densepose/data/inference_based_loader.py | 14 | CODE | |
| LOW | …nsePose/densepose/data/video/video_keyframe_dataset.py | 26 | CODE | |
| LOW | …nsePose/densepose/data/video/video_keyframe_dataset.py | 102 | CODE | |
| LOW | projects/DensePose/densepose/engine/trainer.py | 43 | CODE | |
| LOW | …ects/Panoptic-DeepLab/panoptic_deeplab/panoptic_seg.py | 67 | CODE | |
| LOW | projects/TensorMask/tensormask/arch.py | 416 | CODE | |
| LOW | projects/TensorMask/tensormask/arch.py | 503 | CODE | |
| LOW | projects/TensorMask/tensormask/arch.py | 755 | CODE | |
| LOW | projects/TensorMask/tensormask/arch.py | 857 | CODE | |
| LOW | projects/DeepLab/deeplab/semantic_seg.py | 22 | CODE | |
| LOW | datasets/prepare_cocofied_lvis.py | 96 | CODE | |
| LOW | tests/test_engine.py | 96 | CODE | |
| LOW | tests/test_visualizer.py | 195 | CODE | |
| LOW | tests/data/test_coco_evaluation.py | 21 | CODE | |
| LOW | detectron2/layers/wrappers.py | 124 | CODE | |
| LOW | detectron2/structures/instances.py | 154 | CODE | |
| LOW | detectron2/structures/boxes.py | 44 | CODE | |
| LOW | detectron2/structures/masks.py | 350 | CODE | |
| LOW | detectron2/config/lazy.py | 375 | CODE | |
| LOW | detectron2/config/lazy.py | 394 | CODE | |
| LOW | detectron2/utils/collect_env.py | 55 | CODE | |
| LOW | detectron2/utils/testing.py | 95 | CODE | |
| LOW | detectron2/utils/testing.py | 194 | CODE | |
| LOW | detectron2/utils/testing.py | 296 | CODE | |
| LOW | detectron2/utils/visualizer.py | 629 | CODE | |
| LOW | detectron2/model_zoo/model_zoo.py | 147 | CODE | |
| LOW | detectron2/modeling/poolers.py | 120 | CODE | |
| LOW | detectron2/modeling/box_regression.py | 310 | CODE | |
| LOW | detectron2/modeling/roi_heads/roi_heads.py | 220 | CODE | |
| LOW | detectron2/modeling/roi_heads/roi_heads.py | 780 | CODE | |
| LOW | detectron2/modeling/backbone/vit.py | 369 | CODE | |
| LOW | detectron2/evaluation/panoptic_evaluation.py | 68 | CODE | |
| LOW | detectron2/evaluation/cityscapes_evaluation.py | 60 | CODE | |
| LOW | detectron2/evaluation/pascal_voc_evaluation.py | 187 | CODE | |
| LOW | detectron2/export/c10.py | 115 | CODE | |
| LOW | detectron2/export/shared.py | 81 | CODE | |
| 14 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/train_net.py | 109 | CODE | |
| LOW | projects/TridentNet/tridentnet/trident_backbone.py | 16 | CODE | |
| LOW | projects/TridentNet/tridentnet/trident_conv.py | 11 | CODE | |
| LOW | projects/DensePose/densepose/modeling/hrnet.py | 60 | CODE | |
| LOW | projects/DensePose/densepose/modeling/hrnet.py | 98 | CODE | |
| LOW | …Pose/densepose/modeling/predictors/chart_confidence.py | 176 | CODE | |
| LOW | …sePose/densepose/modeling/predictors/cse_confidence.py | 117 | CODE | |
| LOW | projects/DensePose/densepose/vis/extractor.py | 201 | CODE | |
| LOW | projects/DensePose/densepose/vis/base.py | 117 | CODE | |
| LOW | projects/DensePose/densepose/engine/trainer.py | 260 | CODE | |
| LOW | …ts/Panoptic-DeepLab/panoptic_deeplab/dataset_mapper.py | 85 | CODE | |
| LOW | …ects/Panoptic-DeepLab/panoptic_deeplab/panoptic_seg.py | 501 | CODE | |
| LOW | projects/PointSup/point_sup/dataset_mapper.py | 70 | CODE | |
| LOW | projects/DeepLab/deeplab/semantic_seg.py | 217 | CODE | |
| LOW | projects/PointRend/point_rend/mask_head.py | 135 | CODE | |
| LOW | tests/layers/test_roi_align.py | 153 | CODE | |
| LOW | …ts/tracking/test_vanilla_hungarian_bbox_iou_tracker.py | 73 | CODE | |
| LOW | tests/tracking/test_hungarian_tracker.py | 67 | CODE | |
| LOW | …acking/test_iou_weighted_hungarian_bbox_iou_tracker.py | 73 | CODE | |
| LOW | tests/tracking/test_bbox_iou_tracker.py | 71 | CODE | |
| LOW | detectron2/checkpoint/c2_model_loading.py | 379 | CODE | |
| LOW | detectron2/checkpoint/c2_model_loading.py | 406 | CODE | |
| LOW | detectron2/layers/deform_conv.py | 317 | CODE | |
| LOW | detectron2/layers/deform_conv.py | 414 | CODE | |
| LOW | detectron2/layers/roi_align_rotated.py | 23 | CODE | |
| LOW | detectron2/layers/aspp.py | 144 | CODE | |
| LOW | detectron2/structures/masks.py | 224 | CODE | |
| LOW | detectron2/modeling/postprocessing.py | 100 | CODE | |
| LOW | detectron2/modeling/meta_arch/fcos.py | 30 | CODE | |
| LOW | detectron2/modeling/meta_arch/retinanet.py | 35 | CODE | |
| LOW | detectron2/modeling/roi_heads/fast_rcnn.py | 183 | CODE | |
| LOW | detectron2/modeling/backbone/swin.py | 197 | CODE | |
| LOW | detectron2/modeling/backbone/swin.py | 370 | CODE | |
| LOW | detectron2/modeling/backbone/swin.py | 538 | CODE | |
| LOW | detectron2/modeling/backbone/vit.py | 142 | CODE | |
| LOW | detectron2/modeling/backbone/vit.py | 148 | CODE | |
| LOW | detectron2/modeling/backbone/vit.py | 239 | CODE | |
| LOW | detectron2/modeling/backbone/resnet.py | 97 | CODE | |
| LOW | detectron2/modeling/backbone/resnet.py | 210 | CODE | |
| LOW | detectron2/modeling/backbone/resnet.py | 327 | CODE | |
| LOW | detectron2/modeling/backbone/mvit.py | 36 | CODE | |
| LOW | detectron2/modeling/backbone/mvit.py | 180 | CODE | |
| LOW | detectron2/modeling/backbone/mvit.py | 276 | CODE | |
| LOW | detectron2/export/shared.py | 517 | CODE | |
| LOW | detectron2/data/build.py | 294 | CODE | |
| LOW | detectron2/data/datasets/builtin_meta.py | 247 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | setup.py | 161 | python_requires=">=3.7", | COMMENT |
| LOW | tools/deploy/torchscript_mask_rcnn.cpp | 1 | // Copyright (c) Facebook, Inc. and its affiliates. | COMMENT |
| LOW | …ojects/MViTv2/configs/cascade_mask_rcnn_mvitv2_t_3x.py | 41 | # Using NaiveSyncBatchNorm becase heads may have empty input. That is not supported by | COMMENT |
| LOW | projects/TridentNet/tridentnet/config.py | 21 | _C.MODEL.TRIDENT.TRIDENT_STAGE = "res4" | COMMENT |
| LOW | projects/DensePose/densepose/config.py | 21 | def add_evaluation_config(cfg: CN) -> None: | COMMENT |
| LOW | projects/DensePose/densepose/config.py | 121 | # embedding loss name, currently the following options are supported: | COMMENT |
| LOW | projects/DensePose/densepose/config.py | 201 | # Some registered predictors: | COMMENT |
| LOW | …Pose/densepose/evaluation/densepose_coco_evaluation.py | 61 | I_DT_UV_0 = "idtuv0" | COMMENT |
| LOW | …Pose/densepose/evaluation/densepose_coco_evaluation.py | 81 | # areaRng - [...] A=4 object area ranges for evaluation | COMMENT |
| LOW | …Pose/densepose/evaluation/densepose_coco_evaluation.py | 101 | # params - parameters used for evaluation | COMMENT |
| LOW | …ts/DensePose/densepose/data/samplers/densepose_base.py | 161 | .cpu() | COMMENT |
| LOW | tests/layers/test_roi_align_rotated.py | 41 | box = [1, 1, 3, 3] | COMMENT |
| LOW | tests/modeling/test_model_e2e.py | 121 | instances = [get_empty_instance(200, 250), get_regular_bitmask_instances(200, 249)] | COMMENT |
| LOW | docs/conf.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | docs/conf.py | 201 | COMMENT | |
| LOW | docs/conf.py | 221 | latex_elements = { | COMMENT |
| LOW | detectron2/checkpoint/c2_model_loading.py | 81 | layer_keys = convert_basic_c2_names(layer_keys) | COMMENT |
| LOW | detectron2/layers/csrc/vision.cpp | 1 | // Copyright (c) Facebook, Inc. and its affiliates. | COMMENT |
| LOW | detectron2/layers/csrc/cocoeval/cocoeval.cpp | 201 | // Convert a python list to a vector | COMMENT |
| LOW | …n2/layers/csrc/box_iou_rotated/box_iou_rotated_utils.h | 1 | // Copyright (c) Facebook, Inc. and its affiliates. | COMMENT |
| LOW | …n2/layers/csrc/box_iou_rotated/box_iou_rotated_utils.h | 221 | dist[i] = dist[j]; | COMMENT |
| LOW | …n2/layers/csrc/box_iou_rotated/box_iou_rotated_utils.h | 281 | // Finally we can start the scanning process. | COMMENT |
| LOW | detectron2/structures/rotated_boxes.py | 401 | """ | COMMENT |
| LOW | detectron2/structures/rotated_boxes.py | 421 | # After applying the scaling factor (sfx, sfy): | COMMENT |
| LOW | detectron2/structures/rotated_boxes.py | 441 | # For example, | COMMENT |
| LOW | detectron2/config/defaults.py | 1 | # Copyright (c) Facebook, Inc. and its affiliates. | COMMENT |
| LOW | detectron2/config/defaults.py | 41 | # Default values are the mean pixel value from ImageNet: [103.53, 116.28, 123.675] | COMMENT |
| LOW | detectron2/config/defaults.py | 81 | # https://pillow.readthedocs.io/en/stable/handbook/concepts.html#concept-modes | COMMENT |
| LOW | detectron2/config/defaults.py | 101 | _C.DATASETS.PRECOMPUTED_PROPOSAL_TOPK_TRAIN = 2000 | COMMENT |
| LOW | detectron2/config/defaults.py | 161 | # ---------------------------------------------------------------------------- # | COMMENT |
| LOW | detectron2/config/defaults.py | 181 | # Anchor aspect ratios. For each area given in `SIZES`, anchors with different aspect | COMMENT |
| LOW | detectron2/config/defaults.py | 201 | _C.MODEL.RPN.HEAD_NAME = "StandardRPNHead" # used by RPN_HEAD_REGISTRY | COMMENT |
| LOW | detectron2/config/defaults.py | 221 | _C.MODEL.RPN.BATCH_SIZE_PER_IMAGE = 256 | COMMENT |
| LOW | detectron2/config/defaults.py | 241 | # See the "find_top_rpn_proposals" function for details. | COMMENT |
| LOW | detectron2/config/defaults.py | 261 | # Overlap threshold for an RoI to be considered background (if < IOU_THRESHOLD) | COMMENT |
| LOW | detectron2/config/defaults.py | 281 | # Overlap threshold used for non-maximum suppression (suppress boxes with | COMMENT |
| LOW | detectron2/config/defaults.py | 381 | # minibatches, this has the effect of up-weighting the importance of | COMMENT |
| LOW | detectron2/config/defaults.py | 561 | # May be adjusted automatically if REFERENCE_WORLD_SIZE is set. | COMMENT |
| LOW | detectron2/config/defaults.py | 581 | # Type of gradient clipping, currently 2 values are supported: | COMMENT |
| LOW | detectron2/config/defaults.py | 621 | _C.TEST.PRECISE_BN = CN({"ENABLED": False}) | COMMENT |
| LOW | detectron2/config/defaults.py | 641 | # precision will effectively disable tf32. | COMMENT |
| LOW | detectron2/modeling/roi_heads/roi_heads.py | 241 | (this is only meaningful if the proposal has a label > 0; if label = 0 | COMMENT |
| LOW | detectron2/data/datasets/coco.py | 101 | ) | COMMENT |
| LOW | detectron2/data/datasets/cityscapes_panoptic.py | 141 | meta["thing_colors"] = thing_colors | COMMENT |
| LOW | detectron2/data/datasets/lvis_v1_categories.py | 1 | # Copyright (c) Facebook, Inc. and its affiliates. | COMMENT |
| LOW | detectron2/data/datasets/lvis.py | 81 | # 'file_name': 'COCO_val2014_000000001268.jpg', | COMMENT |
| LOW | …tectron2/data/datasets/lvis_v1_category_image_count.py | 1 | # Copyright (c) Facebook, Inc. and its affiliates. | COMMENT |
| LOW | detectron2/data/datasets/lvis_v0_5_categories.py | 1 | # Copyright (c) Facebook, Inc. and its affiliates. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | detectron2/utils/memory.py | 27 | Makes a function retry itself after encountering pytorch's CUDA OOM error. It will first retry after callin | STRING |
| HIGH | detectron2/modeling/backbone/resnet.py | 494 | Create a list of blocks of the same type that forms one ResNet stage. Args: block_class (t | STRING |
| HIGH | detectron2/data/build.py | 630 | Similar to `build_detection_train_loader`, with default batch size = 1, and sampler = :class:`InferenceSampler` | STRING |
| HIGH | detectron2/data/datasets/coco.py | 36 | Load a json file with COCO's instances annotation format. Currently supports instance detection, instance segme | STRING |
| HIGH | detectron2/data/datasets/coco.py | 236 | Load semantic segmentation datasets. All files under "gt_root" with "gt_ext" extension are treated as ground tr | STRING |
| HIGH | detectron2/data/datasets/lvis.py | 42 | Load a json file in LVIS's annotation format. Args: json_file (str): full path to the LVIS json annota | STRING |
| HIGH | detectron2/data/transforms/augmentation.py | 116 | Execute the policy based on input data, and decide what transform to apply to inputs. Args: | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | …nsePose/densepose/modeling/losses/cycle_shape2shape.py | 27 | self.shape_names = list(cfg.MODEL.ROI_DENSEPOSE_HEAD.CSE.EMBEDDERS.keys()) | CODE |
| CRITICAL | …DensePose/densepose/modeling/losses/cycle_pix2shape.py | 57 | self.shape_names = list(cfg.MODEL.ROI_DENSEPOSE_HEAD.CSE.EMBEDDERS.keys()) | CODE |
| CRITICAL | projects/DensePose/densepose/modeling/cse/embedder.py | 88 | for mesh_name, embedder_spec in cfg.MODEL.ROI_DENSEPOSE_HEAD.CSE.EMBEDDERS.items(): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tools/lightning_train_net.py | 152 | except Exception as e: | CODE |
| LOW | …Pose/densepose/evaluation/densepose_coco_evaluation.py | 1015 | except Exception: | CODE |
| LOW | …nsePose/densepose/data/video/video_keyframe_dataset.py | 216 | except Exception as e: | CODE |
| LOW | tests/structures/test_boxes.py | 140 | except Exception: | CODE |
| LOW | tests/structures/test_boxes.py | 148 | except Exception: | CODE |
| LOW | tests/data/test_coco_evaluation.py | 79 | except Exception: | CODE |
| LOW | tests/data/test_coco_evaluation.py | 94 | except Exception as ex: | CODE |
| LOW | tests/data/test_coco_evaluation.py | 108 | except Exception as ex: | CODE |
| LOW | detectron2/config/instantiate.py | 78 | except Exception: | CODE |
| LOW | detectron2/config/lazy.py | 266 | except Exception: | STRING |
| LOW | detectron2/config/lazy.py | 297 | except Exception: | STRING |
| LOW | detectron2/config/lazy.py | 303 | except Exception: | STRING |
| LOW | detectron2/config/lazy.py | 314 | except Exception: | STRING |
| LOW | detectron2/utils/collect_env.py | 50 | except Exception: | CODE |
| LOW | detectron2/utils/collect_env.py | 139 | except Exception: | CODE |
| LOW | detectron2/utils/collect_env.py | 167 | except Exception: | CODE |
| LOW | detectron2/utils/collect_env.py | 253 | except Exception as e: | CODE |
| MEDIUM | detectron2/utils/collect_env.py | 17 | def collect_torch_env(): | CODE |
| MEDIUM | detectron2/export/shared.py | 561 | print("Error when writing graph to image {}".format(e)) | CODE |
| LOW | detectron2/export/shared.py | 163 | except Exception as e: | CODE |
| LOW | detectron2/export/shared.py | 560 | except Exception as e: | CODE |
| LOW | detectron2/data/detection_utils.py | 143 | except Exception: # https://github.com/facebookresearch/detectron2/issues/1885 | CODE |
| LOW | detectron2/engine/hooks.py | 540 | except Exception as e: | CODE |
| LOW | detectron2/engine/train_loop.py | 158 | except Exception: | CODE |
| LOW | detectron2/engine/train_loop.py | 368 | except Exception: | CODE |
| LOW | detectron2/engine/launch.py | 109 | except Exception as e: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/deploy/export_model.py | 121 | inference = None # assume that we just call the model directly | CODE |
| LOW | …jects/DensePose/densepose/evaluation/tensor_storage.py | 211 | # TODO: overhead, pickling a bytes object, can just pass bytes in a tensor directly | COMMENT |
| LOW | detectron2/layers/nms.py | 20 | # just call it directly. | COMMENT |
| LOW⚡ | detectron2/config/defaults.py | 40 | # To train on images of different number of channels, just set different mean & std. | COMMENT |
| LOW | detectron2/modeling/roi_heads/fast_rcnn.py | 332 | # Here we just use proposal_boxes as an arbitrary placeholder because its | COMMENT |
| LOW | detectron2/export/c10.py | 551 | # just return the keypoint heatmap for now, | COMMENT |
| LOW | detectron2/export/caffe2_modeling.py | 74 | # used anyway when batch size is 0, so just set them to 0. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | demo/demo.py | 171 | # you can try other format (e.g. MPEG) | COMMENT |
| MEDIUM | configs/common/data/constants.py | 7 | # Otherwise, you can use [57.375, 57.120, 58.395] (ImageNet std) | COMMENT |
| MEDIUM⚡ | detectron2/config/defaults.py | 45 | # Otherwise, you can use [57.375, 57.120, 58.395] (ImageNet std) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …n2/layers/csrc/box_iou_rotated/box_iou_rotated_utils.h | 174 | // Step 1: | COMMENT |
| LOW | …n2/layers/csrc/box_iou_rotated/box_iou_rotated_utils.h | 186 | // Step 2: | COMMENT |
| LOW | …n2/layers/csrc/box_iou_rotated/box_iou_rotated_utils.h | 197 | // Step 3: | COMMENT |
| LOW | …n2/layers/csrc/box_iou_rotated/box_iou_rotated_utils.h | 264 | // Step 4: | COMMENT |
| LOW | …n2/layers/csrc/box_iou_rotated/box_iou_rotated_utils.h | 280 | // Step 5: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/benchmark.py | 112 | dummy_data = list(itertools.islice(data_loader, 100)) | CODE |
| LOW | tools/benchmark.py | 115 | data = DatasetFromList(dummy_data, copy=False, serialize=False) | CODE |
| LOW⚡ | tools/benchmark.py | 155 | dummy_data = DatasetFromList(list(itertools.islice(data_loader, 100)), copy=False) | CODE |
| LOW⚡ | tools/benchmark.py | 159 | yield from dummy_data | CODE |
| LOW⚡ | tools/benchmark.py | 162 | model(dummy_data[k]) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tools/lightning_train_net.py | 6 | # This module is still dependent on D2 logging, but could be transferred to use Lightning logging | COMMENT |
| MEDIUM | detectron2/utils/events.py | 409 | # Create a histogram with PyTorch | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | detectron2/config/defaults.py | 246 | # Set this to -1 to use the same number of output channels as input channels. | COMMENT |
| LOW | detectron2/config/defaults.py | 629 | # Set seed to negative to fully randomize everything. | COMMENT |
| LOW | detectron2/config/defaults.py | 630 | # Set seed to positive to use a fixed seed. Note that a fixed seed increases | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | projects/DensePose/densepose/modeling/cse/utils.py | 20 | it contains || pts1[m] - pts2[n] ||^2 | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_export_onnx.py | 147 | # TODO: Add tests with different batch sizes when detectron2's CI | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | detectron2/export/shared.py | 84 | # NOTE: The input dimensions are interpreted in the form: | COMMENT |