official/projects/videoglue/datasets/common/processors.py
File processors.py
has 601 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 random_crop_resize
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def random_crop_resize(frames: tf.Tensor,
Function random_square_crop_by_scale
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def random_square_crop_by_scale(
Function resize_and_crop
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def resize_and_crop(
Function resize_and_pad
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def resize_and_pad(
Function sample_sequence_around_keyframe
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def sample_sequence_around_keyframe(