tensorflow/models

View on GitHub

Showing 11,634 of 11,634 total issues

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

def refine_boxes_multi_class(pool_boxes,
Severity: Minor
Found in official/vision/utils/object_detection/box_list_ops.py - About 35 mins to fix

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

      def test_residual_block_creation(self, block_fn, strides, use_projection,
    Severity: Minor
    Found in official/vision/modeling/layers/nn_blocks_test.py - About 35 mins to fix

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

        def test_bottleneck_block_creation(self, block_fn, strides, use_projection,
      Severity: Minor
      Found in official/vision/modeling/layers/nn_blocks_test.py - About 35 mins to fix

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

          def _reshape_projected_query(self, t, num_heads, h_px, w_px, key_dim):
        Severity: Minor
        Found in official/vision/modeling/layers/nn_blocks.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(
          Severity: Minor
          Found in official/vision/utils/object_detection/ops.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/vision/losses/retinanet_losses.py - About 35 mins to fix

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

              def _generate_detections_batched(
              Severity: Minor
              Found in official/vision/modeling/layers/detection_generator.py - About 35 mins to fix

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

                  def call(self, candidate_rois: tf.Tensor, candidate_gt_boxes: tf.Tensor,
                Severity: Minor
                Found in official/vision/modeling/layers/mask_sampler.py - About 35 mins to fix

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

                    def call(self,
                  Severity: Minor
                  Found in official/vision/modeling/retinanet_model.py - About 35 mins to fix

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

                    def build_model(
                    Severity: Minor
                    Found in official/vision/modeling/factory_3d.py - About 35 mins to fix

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

                        def test_build_model(self, include_mask, use_separable_conv,
                      Severity: Minor
                      Found in official/vision/modeling/maskrcnn_model_test.py - About 35 mins to fix

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

                          def call(self,
                        Severity: Minor
                        Found in official/vision/modeling/layers/roi_generator.py - About 35 mins to fix

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

                            def test_sharded_size(self, shape: list[int], top: int, algorithm,
                          Severity: Minor
                          Found in official/vision/modeling/layers/edgetpu_test.py - About 35 mins to fix

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

                              def test_forward(self, strategy, include_mask, build_anchor_boxes, training,
                            Severity: Minor
                            Found in official/vision/modeling/maskrcnn_model_test.py - About 35 mins to fix

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

                              def indices_to_dense_vector(indices,
                              Severity: Minor
                              Found in official/vision/utils/object_detection/ops.py - About 35 mins to fix

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

                                  def test_invertedbottleneck_block_creation(self, block_fn, expand_ratio,
                                Severity: Minor
                                Found in official/vision/modeling/layers/nn_blocks_test.py - About 35 mins to fix

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

                                  def _generate_detections_tflite(
                                  Severity: Minor
                                  Found in official/vision/modeling/layers/detection_generator.py - About 35 mins to fix

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

                                      def test_resnet3d_network_creation(self, model_id, temporal_size,
                                    Severity: Minor
                                    Found in official/vision/modeling/video_classification_model_test.py - About 35 mins to fix

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

                                        def __init__(self, backbone: tf_keras.Model, decoder: tf_keras.Model,
                                      Severity: Minor
                                      Found in official/vision/modeling/segmentation_model.py - About 35 mins to fix

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

                                          def _compute_attention_delegate(
                                        Severity: Minor
                                        Found in official/vision/modeling/layers/nn_layers.py - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language