tensorflow/models

View on GitHub
official/vision/ops/preprocess_ops_test.py

Summary

Maintainability
C
1 day
Test Coverage

File preprocess_ops_test.py has 464 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/vision/ops/preprocess_ops_test.py - About 7 hrs to fix

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

      def test_resize_and_crop_image_v2(
    Severity: Major
    Found in official/vision/ops/preprocess_ops_test.py - About 1 hr to fix

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

        def test_resize_and_crop_image_rectangluar_case(
      Severity: Major
      Found in official/vision/ops/preprocess_ops_test.py - About 1 hr to fix

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

          def test_resize_and_crop_image_square_case(
        Severity: Major
        Found in official/vision/ops/preprocess_ops_test.py - About 1 hr to fix

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

            def test_deit3_resize_center_crop(
          Severity: Major
          Found in official/vision/ops/preprocess_ops_test.py - About 50 mins to fix

            There are no issues that match your filters.

            Category
            Status