tensorflow/models

View on GitHub
official/projects/videoglue/datasets/common/processors.py

Summary

Maintainability
D
1 day
Test Coverage

File processors.py has 601 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: Major
Found in official/projects/videoglue/datasets/common/processors.py - About 1 day to fix

    Function random_crop_resize has 8 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    def random_crop_resize(frames: tf.Tensor,
    Severity: Major
    Found in official/projects/videoglue/datasets/common/processors.py - About 1 hr to fix

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

      def random_square_crop_by_scale(
      Severity: Major
      Found in official/projects/videoglue/datasets/common/processors.py - About 50 mins to fix

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

        def resize_and_crop(
        Severity: Major
        Found in official/projects/videoglue/datasets/common/processors.py - About 50 mins to fix

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

          def resize_and_pad(
          Severity: Minor
          Found in official/projects/videoglue/datasets/common/processors.py - About 45 mins to fix

            Function sample_sequence_around_keyframe has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

            def sample_sequence_around_keyframe(
            Severity: Minor
            Found in official/projects/videoglue/datasets/common/processors.py - About 35 mins to fix

              There are no issues that match your filters.

              Category
              Status