tensorflow/models

View on GitHub

Showing 11,634 of 11,634 total issues

Similar blocks of code found in 12 locations. Consider refactoring.
Open

      xception_block('middle_flow/block1',
                     depth_list=[728, 728, 728],
Severity: Major
Found in research/deeplab/core/xception.py and 11 other locations - About 55 mins to fix
research/deeplab/core/xception.py on lines 645..646
research/deeplab/core/xception.py on lines 655..656
research/deeplab/core/xception.py on lines 665..666
research/deeplab/core/xception.py on lines 685..686
research/deeplab/core/xception.py on lines 763..764
research/deeplab/core/xception.py on lines 773..774
research/deeplab/core/xception.py on lines 783..784
research/deeplab/core/xception.py on lines 793..794
research/deeplab/core/xception.py on lines 803..804
research/deeplab/core/xception.py on lines 813..814
research/deeplab/core/xception.py on lines 823..824

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 37.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 12 locations. Consider refactoring.
Open

      xception_block('middle_flow/block1',
                     depth_list=[728, 728, 728],
Severity: Major
Found in research/deeplab/core/xception.py and 11 other locations - About 55 mins to fix
research/deeplab/core/xception.py on lines 645..646
research/deeplab/core/xception.py on lines 655..656
research/deeplab/core/xception.py on lines 665..666
research/deeplab/core/xception.py on lines 675..676
research/deeplab/core/xception.py on lines 685..686
research/deeplab/core/xception.py on lines 763..764
research/deeplab/core/xception.py on lines 773..774
research/deeplab/core/xception.py on lines 783..784
research/deeplab/core/xception.py on lines 793..794
research/deeplab/core/xception.py on lines 803..804
research/deeplab/core/xception.py on lines 823..824

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 37.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 11 locations. Consider refactoring.
Open

    example.features.feature['image/source_id'].bytes_list.value.extend(
        input_example.features.feature['image/source_id'].bytes_list.value)
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 154..155
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 156..157
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 158..159
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 162..163
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 165..166
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 168..169
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 170..171
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 173..174
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 175..176
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 177..178

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 37.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 11 locations. Consider refactoring.
Open

    example.features.feature['image/date_captured'].bytes_list.value.extend(
        input_example.features.feature['image/date_captured'].bytes_list.value)
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 154..155
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 156..157
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 158..159
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 160..161
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 162..163
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 168..169
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 170..171
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 173..174
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 175..176
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 177..178

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 37.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 12 locations. Consider refactoring.
Open

      xception_block('entry_flow/block1',
                     depth_list=[128, 128, 128],
Severity: Major
Found in research/deeplab/core/xception.py and 11 other locations - About 55 mins to fix
research/deeplab/core/xception.py on lines 645..646
research/deeplab/core/xception.py on lines 655..656
research/deeplab/core/xception.py on lines 665..666
research/deeplab/core/xception.py on lines 675..676
research/deeplab/core/xception.py on lines 685..686
research/deeplab/core/xception.py on lines 773..774
research/deeplab/core/xception.py on lines 783..784
research/deeplab/core/xception.py on lines 793..794
research/deeplab/core/xception.py on lines 803..804
research/deeplab/core/xception.py on lines 813..814
research/deeplab/core/xception.py on lines 823..824

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 37.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 12 locations. Consider refactoring.
Open

      xception_block('exit_flow/block1',
                     depth_list=[728, 1024, 1024],
Severity: Major
Found in research/deeplab/core/xception.py and 11 other locations - About 55 mins to fix
research/deeplab/core/xception.py on lines 645..646
research/deeplab/core/xception.py on lines 655..656
research/deeplab/core/xception.py on lines 665..666
research/deeplab/core/xception.py on lines 675..676
research/deeplab/core/xception.py on lines 685..686
research/deeplab/core/xception.py on lines 763..764
research/deeplab/core/xception.py on lines 773..774
research/deeplab/core/xception.py on lines 783..784
research/deeplab/core/xception.py on lines 793..794
research/deeplab/core/xception.py on lines 803..804
research/deeplab/core/xception.py on lines 813..814

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 37.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 11 locations. Consider refactoring.
Open

    example.features.feature['image/location'].bytes_list.value.extend(
        input_example.features.feature['image/location'].bytes_list.value)
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 154..155
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 156..157
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 158..159
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 160..161
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 165..166
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 168..169
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 170..171
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 173..174
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 175..176
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 177..178

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 37.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 11 locations. Consider refactoring.
Open

    example.features.feature['image/encoded'].bytes_list.value.extend(
        input_example.features.feature['image/encoded'].bytes_list.value)
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 156..157
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 158..159
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 160..161
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 162..163
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 165..166
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 168..169
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 170..171
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 173..174
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 175..176
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 177..178

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 37.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 12 locations. Consider refactoring.
Open

      xception_block('entry_flow/block4',
                     depth_list=[728, 728, 728],
Severity: Major
Found in research/deeplab/core/xception.py and 11 other locations - About 55 mins to fix
research/deeplab/core/xception.py on lines 645..646
research/deeplab/core/xception.py on lines 655..656
research/deeplab/core/xception.py on lines 665..666
research/deeplab/core/xception.py on lines 675..676
research/deeplab/core/xception.py on lines 685..686
research/deeplab/core/xception.py on lines 763..764
research/deeplab/core/xception.py on lines 773..774
research/deeplab/core/xception.py on lines 783..784
research/deeplab/core/xception.py on lines 803..804
research/deeplab/core/xception.py on lines 813..814
research/deeplab/core/xception.py on lines 823..824

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 37.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 11 locations. Consider refactoring.
Open

    example.features.feature['image/seq_frame_num'].int64_list.value.extend(
        input_example.features.feature['image/seq_frame_num'].int64_list.value)
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 154..155
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 156..157
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 158..159
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 160..161
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 162..163
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 165..166
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 168..169
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 170..171
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 173..174
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 175..176

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 37.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 11 locations. Consider refactoring.
Open

    example.features.feature['image/height'].int64_list.value.extend(
        input_example.features.feature['image/height'].int64_list.value)
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 154..155
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 158..159
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 160..161
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 162..163
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 165..166
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 168..169
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 170..171
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 173..174
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 175..176
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 177..178

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 37.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 12 locations. Consider refactoring.
Open

      xception_block('entry_flow/block1',
                     depth_list=[128, 128, 128],
Severity: Major
Found in research/deeplab/core/xception.py and 11 other locations - About 55 mins to fix
research/deeplab/core/xception.py on lines 655..656
research/deeplab/core/xception.py on lines 665..666
research/deeplab/core/xception.py on lines 675..676
research/deeplab/core/xception.py on lines 685..686
research/deeplab/core/xception.py on lines 763..764
research/deeplab/core/xception.py on lines 773..774
research/deeplab/core/xception.py on lines 783..784
research/deeplab/core/xception.py on lines 793..794
research/deeplab/core/xception.py on lines 803..804
research/deeplab/core/xception.py on lines 813..814
research/deeplab/core/xception.py on lines 823..824

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 37.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 9 locations. Consider refactoring.
Open

      tensor_dict = {
          fields.InputDataFields.image: image,
          fields.InputDataFields.groundtruth_boxes: boxes,
          fields.InputDataFields.groundtruth_classes: labels,
          fields.InputDataFields.groundtruth_keypoints: keypoints,
Severity: Major
Found in research/object_detection/core/preprocessor_test.py and 8 other locations - About 55 mins to fix
research/object_detection/core/preprocessor_test.py on lines 1734..1739
research/object_detection/core/preprocessor_test.py on lines 1803..1808
research/object_detection/core/preprocessor_test.py on lines 2105..2110
research/object_detection/core/preprocessor_test.py on lines 2331..2336
research/object_detection/core/preprocessor_test.py on lines 2379..2384
research/object_detection/core/preprocessor_test.py on lines 2427..2432
research/object_detection/core/preprocessor_test.py on lines 4012..4017
research/object_detection/model_lib_tf1_test.py on lines 463..473

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 37.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 11 locations. Consider refactoring.
Open

    example.features.feature['image/class/label'].int64_list.value.extend(
        input_example.features.feature['image/class/label'].int64_list.value)
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 154..155
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 156..157
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 158..159
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 160..161
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 162..163
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 165..166
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 168..169
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 173..174
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 175..176
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 177..178

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 37.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 11 locations. Consider refactoring.
Open

    example.features.feature['image/seq_num_frames'].int64_list.value.extend(
        input_example.features.feature['image/seq_num_frames'].int64_list.value)
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 154..155
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 156..157
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 158..159
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 160..161
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 162..163
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 165..166
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 168..169
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 170..171
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 173..174
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 177..178

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 37.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 12 locations. Consider refactoring.
Open

      xception_block('entry_flow/block2',
                     depth_list=[256, 256, 256],
Severity: Major
Found in research/deeplab/core/xception.py and 11 other locations - About 55 mins to fix
research/deeplab/core/xception.py on lines 645..646
research/deeplab/core/xception.py on lines 665..666
research/deeplab/core/xception.py on lines 675..676
research/deeplab/core/xception.py on lines 685..686
research/deeplab/core/xception.py on lines 763..764
research/deeplab/core/xception.py on lines 773..774
research/deeplab/core/xception.py on lines 783..784
research/deeplab/core/xception.py on lines 793..794
research/deeplab/core/xception.py on lines 803..804
research/deeplab/core/xception.py on lines 813..814
research/deeplab/core/xception.py on lines 823..824

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 37.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 12 locations. Consider refactoring.
Open

      xception_block('entry_flow/block2',
                     depth_list=[256, 256, 256],
Severity: Major
Found in research/deeplab/core/xception.py and 11 other locations - About 55 mins to fix
research/deeplab/core/xception.py on lines 645..646
research/deeplab/core/xception.py on lines 655..656
research/deeplab/core/xception.py on lines 665..666
research/deeplab/core/xception.py on lines 675..676
research/deeplab/core/xception.py on lines 685..686
research/deeplab/core/xception.py on lines 763..764
research/deeplab/core/xception.py on lines 783..784
research/deeplab/core/xception.py on lines 793..794
research/deeplab/core/xception.py on lines 803..804
research/deeplab/core/xception.py on lines 813..814
research/deeplab/core/xception.py on lines 823..824

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 37.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 11 locations. Consider refactoring.
Open

    example.features.feature['image/seq_id'].bytes_list.value.extend(
        input_example.features.feature['image/seq_id'].bytes_list.value)
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 154..155
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 156..157
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 158..159
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 160..161
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 162..163
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 165..166
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 168..169
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 170..171
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 175..176
research/object_detection/dataset_tools/context_rcnn/generate_detection_data.py on lines 177..178

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 37.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 9 locations. Consider refactoring.
Open

      tensor_dict = {
          fields.InputDataFields.image: images,
          fields.InputDataFields.groundtruth_boxes: boxes,
          fields.InputDataFields.groundtruth_classes: labels,
          fields.InputDataFields.groundtruth_weights: weights,
Severity: Major
Found in research/object_detection/core/preprocessor_test.py and 8 other locations - About 55 mins to fix
research/object_detection/core/preprocessor_test.py on lines 1734..1739
research/object_detection/core/preprocessor_test.py on lines 2042..2047
research/object_detection/core/preprocessor_test.py on lines 2105..2110
research/object_detection/core/preprocessor_test.py on lines 2331..2336
research/object_detection/core/preprocessor_test.py on lines 2379..2384
research/object_detection/core/preprocessor_test.py on lines 2427..2432
research/object_detection/core/preprocessor_test.py on lines 4012..4017
research/object_detection/model_lib_tf1_test.py on lines 463..473

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 37.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 12 locations. Consider refactoring.
Open

      xception_block('entry_flow/block5',
                     depth_list=[728, 728, 728],
Severity: Major
Found in research/deeplab/core/xception.py and 11 other locations - About 55 mins to fix
research/deeplab/core/xception.py on lines 645..646
research/deeplab/core/xception.py on lines 655..656
research/deeplab/core/xception.py on lines 665..666
research/deeplab/core/xception.py on lines 675..676
research/deeplab/core/xception.py on lines 685..686
research/deeplab/core/xception.py on lines 763..764
research/deeplab/core/xception.py on lines 773..774
research/deeplab/core/xception.py on lines 783..784
research/deeplab/core/xception.py on lines 793..794
research/deeplab/core/xception.py on lines 813..814
research/deeplab/core/xception.py on lines 823..824

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 37.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Severity
Category
Status
Source
Language