tensorflow/models

View on GitHub
official/legacy/image_classification/preprocessing.py

Summary

Maintainability
B
5 hrs
Test Coverage

File preprocessing.py has 291 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/preprocessing.py - About 3 hrs to fix

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

    def preprocess_for_train(image_bytes: tf.Tensor,
    Severity: Minor
    Found in official/legacy/image_classification/preprocessing.py - About 45 mins to fix

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

      def preprocess_for_eval(
      Severity: Minor
      Found in official/legacy/image_classification/preprocessing.py - About 45 mins to fix

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

        def normalize_images(features: tf.Tensor,
        Severity: Minor
        Found in official/legacy/image_classification/preprocessing.py - About 45 mins to fix

          There are no issues that match your filters.

          Category
          Status