tensorflow/models

View on GitHub

Showing 11,634 of 11,634 total issues

Function scale_boxes has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

  def scale_boxes(self, patch, ishape, boxes, x_offset, y_offset):
Severity: Minor
Found in official/projects/yolo/ops/mosaic.py - About 35 mins to fix

    Function _process_image has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

      def _process_image(self, sample, shiftx, shifty, cut, letter_box):
    Severity: Minor
    Found in official/projects/yolo/ops/mosaic.py - About 35 mins to fix

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

        def __init__(self, backbone, decoder, head, detection_generator, **kwargs):
      Severity: Minor
      Found in official/projects/yolo/modeling/yolov7_model.py - About 35 mins to fix

        Function test_gradient_pass_though has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

          def test_gradient_pass_though(self, width, height, filters, repetitions, spp):
        Severity: Minor
        Found in official/projects/yolo/modeling/layers/nn_blocks_test.py - About 35 mins to fix

          Function test_network_creation has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

            def test_network_creation(self, input_size, model_id, endpoint_filter_scale,
          Severity: Minor
          Found in official/projects/yolo/modeling/backbones/darknet_test.py - About 35 mins to fix

            Function test_pass_through has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

              def test_pass_through(self, width, height, filters, pool_sizes, scale):
            Severity: Minor
            Found in official/projects/yolo/modeling/layers/nn_blocks_test.py - About 35 mins to fix

              Function _apply has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                def _apply(self, grad, var, weight_decay, momentum, lr):
              Severity: Minor
              Found in official/projects/yolo/optimization/sgd_torch.py - About 35 mins to fix

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

                  def __init__(self,
                Severity: Minor
                Found in official/projects/edgetpu/vision/modeling/custom_layers.py - About 35 mins to fix

                  Function test_pass_through has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                    def test_pass_through(self, width, height, filters, repetitions, spp):
                  Severity: Minor
                  Found in official/projects/yolo/modeling/layers/nn_blocks_test.py - About 35 mins to fix

                    Function random_crop_image_v2 has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                    def random_crop_image_v2(image_bytes,
                    Severity: Minor
                    Found in official/projects/edgetpu/vision/dataloaders/classification_input.py - About 35 mins to fix

                      Function test_gradient_pass_though has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                        def test_gradient_pass_though(
                      Severity: Minor
                      Found in official/projects/yolo/modeling/layers/nn_blocks_test.py - About 35 mins to fix

                        Function build_bert_pretrainer has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                        def build_bert_pretrainer(pretrainer_cfg: params.PretrainerModelParams,
                        Severity: Minor
                        Found in official/projects/edgetpu/nlp/modeling/model_builder.py - About 35 mins to fix

                          Function _compute_attention has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                            def _compute_attention(

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

                              def __init__(self,
                            Severity: Minor
                            Found in official/projects/yolo/modeling/yolo_model.py - About 35 mins to fix

                              Function test_equivalence has 5 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                def test_equivalence(self, groups, input_channel, output_channel,
                              Severity: Minor
                              Found in official/projects/edgetpu/vision/modeling/custom_layers_test.py - About 35 mins to fix

                                Function from_name has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                  def from_name(cls,
                                Severity: Minor
                                Found in official/projects/edgetpu/vision/modeling/mobilenet_edgetpu_v2_model.py - About 35 mins to fix

                                  Function train_step has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                    def train_step(self, inputs, model, optimizer, metrics=None):
                                  Severity: Minor
                                  Found in official/projects/pix2seq/tasks/pix2seq_task.py - About 35 mins to fix

                                    Function augment_bbox has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                    def augment_bbox(bbox, bbox_label, max_jitter, n_noise_bbox, mix_rate=0.0):
                                    Severity: Minor
                                    Found in official/projects/pix2seq/utils.py - About 35 mins to fix

                                      Function merge_boxes_with_multiple_labels has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                      def merge_boxes_with_multiple_labels(boxes: tf.Tensor,
                                      Severity: Minor
                                      Found in official/projects/videoglue/datasets/common/utils.py - About 35 mins to fix

                                        Function position_embedding_sine has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                        def position_embedding_sine(attention_mask,
                                        Severity: Minor
                                        Found in official/projects/detr/modeling/detr.py - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language