tensorflow/models

View on GitHub

Showing 4,999 of 11,531 total issues

File preprocessor.py has 4060 lines of code (exceeds 250 allowed). Consider refactoring.
Open

# Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
Severity: Major
Found in research/object_detection/core/preprocessor.py - About 1 wk to fix

    File center_net_meta_arch.py has 3998 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    # Copyright 2020 The TensorFlow Authors. All Rights Reserved.
    #
    # Licensed under the Apache License, Version 2.0 (the "License");
    # you may not use this file except in compliance with the License.
    # You may obtain a copy of the License at

      File preprocessor_test.py has 3923 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
      #
      # Licensed under the Apache License, Version 2.0 (the "License");
      # you may not use this file except in compliance with the License.
      # You may obtain a copy of the License at
      Severity: Major
      Found in research/object_detection/core/preprocessor_test.py - About 1 wk to fix

        File center_net_meta_arch_tf2_test.py has 2979 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        # Copyright 2020 The TensorFlow Authors. All Rights Reserved.
        #
        # Licensed under the Apache License, Version 2.0 (the "License");
        # you may not use this file except in compliance with the License.
        # You may obtain a copy of the License at

          File faster_rcnn_meta_arch.py has 2599 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
          #
          # Licensed under the Apache License, Version 2.0 (the "License");
          # you may not use this file except in compliance with the License.
          # You may obtain a copy of the License at

            File nn_blocks.py has 2486 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            # Copyright 2024 The TensorFlow Authors. All Rights Reserved.
            #
            # Licensed under the Apache License, Version 2.0 (the "License");
            # you may not use this file except in compliance with the License.
            # You may obtain a copy of the License at
            Severity: Major
            Found in official/vision/modeling/layers/nn_blocks.py - About 6 days to fix

              File target_assigner_test.py has 2412 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
              #
              # Licensed under the Apache License, Version 2.0 (the "License");
              # you may not use this file except in compliance with the License.
              # You may obtain a copy of the License at
              Severity: Major
              Found in research/object_detection/core/target_assigner_test.py - About 6 days to fix

                File augment.py has 2280 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                # Copyright 2024 The TensorFlow Authors. All Rights Reserved.
                #
                # Licensed under the Apache License, Version 2.0 (the "License");
                # you may not use this file except in compliance with the License.
                # You may obtain a copy of the License at
                Severity: Major
                Found in official/vision/ops/augment.py - About 6 days to fix

                  File target_assigner.py has 2177 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
                  #
                  # Licensed under the Apache License, Version 2.0 (the "License");
                  # you may not use this file except in compliance with the License.
                  # You may obtain a copy of the License at
                  Severity: Major
                  Found in research/object_detection/core/target_assigner.py - About 6 days to fix

                    File coco_evaluation_test.py has 1953 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
                    #
                    # Licensed under the Apache License, Version 2.0 (the "License");
                    # you may not use this file except in compliance with the License.
                    # You may obtain a copy of the License at
                    Severity: Major
                    Found in research/object_detection/metrics/coco_evaluation_test.py - About 5 days to fix

                      File faster_rcnn_meta_arch_test_lib.py has 1890 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
                      #
                      # Licensed under the Apache License, Version 2.0 (the "License");
                      # you may not use this file except in compliance with the License.
                      # You may obtain a copy of the License at

                        File lfads.py has 1759 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        # Copyright 2017 Google Inc. All Rights Reserved.
                        #
                        # Licensed under the Apache License, Version 2.0 (the "License");
                        # you may not use this file except in compliance with the License.
                        # You may obtain a copy of the License at
                        Severity: Major
                        Found in research/lfads/lfads.py - About 4 days to fix

                          File tf_example_decoder_test.py has 1743 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
                          #
                          # Licensed under the Apache License, Version 2.0 (the "License");
                          # you may not use this file except in compliance with the License.
                          # You may obtain a copy of the License at
                          Severity: Major
                          Found in research/object_detection/data_decoders/tf_example_decoder_test.py - About 4 days to fix

                            File nn_blocks.py has 1668 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            # Copyright 2024 The TensorFlow Authors. All Rights Reserved.
                            #
                            # Licensed under the Apache License, Version 2.0 (the "License");
                            # you may not use this file except in compliance with the License.
                            # You may obtain a copy of the License at
                            Severity: Major
                            Found in official/projects/yolo/modeling/layers/nn_blocks.py - About 4 days to fix

                              File coco_evaluation.py has 1657 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

                              # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
                              #
                              # Licensed under the Apache License, Version 2.0 (the "License");
                              # you may not use this file except in compliance with the License.
                              # You may obtain a copy of the License at
                              Severity: Major
                              Found in research/object_detection/metrics/coco_evaluation.py - About 4 days to fix

                                File deepmac_meta_arch.py has 1629 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                """Deep Mask heads above CenterNet (DeepMAC)[1] architecture.
                                
                                [1]: https://arxiv.org/abs/2104.00613
                                """
                                
                                
                                Severity: Major
                                Found in research/object_detection/meta_architectures/deepmac_meta_arch.py - About 4 days to fix

                                  File inputs_test.py has 1581 lines of code (exceeds 250 allowed). Consider refactoring.
                                  Open

                                  # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
                                  #
                                  # Licensed under the Apache License, Version 2.0 (the "License");
                                  # you may not use this file except in compliance with the License.
                                  # You may obtain a copy of the License at
                                  Severity: Major
                                  Found in research/object_detection/inputs_test.py - About 4 days to fix

                                    PreprocessorTest has 198 functions (exceeds 20 allowed). Consider refactoring.
                                    Open

                                    class PreprocessorTest(test_case.TestCase, parameterized.TestCase):
                                    
                                      def createColorfulTestImage(self):
                                        ch255 = tf.fill([1, 100, 200, 1], tf.constant(255, dtype=tf.uint8))
                                        ch128 = tf.fill([1, 100, 200, 1], tf.constant(128, dtype=tf.uint8))
                                    Severity: Major
                                    Found in research/object_detection/core/preprocessor_test.py - About 3 days to fix

                                      File deepmac_meta_arch_test.py has 1450 lines of code (exceeds 250 allowed). Consider refactoring.
                                      Open

                                      """Tests for google3.third_party.tensorflow_models.object_detection.meta_architectures.deepmac_meta_arch."""
                                      
                                      import functools
                                      import math
                                      import random
                                      Severity: Major
                                      Found in research/object_detection/meta_architectures/deepmac_meta_arch_test.py - About 3 days to fix

                                        File detection_generator.py has 1420 lines of code (exceeds 250 allowed). Consider refactoring.
                                        Open

                                        # Copyright 2024 The TensorFlow Authors. All Rights Reserved.
                                        #
                                        # Licensed under the Apache License, Version 2.0 (the "License");
                                        # you may not use this file except in compliance with the License.
                                        # You may obtain a copy of the License at
                                        Severity: Major
                                        Found in official/vision/modeling/layers/detection_generator.py - About 3 days to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language