tensorflow/models

View on GitHub
official/projects/centernet/ops/target_assigner.py

Summary

Maintainability
B
5 hrs
Test Coverage

File target_assigner.py has 270 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: Minor
Found in official/projects/centernet/ops/target_assigner.py - About 2 hrs to fix

    Function assign_centernet_targets has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    def assign_centernet_targets(labels: Dict[str, tf.Tensor],
                                 output_size: List[int],
                                 input_size: List[int],
                                 num_classes: int = 90,
                                 max_num_instances: int = 128,
    Severity: Minor
    Found in official/projects/centernet/ops/target_assigner.py - About 1 hr to fix

      Function assign_centernet_targets has 8 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      def assign_centernet_targets(labels: Dict[str, tf.Tensor],
      Severity: Major
      Found in official/projects/centernet/ops/target_assigner.py - About 1 hr to fix

        Function assign_center_targets has 8 arguments (exceeds 4 allowed). Consider refactoring.
        Open

        def assign_center_targets(out_height: int,
        Severity: Major
        Found in official/projects/centernet/ops/target_assigner.py - About 1 hr to fix

          There are no issues that match your filters.

          Category
          Status