official/projects/pix2seq/dataloaders/pix2seq_input.py
Function __init__
has 12 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function _parse_train_data
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def _parse_train_data(self, data):
"""Parses data for training and evaluation."""
classes = data['groundtruth_classes'] + self._label_shift
boxes = data['groundtruth_boxes']
Function build_response_seq_from_bbox
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def build_response_seq_from_bbox(
self,
bbox,
label,
coord_vocab_shift,
Function build_response_seq_from_bbox
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def build_response_seq_from_bbox(