tensorflow/models

View on GitHub
official/projects/unified_detector/modeling/universal_detector.py

Summary

Maintainability
D
1 day
Test Coverage

File universal_detector.py has 687 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/unified_detector/modeling/universal_detector.py - About 1 day to fix

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

    def _paragraph_grouping_loss(
    Severity: Major
    Found in official/projects/unified_detector/modeling/universal_detector.py - About 50 mins to fix

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

      def _get_decoder_head(
      Severity: Major
      Found in official/projects/unified_detector/modeling/universal_detector.py - About 50 mins to fix

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

        def universal_detection_loss_weights(
        Severity: Minor
        Found in official/projects/unified_detector/modeling/universal_detector.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/unified_detector/modeling/universal_detector.py - About 35 mins to fix

            There are no issues that match your filters.

            Category
            Status