tensorflow/models

View on GitHub
official/projects/yolo/dataloaders/yolo_input.py

Summary

Maintainability
C
1 day
Test Coverage

File yolo_input.py has 298 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/projects/yolo/dataloaders/yolo_input.py - About 3 hrs to fix

    Function __init__ has 25 arguments (exceeds 4 allowed). Consider refactoring.
    Open

      def __init__(self,
    Severity: Major
    Found in official/projects/yolo/dataloaders/yolo_input.py - About 3 hrs to fix

      Function _jitter_scale has 10 arguments (exceeds 4 allowed). Consider refactoring.
      Open

        def _jitter_scale(self, image, shape, letter_box, jitter, random_pad,
      Severity: Major
      Found in official/projects/yolo/dataloaders/yolo_input.py - About 1 hr to fix

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

          def _build_label(self,
        Severity: Major
        Found in official/projects/yolo/dataloaders/yolo_input.py - About 50 mins to fix

          There are no issues that match your filters.

          Category
          Status