Showing 11,634 of 11,634 total issues
Function _postprocess_keypoints_single_class
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _postprocess_keypoints_single_class(self, prediction_dict, classes,
Function transform_instance_masks
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def transform_instance_masks(instance_masks, tx, ty, sx, sy, flip):
Function _loss_rpn
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _loss_rpn(self, rpn_box_encodings,
Function _get_box_classifier_features_shape
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _get_box_classifier_features_shape(self,
Function _get_second_stage_box_predictor
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _get_second_stage_box_predictor(self,
Function graph_fn
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def graph_fn(preprocessed_tensor, groundtruth_boxes1, groundtruth_boxes2,
Function _get_box_classifier_features_shape
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _get_box_classifier_features_shape(self,
Function _box_prediction
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _box_prediction(self, rpn_features_to_crop, proposal_boxes_normalized,
Function __init__
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
Open
def __init__(self,
is_training,
anchor_generator,
box_predictor,
box_coder,
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function _compute_second_stage_input_feature_maps
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _compute_second_stage_input_feature_maps(self, features_to_crop,
Function _get_box_classifier_features_shape
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _get_box_classifier_features_shape(self,
Function _get_mask_proposal_boxes_and_classes
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _get_mask_proposal_boxes_and_classes(
Function continuous_eval
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def continuous_eval(estimator,
Function _predict_second_stage
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _predict_second_stage(self, rpn_box_encodings,
Function _postprocess_keypoints_multi_class
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _postprocess_keypoints_multi_class(self, prediction_dict, classes,
Function _get_second_stage_box_predictor
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _get_second_stage_box_predictor(self, num_classes, is_training,
Function _sample_box_classifier_batch
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _sample_box_classifier_batch(
Function _postprocess_box_classifier
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _postprocess_box_classifier(self,
Function test_refine_keypoints_with_bboxes
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
Open
def test_refine_keypoints_with_bboxes(self, predict_depth):
regressed_keypoints_np = np.array(
[
# Example 0.
[
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Avoid deeply nested control flow statements. Open
Open
with tf.variable_scope('Mixed_7a'):
with tf.variable_scope('Branch_0'):
tower_conv = slim.conv2d(proposal_feature_maps,
256, 1, scope='Conv2d_0a_1x1')
tower_conv_1 = slim.conv2d(