tensorflow/models

View on GitHub

Showing 11,634 of 11,634 total issues

Function __call__ has 7 arguments (exceeds 4 allowed). Consider refactoring.
Open

  def __call__(self, boxes, scores, anchor_boxes, image_shape, is_training,
Severity: Major
Found in official/legacy/detection/ops/roi_ops.py - About 50 mins to fix

    Function create_tfrecords has 7 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    def create_tfrecords(save_dir, basename, data, bsz_per_host, seq_len,
    Severity: Major
    Found in official/legacy/xlnet/preprocess_pretrain_data.py - About 50 mins to fix

      Function __init__ has 7 arguments (exceeds 4 allowed). Consider refactoring.
      Open

        def __init__(self,
      Severity: Major
      Found in official/legacy/image_classification/resnet/common.py - About 50 mins to fix

        Function call has 7 arguments (exceeds 4 allowed). Consider refactoring.
        Open

          def call(self,
        Severity: Major
        Found in official/legacy/transformer/transformer.py - About 50 mins to fix

          Function __init__ has 7 arguments (exceeds 4 allowed). Consider refactoring.
          Open

            def __init__(self, d_model, n_head, d_head, dropout, dropout_att,
          Severity: Major
          Found in official/legacy/xlnet/xlnet_modeling.py - About 50 mins to fix

            Function translate_file has 7 arguments (exceeds 4 allowed). Consider refactoring.
            Open

            def translate_file(model,
            Severity: Major
            Found in official/legacy/transformer/translate.py - About 50 mins to fix

              Function test_deit3_resize_center_crop has 7 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                def test_deit3_resize_center_crop(
              Severity: Major
              Found in official/vision/ops/preprocess_ops_test.py - About 50 mins to fix

                Function _apply_transform_to_images has 7 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                def _apply_transform_to_images(
                Severity: Major
                Found in official/vision/ops/augment.py - About 50 mins to fix

                  Function _parse_policy_info has 7 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                  def _parse_policy_info(name: str,
                  Severity: Major
                  Found in official/vision/ops/augment.py - About 50 mins to fix

                    Function _add_metrics has 7 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                      def _add_metrics(self, lm_output, lm_labels, lm_label_weights,
                    Severity: Major
                    Found in official/legacy/bert/bert_models.py - About 50 mins to fix

                      Function get_dataset_fn has 7 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                      def get_dataset_fn(input_file_pattern,
                      Severity: Major
                      Found in official/legacy/bert/run_classifier.py - About 50 mins to fix

                        Function apply_transform_to_images has 7 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                        def apply_transform_to_images(
                        Severity: Major
                        Found in official/legacy/image_classification/augment.py - About 50 mins to fix

                          Function train_squad has 7 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                          def train_squad(strategy,
                          Severity: Major
                          Found in official/legacy/bert/run_squad_helper.py - About 50 mins to fix

                            Function testAnchorGeneration has 7 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                              def testAnchorGeneration(self, min_level, max_level, num_scales,
                            Severity: Major
                            Found in official/vision/ops/anchor_test.py - About 50 mins to fix

                              Function _selective_crop_and_resize has 7 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                              def _selective_crop_and_resize(features: tf.Tensor,
                              Severity: Major
                              Found in official/vision/ops/spatial_transform_ops.py - About 50 mins to fix

                                Function _apply_bbox_augmentation_wrapper has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                def _apply_bbox_augmentation_wrapper(image, bbox, new_bboxes, prob,
                                Severity: Major
                                Found in official/vision/ops/augment.py - About 50 mins to fix

                                  Function __init__ has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                    def __init__(self,
                                  Severity: Major
                                  Found in official/vision/ops/augment.py - About 50 mins to fix

                                    Function _visualize_boxes_and_keypoints has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                    def _visualize_boxes_and_keypoints(image, boxes, classes, scores, keypoints,
                                    Severity: Major
                                    Found in official/vision/utils/object_detection/visualization_utils.py - About 50 mins to fix

                                      Function random_crop_resize has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                      def random_crop_resize(frames: tf.Tensor, output_h: int, output_w: int,
                                      Severity: Major
                                      Found in official/vision/ops/preprocess_ops_3d.py - About 50 mins to fix

                                        Function random_crop_image_with_boxes_and_labels has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                        def random_crop_image_with_boxes_and_labels(
                                        Severity: Major
                                        Found in official/vision/ops/preprocess_ops.py - About 50 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language