tensorflow/models

View on GitHub
official/legacy/image_classification/resnet/imagenet_preprocessing.py

Summary

Maintainability
C
1 day
Test Coverage

File imagenet_preprocessing.py has 407 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/legacy/image_classification/resnet/imagenet_preprocessing.py - About 5 hrs to fix

    Function input_fn has 11 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    def input_fn(is_training,

      Function process_record_dataset has 9 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      def process_record_dataset(dataset,

        Function preprocess_image has 6 arguments (exceeds 4 allowed). Consider refactoring.
        Open

        def preprocess_image(image_buffer,
        Severity: Minor
        Found in official/legacy/image_classification/resnet/imagenet_preprocessing.py - About 45 mins to fix

          There are no issues that match your filters.

          Category
          Status