tensorflow/models

View on GitHub
official/projects/pix2seq/dataloaders/pix2seq_input.py

Summary

Maintainability
B
4 hrs
Test Coverage

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

  def __init__(
Severity: Major
Found in official/projects/pix2seq/dataloaders/pix2seq_input.py - About 1 hr to fix

    Function _parse_train_data has 35 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      def _parse_train_data(self, data):
        """Parses data for training and evaluation."""
        classes = data['groundtruth_classes'] + self._label_shift
        boxes = data['groundtruth_boxes']
    
    
    Severity: Minor
    Found in official/projects/pix2seq/dataloaders/pix2seq_input.py - About 1 hr to fix

      Function build_response_seq_from_bbox has 26 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        def build_response_seq_from_bbox(
            self,
            bbox,
            label,
            coord_vocab_shift,
      Severity: Minor
      Found in official/projects/pix2seq/dataloaders/pix2seq_input.py - About 1 hr to fix

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

          def build_response_seq_from_bbox(
        Severity: Minor
        Found in official/projects/pix2seq/dataloaders/pix2seq_input.py - About 45 mins to fix

          There are no issues that match your filters.

          Category
          Status