official/projects/unified_detector/modeling/universal_detector.py
File universal_detector.py
has 687 lines of code (exceeds 250 allowed). Consider refactoring. Open
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
Function _paragraph_grouping_loss
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _paragraph_grouping_loss(
Function _get_decoder_head
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _get_decoder_head(
Function universal_detection_loss_weights
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def universal_detection_loss_weights(
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(self,