official/vision/modeling/backbones/efficientnet.py
File efficientnet.py
has 266 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 __init__
has 14 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(self,
Function __init__
has 10 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(self, block_fn: str, block_repeats: int, kernel_size: int,
Function __init__
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def __init__(self,
model_id: str,
input_specs: tf_keras.layers.InputSpec = layers.InputSpec(
shape=[None, None, None, 3]),
se_ratio: float = 0.0,
Function build_efficientnet
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def build_efficientnet(