Detectron2 is a platform for object detection, segmentation and other visual recognition tasks.
1197 matches across 15 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | …ojects/MViTv2/configs/cascade_mask_rcnn_mvitv2_s_3x.py | 1 | |
| LOW | …ojects/MViTv2/configs/cascade_mask_rcnn_mvitv2_s_3x.py | 1 | |
| LOW | …ojects/MViTv2/configs/cascade_mask_rcnn_mvitv2_s_3x.py | 1 | |
| LOW | …ojects/MViTv2/configs/cascade_mask_rcnn_mvitv2_t_3x.py | 8 | |
| LOW | …ojects/MViTv2/configs/cascade_mask_rcnn_mvitv2_t_3x.py | 8 | |
| LOW | …ojects/MViTv2/configs/cascade_mask_rcnn_mvitv2_t_3x.py | 8 | |
| LOW | …ojects/MViTv2/configs/cascade_mask_rcnn_mvitv2_t_3x.py | 8 | |
| LOW | …/MViTv2/configs/cascade_mask_rcnn_mvitv2_b_in21k_3x.py | 1 | |
| LOW | …/MViTv2/configs/cascade_mask_rcnn_mvitv2_b_in21k_3x.py | 1 | |
| LOW | …/MViTv2/configs/cascade_mask_rcnn_mvitv2_b_in21k_3x.py | 1 | |
| LOW | …/MViTv2/configs/cascade_mask_rcnn_mvitv2_b_in21k_3x.py | 1 | |
| LOW | …Tv2/configs/cascade_mask_rcnn_mvitv2_h_in21k_lsj_3x.py | 1 | |
| LOW | …Tv2/configs/cascade_mask_rcnn_mvitv2_h_in21k_lsj_3x.py | 1 | |
| LOW | …Tv2/configs/cascade_mask_rcnn_mvitv2_h_in21k_lsj_3x.py | 2 | |
| LOW | …2/configs/cascade_mask_rcnn_mvitv2_l_in21k_lsj_50ep.py | 7 | |
| LOW | …ojects/MViTv2/configs/cascade_mask_rcnn_mvitv2_b_3x.py | 1 | |
| LOW | …ojects/MViTv2/configs/cascade_mask_rcnn_mvitv2_b_3x.py | 1 | |
| LOW | …ojects/MViTv2/configs/cascade_mask_rcnn_mvitv2_b_3x.py | 1 | |
| LOW | projects/MViTv2/configs/common/coco_loader_lsj.py | 2 | |
| LOW | projects/TridentNet/tridentnet/__init__.py | 2 | |
| LOW | projects/TridentNet/tridentnet/__init__.py | 3 | |
| LOW | projects/TridentNet/tridentnet/__init__.py | 3 | |
| LOW | projects/TridentNet/tridentnet/__init__.py | 3 | |
| LOW | projects/TridentNet/tridentnet/__init__.py | 8 | |
| LOW | projects/TridentNet/tridentnet/__init__.py | 9 | |
| LOW | projects/TridentNet/tridentnet/__init__.py | 9 | |
| LOW | projects/DensePose/setup.py | 6 | |
| LOW | projects/DensePose/densepose/__init__.py | 4 | |
| LOW | projects/DensePose/densepose/__init__.py | 5 | |
| LOW | projects/DensePose/densepose/__init__.py | 6 | |
| LOW | projects/DensePose/densepose/__init__.py | 6 | |
| LOW | projects/DensePose/densepose/__init__.py | 6 | |
| LOW | projects/DensePose/densepose/__init__.py | 6 | |
| LOW | projects/DensePose/densepose/__init__.py | 6 | |
| LOW | projects/DensePose/densepose/__init__.py | 6 | |
| LOW | projects/DensePose/densepose/__init__.py | 14 | |
| LOW | projects/DensePose/densepose/__init__.py | 14 | |
| LOW | projects/DensePose/densepose/__init__.py | 14 | |
| LOW | projects/DensePose/densepose/__init__.py | 15 | |
| LOW | projects/DensePose/densepose/__init__.py | 16 | |
| LOW | projects/DensePose/densepose/__init__.py | 17 | |
| LOW | projects/DensePose/densepose/__init__.py | 17 | |
| LOW | projects/DensePose/densepose/__init__.py | 21 | |
| LOW | projects/DensePose/densepose/__init__.py | 22 | |
| LOW | projects/DensePose/densepose/structures/__init__.py | 5 | |
| LOW | projects/DensePose/densepose/structures/__init__.py | 6 | |
| LOW | projects/DensePose/densepose/structures/__init__.py | 7 | |
| LOW | projects/DensePose/densepose/structures/__init__.py | 8 | |
| LOW | projects/DensePose/densepose/structures/__init__.py | 8 | |
| LOW | projects/DensePose/densepose/structures/__init__.py | 8 | |
| LOW | projects/DensePose/densepose/structures/__init__.py | 8 | |
| LOW | projects/DensePose/densepose/structures/__init__.py | 8 | |
| LOW | projects/DensePose/densepose/structures/__init__.py | 15 | |
| LOW | projects/DensePose/densepose/structures/__init__.py | 16 | |
| LOW | projects/DensePose/densepose/structures/__init__.py | 17 | |
| LOW | projects/DensePose/densepose/structures/__init__.py | 18 | |
| LOW | projects/DensePose/densepose/structures/__init__.py | 18 | |
| LOW | projects/DensePose/densepose/structures/__init__.py | 19 | |
| LOW | projects/DensePose/densepose/structures/__init__.py | 19 | |
| LOW | projects/DensePose/densepose/converters/__init__.py | 5 | |
| 515 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tools/lightning_train_net.py | 124 | def _process_dataset_evaluation_results(self) -> OrderedDict: |
| LOW | tools/lightning_train_net.py | 135 | def _reset_dataset_evaluators(self): |
| LOW | tools/lightning_train_net.py | 142 | def on_validation_epoch_start(self, _outputs): |
| LOW | projects/TridentNet/tridentnet/trident_backbone.py | 129 | def build_trident_resnet_backbone(cfg, input_shape): |
| LOW | projects/DensePose/query_db.py | 199 | def _extract_data_for_visualizers_from_entry( |
| LOW | projects/DensePose/densepose/config.py | 8 | def add_dataset_category_config(cfg: CN) -> None: |
| LOW | projects/DensePose/densepose/config.py | 59 | def get_bootstrap_dataset_config() -> CN: |
| LOW | projects/DensePose/densepose/config.py | 105 | def add_densepose_head_cse_config(cfg: CN) -> None: |
| LOW | projects/DensePose/densepose/config.py | 158 | def add_densepose_head_config(cfg: CN) -> None: |
| LOW | …ojects/DensePose/densepose/structures/data_relative.py | 92 | def extract_segmentation_mask(annotation): |
| LOW | …cts/DensePose/densepose/structures/chart_confidence.py | 12 | def decorate_predictor_output_class_with_confidences(BasePredictorOutput: type) -> type: |
| LOW | projects/DensePose/densepose/structures/chart_result.py | 122 | def quantize_densepose_chart_result(result: DensePoseChartResult) -> DensePoseChartResultQuantized: |
| LOW | projects/DensePose/densepose/structures/chart_result.py | 138 | def compress_quantized_densepose_chart_result( |
| LOW | projects/DensePose/densepose/structures/chart_result.py | 164 | def decompress_compressed_densepose_chart_result( |
| LOW | …jects/DensePose/densepose/structures/cse_confidence.py | 12 | def decorate_cse_predictor_output_class_with_confidences(BasePredictorOutput: type) -> type: |
| LOW | …jects/DensePose/densepose/structures/transform_data.py | 8 | def normalized_coords_transform(x0, y0, w, h): |
| LOW | …e/densepose/converters/chart_output_to_chart_result.py | 20 | def resample_uv_tensors_to_bbox( |
| LOW | …e/densepose/converters/chart_output_to_chart_result.py | 75 | def densepose_chart_predictor_output_to_result( |
| LOW | …e/densepose/converters/chart_output_to_chart_result.py | 103 | def resample_confidences_to_bbox( |
| LOW | …e/densepose/converters/chart_output_to_chart_result.py | 165 | def densepose_chart_predictor_output_to_result_with_confidences( |
| LOW | …s/DensePose/densepose/converters/chart_output_hflip.py | 10 | def densepose_chart_predictor_output_hflip( |
| LOW | …s/DensePose/densepose/converters/chart_output_hflip.py | 43 | def _flip_iuv_semantics_tensor( |
| LOW | …s/DensePose/densepose/converters/chart_output_hflip.py | 66 | def _flip_segm_semantics_tensor( |
| 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): |
| LOW | projects/DensePose/densepose/converters/segm_to_mask.py | 34 | def resample_fine_and_coarse_segm_tensors_to_bbox( |
| 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): |
| LOW | projects/DensePose/densepose/converters/segm_to_mask.py | 87 | def predictor_output_with_coarse_segm_to_mask( |
| LOW | projects/DensePose/densepose/converters/segm_to_mask.py | 120 | def predictor_output_with_fine_and_coarse_segm_to_mask( |
| LOW | projects/DensePose/densepose/utils/dbhelper.py | 96 | def _parse_specifier_into_predicates(self, spec: str): |
| LOW | projects/DensePose/densepose/modeling/build.py | 14 | def build_densepose_predictor(cfg: CfgNode, input_channels: int): |
| LOW | projects/DensePose/densepose/modeling/build.py | 30 | def build_densepose_data_filter(cfg: CfgNode): |
| LOW | projects/DensePose/densepose/modeling/hrnet.py | 474 | def build_pose_hrnet_backbone(cfg, input_shape: ShapeSpec): |
| LOW | projects/DensePose/densepose/modeling/losses/mask.py | 25 | def extract_data_for_mask_loss_from_matches( |
| LOW | …nsePose/densepose/modeling/losses/cycle_shape2shape.py | 70 | def _get_embeddings_and_geodists_for_mesh( |
| LOW | …DensePose/densepose/modeling/losses/cycle_pix2shape.py | 20 | def _create_pixel_dist_matrix(grid_size: int) -> torch.Tensor: |
| LOW | …DensePose/densepose/modeling/losses/cycle_pix2shape.py | 32 | def _sample_fg_pixels_randperm(fg_mask: torch.Tensor, sample_size: int) -> torch.Tensor: |
| LOW | …DensePose/densepose/modeling/losses/cycle_pix2shape.py | 42 | def _sample_fg_pixels_multinomial(fg_mask: torch.Tensor, sample_size: int) -> torch.Tensor: |
| LOW | projects/DensePose/densepose/modeling/losses/chart.py | 141 | def produce_fake_densepose_losses(self, densepose_predictor_outputs: Any) -> LossDict: |
| LOW | projects/DensePose/densepose/modeling/losses/chart.py | 166 | def produce_fake_densepose_losses_uv(self, densepose_predictor_outputs: Any) -> LossDict: |
| LOW | projects/DensePose/densepose/modeling/losses/chart.py | 189 | def produce_fake_densepose_losses_segm(self, densepose_predictor_outputs: Any) -> LossDict: |
| LOW | projects/DensePose/densepose/modeling/losses/chart.py | 213 | def produce_densepose_losses_uv( |
| LOW | projects/DensePose/densepose/modeling/losses/chart.py | 245 | def produce_densepose_losses_segm( |
| LOW | …se/densepose/modeling/losses/chart_with_confidences.py | 35 | def produce_fake_densepose_losses_uv(self, densepose_predictor_outputs: Any) -> LossDict: |
| LOW | …se/densepose/modeling/losses/chart_with_confidences.py | 73 | def produce_densepose_losses_uv( |
| 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): |
| LOW | projects/DensePose/densepose/modeling/losses/utils.py | 421 | def extract_packed_annotations_from_matches( |
| LOW | …Pose/densepose/modeling/predictors/chart_confidence.py | 49 | def _initialize_confidence_estimation_layers(self, cfg: CfgNode, dim_in: int): |
| LOW | …sePose/densepose/modeling/predictors/cse_confidence.py | 48 | def _initialize_confidence_estimation_layers(self, cfg: CfgNode, dim_in: int): |
| LOW | projects/DensePose/densepose/modeling/cse/utils.py | 9 | def squared_euclidean_distance_matrix(pts1: torch.Tensor, pts2: torch.Tensor) -> torch.Tensor: |
| LOW | projects/DensePose/densepose/modeling/cse/embedder.py | 95 | def load_from_model_checkpoint(self, fpath: str, prefix: Optional[str] = None): |
| LOW | projects/DensePose/densepose/vis/densepose_results.py | 36 | def create_visualization_context(self, image_bgr: Image): |
| LOW | projects/DensePose/densepose/vis/densepose_results.py | 45 | def get_image_bgr_from_context(self, context): |
| LOW | projects/DensePose/densepose/vis/densepose_results.py | 95 | def create_visualization_context(self, image_bgr: Image): |
| LOW | …jects/DensePose/densepose/vis/densepose_data_points.py | 71 | def _densepose_data_u_for_cmap(densepose_data): |
| LOW | …jects/DensePose/densepose/vis/densepose_data_points.py | 76 | def _densepose_data_v_for_cmap(densepose_data): |
| LOW | …jects/DensePose/densepose/vis/densepose_data_points.py | 81 | def _densepose_data_i_for_cmap(densepose_data): |
| LOW | projects/DensePose/densepose/vis/extractor.py | 26 | def extract_scores_from_instances(instances: Instances, select=None): |
| LOW | projects/DensePose/densepose/vis/extractor.py | 32 | def extract_boxes_xywh_from_instances(instances: Instances, select=None): |
| LOW | …ts/DensePose/densepose/vis/densepose_outputs_vertex.py | 99 | def extract_and_check_outputs_and_boxes(self, outputs_boxes_xywh_classes): |
| LOW | …ts/DensePose/densepose/vis/densepose_outputs_vertex.py | 219 | def generate_image_with_texture(self, bbox_image_bgr, uv_array, mask, mesh_name): |
| 310 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| HIGH | …ects/DensePose/densepose/converters/to_chart_result.py | 0 | converts various densepose predictor outputs to densepose results. each densepose predictor output type has to register |
| HIGH | …ects/DensePose/densepose/converters/to_chart_result.py | 0 | converts various densepose predictor outputs to densepose results. each densepose predictor output type has to register |
| HIGH | projects/DensePose/densepose/converters/hflip.py | 0 | converts various densepose predictor outputs to densepose results. each densepose predictor output type has to register |
| 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 |
| 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 |
| 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 |
| HIGH | …cts/DensePose/densepose/modeling/losses/embed_utils.py | 0 | accumulate instances data for one image args: instances_one_image (instances): instances data to accumulate |
| HIGH | projects/DensePose/densepose/modeling/losses/utils.py | 0 | accumulate instances data for one image args: instances_one_image (instances): instances data to accumulate |
| HIGH | projects/DensePose/densepose/modeling/losses/utils.py | 0 | accumulate instances data for one image args: instances_one_image (instances): instances data to accumulate |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| 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. |
| 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. |
| HIGH | detectron2/engine/defaults.py | 0 | it now calls :func:`detectron2.solver.build_lr_scheduler`. overwrite it if you'd like a different scheduler. |
| HIGH | …ects/Panoptic-DeepLab/panoptic_deeplab/panoptic_seg.py | 0 | returns: in training, returns (none, dict of losses) in inference, returns (cxhxw logits, {}) |
| HIGH | …ects/Panoptic-DeepLab/panoptic_deeplab/panoptic_seg.py | 0 | returns: in training, returns (none, dict of losses) in inference, returns (cxhxw logits, {}) |
| HIGH | projects/DeepLab/deeplab/semantic_seg.py | 0 | returns: in training, returns (none, dict of losses) in inference, returns (cxhxw logits, {}) |
| HIGH | projects/DeepLab/deeplab/semantic_seg.py | 0 | returns: in training, returns (none, dict of losses) in inference, returns (cxhxw logits, {}) |
| HIGH | detectron2/modeling/meta_arch/semantic_seg.py | 0 | returns: in training, returns (none, dict of losses) in inference, returns (cxhxw logits, {}) |
| 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 |
| 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 |
| 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 |
| HIGH | …ts/tracking/test_vanilla_hungarian_bbox_iou_tracker.py | 0 | convert prediction from dict to d2 instances format |
| HIGH | tests/tracking/test_hungarian_tracker.py | 0 | convert prediction from dict to d2 instances format |
| HIGH | …acking/test_iou_weighted_hungarian_bbox_iou_tracker.py | 0 | convert prediction from dict to d2 instances format |
| HIGH | tests/tracking/test_bbox_iou_tracker.py | 0 | convert prediction from dict to d2 instances format |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | setup.py | 173 | # ------------------------------------------------------------ |
| MEDIUM | projects/DensePose/densepose/modeling/hrnet.py | 2 | # ------------------------------------------------------------------------------ |
| MEDIUM | projects/DensePose/densepose/modeling/hrnet.py | 8 | # ------------------------------------------------------------------------------ |
| MEDIUM | docs/conf.py | 158 | # ------------------------- |
| MEDIUM | detectron2/checkpoint/c2_model_loading.py | 83 | # -------------------------------------------------------------------------- |
| MEDIUM | detectron2/checkpoint/c2_model_loading.py | 85 | # -------------------------------------------------------------------------- |
| MEDIUM | detectron2/checkpoint/c2_model_loading.py | 95 | # -------------------------------------------------------------------------- |
| MEDIUM | detectron2/checkpoint/c2_model_loading.py | 97 | # -------------------------------------------------------------------------- |
| MEDIUM | detectron2/checkpoint/c2_model_loading.py | 116 | # -------------------------------------------------------------------------- |
| MEDIUM | detectron2/checkpoint/c2_model_loading.py | 118 | # -------------------------------------------------------------------------- |
| MEDIUM | detectron2/checkpoint/c2_model_loading.py | 126 | # -------------------------------------------------------------------------- |
| MEDIUM | detectron2/checkpoint/c2_model_loading.py | 128 | # -------------------------------------------------------------------------- |
| MEDIUM | detectron2/checkpoint/c2_model_loading.py | 153 | # -------------------------------------------------------------------------- |
| MEDIUM | detectron2/checkpoint/c2_model_loading.py | 155 | # -------------------------------------------------------------------------- |
| MEDIUM | detectron2/checkpoint/c2_model_loading.py | 163 | # -------------------------------------------------------------------------- |
| MEDIUM | detectron2/checkpoint/c2_model_loading.py | 165 | # -------------------------------------------------------------------------- |
| MEDIUM | detectron2/checkpoint/c2_model_loading.py | 173 | # -------------------------------------------------------------------------- |
| MEDIUM | detectron2/checkpoint/c2_model_loading.py | 175 | # -------------------------------------------------------------------------- |
| MEDIUM | detectron2/config/defaults.py | 8 | # ----------------------------------------------------------------------------- |
| MEDIUM | detectron2/config/defaults.py | 10 | # ----------------------------------------------------------------------------- |
| MEDIUM | detectron2/config/defaults.py | 18 | # ----------------------------------------------------------------------------- |
| MEDIUM | detectron2/config/defaults.py | 20 | # ----------------------------------------------------------------------------- |
| MEDIUM | detectron2/config/defaults.py | 49 | # ----------------------------------------------------------------------------- |
| MEDIUM | detectron2/config/defaults.py | 51 | # ----------------------------------------------------------------------------- |
| MEDIUM | detectron2/config/defaults.py | 90 | # ----------------------------------------------------------------------------- |
| MEDIUM | detectron2/config/defaults.py | 92 | # ----------------------------------------------------------------------------- |
| MEDIUM | detectron2/config/defaults.py | 110 | # ----------------------------------------------------------------------------- |
| MEDIUM | detectron2/config/defaults.py | 112 | # ----------------------------------------------------------------------------- |
| MEDIUM | detectron2/evaluation/pascal_voc_evaluation.py | 122 | # -------------------------------------------------------- |
| MEDIUM | detectron2/evaluation/pascal_voc_evaluation.py | 126 | # -------------------------------------------------------- |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | demo/demo.py | 93 | |
| LOW | tools/plain_train_net.py | 113 | |
| LOW | tools/deploy/export_model.py | 40 | |
| LOW | projects/DensePose/apply_net.py | 162 | |
| LOW | projects/DensePose/densepose/utils/logger.py | 7 | |
| LOW | projects/DensePose/densepose/modeling/hrnet.py | 190 | |
| LOW | projects/DensePose/densepose/modeling/cse/embedder.py | 95 | |
| LOW | projects/DensePose/densepose/vis/densepose_results.py | 169 | |
| LOW | projects/DensePose/densepose/vis/densepose_results.py | 241 | |
| LOW | …jects/DensePose/densepose/vis/densepose_outputs_iuv.py | 29 | |
| LOW | projects/DensePose/densepose/vis/extractor.py | 41 | |
| LOW | …Pose/densepose/evaluation/densepose_coco_evaluation.py | 302 | |
| LOW | …Pose/densepose/evaluation/densepose_coco_evaluation.py | 379 | |
| LOW | …Pose/densepose/evaluation/densepose_coco_evaluation.py | 538 | |
| LOW | …Pose/densepose/evaluation/densepose_coco_evaluation.py | 583 | |
| LOW | …Pose/densepose/evaluation/densepose_coco_evaluation.py | 619 | |
| LOW | …Pose/densepose/evaluation/densepose_coco_evaluation.py | 721 | |
| LOW | …Pose/densepose/evaluation/densepose_coco_evaluation.py | 781 | |
| LOW | …Pose/densepose/evaluation/densepose_coco_evaluation.py | 926 | |
| LOW | …Pose/densepose/evaluation/densepose_coco_evaluation.py | 1221 | |
| LOW | projects/DensePose/densepose/evaluation/evaluator.py | 89 | |
| LOW | projects/DensePose/densepose/data/build.py | 114 | |
| LOW | projects/DensePose/densepose/data/build.py | 503 | |
| LOW | projects/DensePose/densepose/data/build.py | 553 | |
| LOW | …cts/DensePose/densepose/data/inference_based_loader.py | 14 | |
| LOW | …nsePose/densepose/data/video/video_keyframe_dataset.py | 26 | |
| LOW | …nsePose/densepose/data/video/video_keyframe_dataset.py | 102 | |
| LOW | projects/DensePose/densepose/engine/trainer.py | 43 | |
| LOW | …ects/Panoptic-DeepLab/panoptic_deeplab/panoptic_seg.py | 67 | |
| LOW | projects/TensorMask/tensormask/arch.py | 416 | |
| LOW | projects/TensorMask/tensormask/arch.py | 503 | |
| LOW | projects/TensorMask/tensormask/arch.py | 755 | |
| LOW | projects/TensorMask/tensormask/arch.py | 857 | |
| LOW | projects/DeepLab/deeplab/semantic_seg.py | 22 | |
| LOW | datasets/prepare_cocofied_lvis.py | 96 | |
| LOW | tests/test_engine.py | 96 | |
| LOW | tests/test_visualizer.py | 195 | |
| LOW | tests/data/test_coco_evaluation.py | 21 | |
| LOW | detectron2/layers/wrappers.py | 124 | |
| LOW | detectron2/structures/instances.py | 154 | |
| LOW | detectron2/structures/boxes.py | 44 | |
| LOW | detectron2/structures/masks.py | 350 | |
| LOW | detectron2/config/lazy.py | 375 | |
| LOW | detectron2/config/lazy.py | 394 | |
| LOW | detectron2/utils/collect_env.py | 55 | |
| LOW | detectron2/utils/testing.py | 95 | |
| LOW | detectron2/utils/testing.py | 194 | |
| LOW | detectron2/utils/testing.py | 296 | |
| LOW | detectron2/utils/visualizer.py | 629 | |
| LOW | detectron2/model_zoo/model_zoo.py | 147 | |
| LOW | detectron2/modeling/poolers.py | 120 | |
| LOW | detectron2/modeling/box_regression.py | 310 | |
| LOW | detectron2/modeling/roi_heads/roi_heads.py | 220 | |
| LOW | detectron2/modeling/roi_heads/roi_heads.py | 780 | |
| LOW | detectron2/modeling/backbone/vit.py | 369 | |
| LOW | detectron2/evaluation/panoptic_evaluation.py | 68 | |
| LOW | detectron2/evaluation/cityscapes_evaluation.py | 60 | |
| LOW | detectron2/evaluation/pascal_voc_evaluation.py | 187 | |
| LOW | detectron2/export/c10.py | 115 | |
| LOW | detectron2/export/shared.py | 81 | |
| 14 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | setup.py | 161 | python_requires=">=3.7", |
| LOW | tools/deploy/torchscript_mask_rcnn.cpp | 1 | // Copyright (c) Facebook, Inc. and its affiliates. |
| 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 |
| LOW | projects/TridentNet/tridentnet/config.py | 21 | _C.MODEL.TRIDENT.TRIDENT_STAGE = "res4" |
| LOW | projects/DensePose/densepose/config.py | 21 | def add_evaluation_config(cfg: CN) -> None: |
| LOW | projects/DensePose/densepose/config.py | 121 | # embedding loss name, currently the following options are supported: |
| LOW | projects/DensePose/densepose/config.py | 201 | # Some registered predictors: |
| LOW | …Pose/densepose/evaluation/densepose_coco_evaluation.py | 61 | I_DT_UV_0 = "idtuv0" |
| LOW | …Pose/densepose/evaluation/densepose_coco_evaluation.py | 81 | # areaRng - [...] A=4 object area ranges for evaluation |
| LOW | …Pose/densepose/evaluation/densepose_coco_evaluation.py | 101 | # params - parameters used for evaluation |
| LOW | …ts/DensePose/densepose/data/samplers/densepose_base.py | 161 | .cpu() |
| LOW | tests/layers/test_roi_align_rotated.py | 41 | box = [1, 1, 3, 3] |
| LOW | tests/modeling/test_model_e2e.py | 121 | instances = [get_empty_instance(200, 250), get_regular_bitmask_instances(200, 249)] |
| LOW | docs/conf.py | 1 | # -*- coding: utf-8 -*- |
| LOW | docs/conf.py | 201 | |
| LOW | docs/conf.py | 221 | latex_elements = { |
| LOW | detectron2/checkpoint/c2_model_loading.py | 81 | layer_keys = convert_basic_c2_names(layer_keys) |
| LOW | detectron2/layers/csrc/vision.cpp | 1 | // Copyright (c) Facebook, Inc. and its affiliates. |
| LOW | detectron2/layers/csrc/cocoeval/cocoeval.cpp | 201 | // Convert a python list to a vector |
| LOW | …n2/layers/csrc/box_iou_rotated/box_iou_rotated_utils.h | 1 | // Copyright (c) Facebook, Inc. and its affiliates. |
| LOW | …n2/layers/csrc/box_iou_rotated/box_iou_rotated_utils.h | 221 | dist[i] = dist[j]; |
| LOW | …n2/layers/csrc/box_iou_rotated/box_iou_rotated_utils.h | 281 | // Finally we can start the scanning process. |
| LOW | detectron2/structures/rotated_boxes.py | 401 | """ |
| LOW | detectron2/structures/rotated_boxes.py | 421 | # After applying the scaling factor (sfx, sfy): |
| LOW | detectron2/structures/rotated_boxes.py | 441 | # For example, |
| LOW | detectron2/config/defaults.py | 1 | # Copyright (c) Facebook, Inc. and its affiliates. |
| LOW | detectron2/config/defaults.py | 41 | # Default values are the mean pixel value from ImageNet: [103.53, 116.28, 123.675] |
| LOW | detectron2/config/defaults.py | 81 | # https://pillow.readthedocs.io/en/stable/handbook/concepts.html#concept-modes |
| LOW | detectron2/config/defaults.py | 101 | _C.DATASETS.PRECOMPUTED_PROPOSAL_TOPK_TRAIN = 2000 |
| LOW | detectron2/config/defaults.py | 161 | # ---------------------------------------------------------------------------- # |
| LOW | detectron2/config/defaults.py | 181 | # Anchor aspect ratios. For each area given in `SIZES`, anchors with different aspect |
| LOW | detectron2/config/defaults.py | 201 | _C.MODEL.RPN.HEAD_NAME = "StandardRPNHead" # used by RPN_HEAD_REGISTRY |
| LOW | detectron2/config/defaults.py | 221 | _C.MODEL.RPN.BATCH_SIZE_PER_IMAGE = 256 |
| LOW | detectron2/config/defaults.py | 241 | # See the "find_top_rpn_proposals" function for details. |
| LOW | detectron2/config/defaults.py | 261 | # Overlap threshold for an RoI to be considered background (if < IOU_THRESHOLD) |
| LOW | detectron2/config/defaults.py | 281 | # Overlap threshold used for non-maximum suppression (suppress boxes with |
| LOW | detectron2/config/defaults.py | 381 | # minibatches, this has the effect of up-weighting the importance of |
| LOW | detectron2/config/defaults.py | 561 | # May be adjusted automatically if REFERENCE_WORLD_SIZE is set. |
| LOW | detectron2/config/defaults.py | 581 | # Type of gradient clipping, currently 2 values are supported: |
| LOW | detectron2/config/defaults.py | 621 | _C.TEST.PRECISE_BN = CN({"ENABLED": False}) |
| LOW | detectron2/config/defaults.py | 641 | # precision will effectively disable tf32. |
| LOW | detectron2/modeling/roi_heads/roi_heads.py | 241 | (this is only meaningful if the proposal has a label > 0; if label = 0 |
| LOW | detectron2/data/datasets/coco.py | 101 | ) |
| LOW | detectron2/data/datasets/cityscapes_panoptic.py | 141 | meta["thing_colors"] = thing_colors |
| LOW | detectron2/data/datasets/lvis_v1_categories.py | 1 | # Copyright (c) Facebook, Inc. and its affiliates. |
| LOW | detectron2/data/datasets/lvis.py | 81 | # 'file_name': 'COCO_val2014_000000001268.jpg', |
| LOW | …tectron2/data/datasets/lvis_v1_category_image_count.py | 1 | # Copyright (c) Facebook, Inc. and its affiliates. |
| LOW | detectron2/data/datasets/lvis_v0_5_categories.py | 1 | # Copyright (c) Facebook, Inc. and its affiliates. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | detectron2/utils/memory.py | 27 | Makes a function retry itself after encountering pytorch's CUDA OOM error. It will first retry after callin |
| 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 |
| HIGH | detectron2/data/build.py | 630 | Similar to `build_detection_train_loader`, with default batch size = 1, and sampler = :class:`InferenceSampler` |
| HIGH | detectron2/data/datasets/coco.py | 36 | Load a json file with COCO's instances annotation format. Currently supports instance detection, instance segme |
| 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 |
| 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 |
| HIGH | detectron2/data/transforms/augmentation.py | 116 | Execute the policy based on input data, and decide what transform to apply to inputs. Args: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| CRITICAL | …nsePose/densepose/modeling/losses/cycle_shape2shape.py | 27 | self.shape_names = list(cfg.MODEL.ROI_DENSEPOSE_HEAD.CSE.EMBEDDERS.keys()) |
| CRITICAL | …DensePose/densepose/modeling/losses/cycle_pix2shape.py | 57 | self.shape_names = list(cfg.MODEL.ROI_DENSEPOSE_HEAD.CSE.EMBEDDERS.keys()) |
| CRITICAL | projects/DensePose/densepose/modeling/cse/embedder.py | 88 | for mesh_name, embedder_spec in cfg.MODEL.ROI_DENSEPOSE_HEAD.CSE.EMBEDDERS.items(): |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tools/lightning_train_net.py | 152 | except Exception as e: |
| LOW | …Pose/densepose/evaluation/densepose_coco_evaluation.py | 1015 | except Exception: |
| LOW | …nsePose/densepose/data/video/video_keyframe_dataset.py | 216 | except Exception as e: |
| LOW | tests/structures/test_boxes.py | 140 | except Exception: |
| LOW | tests/structures/test_boxes.py | 148 | except Exception: |
| LOW | tests/data/test_coco_evaluation.py | 79 | except Exception: |
| LOW | tests/data/test_coco_evaluation.py | 94 | except Exception as ex: |
| LOW | tests/data/test_coco_evaluation.py | 108 | except Exception as ex: |
| LOW | detectron2/config/instantiate.py | 78 | except Exception: |
| LOW | detectron2/config/lazy.py | 266 | except Exception: |
| LOW | detectron2/config/lazy.py | 297 | except Exception: |
| LOW | detectron2/config/lazy.py | 303 | except Exception: |
| LOW | detectron2/config/lazy.py | 314 | except Exception: |
| LOW | detectron2/utils/collect_env.py | 50 | except Exception: |
| LOW | detectron2/utils/collect_env.py | 139 | except Exception: |
| LOW | detectron2/utils/collect_env.py | 167 | except Exception: |
| LOW | detectron2/utils/collect_env.py | 253 | except Exception as e: |
| MEDIUM | detectron2/utils/collect_env.py | 17 | def collect_torch_env(): |
| LOW | detectron2/export/shared.py | 163 | except Exception as e: |
| LOW | detectron2/export/shared.py | 560 | except Exception as e: |
| MEDIUM | detectron2/export/shared.py | 561 | print("Error when writing graph to image {}".format(e)) |
| LOW | detectron2/data/detection_utils.py | 143 | except Exception: # https://github.com/facebookresearch/detectron2/issues/1885 |
| LOW | detectron2/engine/hooks.py | 540 | except Exception as e: |
| LOW | detectron2/engine/train_loop.py | 158 | except Exception: |
| LOW | detectron2/engine/train_loop.py | 368 | except Exception: |
| LOW | detectron2/engine/launch.py | 109 | except Exception as e: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tools/deploy/export_model.py | 121 | inference = None # assume that we just call the model directly |
| LOW | …jects/DensePose/densepose/evaluation/tensor_storage.py | 211 | # TODO: overhead, pickling a bytes object, can just pass bytes in a tensor directly |
| LOW | detectron2/layers/nms.py | 20 | # just call it directly. |
| LOW | detectron2/config/defaults.py | 40 | # To train on images of different number of channels, just set different mean & std. |
| LOW | detectron2/modeling/roi_heads/fast_rcnn.py | 332 | # Here we just use proposal_boxes as an arbitrary placeholder because its |
| LOW | detectron2/export/c10.py | 551 | # just return the keypoint heatmap for now, |
| LOW | detectron2/export/caffe2_modeling.py | 74 | # used anyway when batch size is 0, so just set them to 0. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | demo/demo.py | 171 | # you can try other format (e.g. MPEG) |
| MEDIUM | configs/common/data/constants.py | 7 | # Otherwise, you can use [57.375, 57.120, 58.395] (ImageNet std) |
| MEDIUM | detectron2/config/defaults.py | 45 | # Otherwise, you can use [57.375, 57.120, 58.395] (ImageNet std) |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | …n2/layers/csrc/box_iou_rotated/box_iou_rotated_utils.h | 174 | // Step 1: |
| LOW | …n2/layers/csrc/box_iou_rotated/box_iou_rotated_utils.h | 186 | // Step 2: |
| LOW | …n2/layers/csrc/box_iou_rotated/box_iou_rotated_utils.h | 197 | // Step 3: |
| LOW | …n2/layers/csrc/box_iou_rotated/box_iou_rotated_utils.h | 264 | // Step 4: |
| LOW | …n2/layers/csrc/box_iou_rotated/box_iou_rotated_utils.h | 280 | // Step 5: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | tools/lightning_train_net.py | 6 | # This module is still dependent on D2 logging, but could be transferred to use Lightning logging |
| MEDIUM | detectron2/utils/events.py | 409 | # Create a histogram with PyTorch |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | detectron2/config/defaults.py | 246 | # Set this to -1 to use the same number of output channels as input channels. |
| LOW | detectron2/config/defaults.py | 629 | # Set seed to negative to fully randomize everything. |
| LOW | detectron2/config/defaults.py | 630 | # Set seed to positive to use a fixed seed. Note that a fixed seed increases |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | projects/DensePose/densepose/modeling/cse/utils.py | 20 | it contains || pts1[m] - pts2[n] ||^2 |