tensorflow / models
File Size

The distribution of size of files (measured in lines of code).

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 1,662 files with 218,106 lines of code.
    • 13 very long files (18,305 lines of code)
    • 42 long files (28,310 lines of code)
    • 268 medium size files (81,365 lines of codeclsfd_ftr_w_mp_ins)
    • 348 small files (49,304 lines of code)
    • 991 very small files (40,822 lines of code)
8% | 12% | 37% | 22% | 18%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
py9% | 13% | 38% | 23% | 15%
proto0% | 14% | 17% | 32% | 35%
cc0% | 0% | 69% | 18% | 11%
bzl0% | 0% | 73% | 0% | 26%
yaml0% | 0% | 0% | 12% | 87%
h0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
research/object_detection21% | 25% | 22% | 18% | 12%
official/vision8% | 6% | 40% | 19% | 25%
official/nlp8% | 16% | 44% | 20% | 9%
research/lfads47% | 0% | 15% | 36% | 0%
official/projects4% | 13% | 30% | 25% | 25%
research/cognitive_planning0% | 37% | 43% | 7% | 11%
official/legacy0% | 7% | 60% | 17% | 14%
research/deeplab0% | 19% | 43% | 26% | 10%
research/rebar0% | 69% | 0% | 13% | 17%
official/recommendation0% | 20% | 28% | 34% | 16%
research/efficient-hrl0% | 12% | 56% | 11% | 18%
research/slim0% | 0% | 52% | 31% | 15%
research/seq_flow_lite0% | 0% | 48% | 14% | 37%
research/lstm_object_detection0% | 0% | 42% | 33% | 24%
research/delf0% | 0% | 35% | 34% | 30%
research/pcl_rl0% | 0% | 63% | 31% | 4%
research/vid2depth0% | 0% | 43% | 46% | 9%
official/core0% | 0% | 62% | 16% | 20%
research/adversarial_text0% | 0% | 49% | 36% | 13%
official/modeling0% | 0% | 18% | 45% | 35%
research/autoaugment0% | 0% | 40% | 39% | 19%
research/attention_ocr0% | 0% | 24% | 45% | 30%
research/deep_speech0% | 0% | 37% | 37% | 25%
orbit0% | 0% | 58% | 35% | 6%
official/utils0% | 0% | 23% | 27% | 49%
research/cvt_text0% | 0% | 0% | 31% | 68%
research/audioset0% | 0% | 0% | 28% | 71%
official/common0% | 0% | 0% | 59% | 40%
orbit/utils0% | 0% | 0% | 0% | 100%
orbit/actions0% | 0% | 0% | 0% | 100%
official/pip_package0% | 0% | 0% | 0% | 100%
research/marco0% | 0% | 0% | 0% | 100%
tensorflow_models0% | 0% | 0% | 0% | 100%
tensorflow_models/nlp0% | 0% | 0% | 0% | 100%
tensorflow_models/vision0% | 0% | 0% | 0% | 100%
official0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
center_net_meta_arch.py
in research/object_detection/meta_architectures
2385 88
preprocessor.py
in research/object_detection/core
2325 64
faster_rcnn_meta_arch_test_lib.py
in research/object_detection/meta_architectures
1797 44
faster_rcnn_meta_arch.py
in research/object_detection/meta_architectures
1456 59
lfads.py
in research/lfads
1386 33
augment.py
in official/vision/beta/ops
1238 86
target_assigner.py
in research/object_detection/core
1223 46
coco_evaluation.py
in research/object_detection/metrics
1137 35
classifier_data_lib.py
in official/nlp/data
1108 112
nn_blocks.py
in official/vision/beta/projects/yolo/modeling/layers
1104 58
nn_blocks.py
in official/vision/beta/modeling/layers
1071 35
t5.py
in official/nlp/modeling/models
1061 42
movinet_layers.py
in official/projects/movinet/modeling
1014 38
model_builder.py
in research/object_detection/builders
991 17
xlnet_modeling.py
in official/nlp/xlnet
915 43
mobilenet_edgetpu_v2_model_blocks.py
in official/projects/edgetpu/vision/modeling
857 21
visualization_utils.py
in research/object_detection/utils
851 30
heads.py
in official/legacy/detection/modeling/architecture
799 30
deepmac_meta_arch.py
in research/object_detection/meta_architectures
788 48
tasks.py
in research/cognitive_planning
773 54
ssd_spaghettinet_feature_extractor.py
in research/object_detection/models
770 21
rebar.py
in research/rebar
766 50
model_lib.py
in research/object_detection
761 10
squad_lib_sp.py
in official/nlp/data
753 17
object_detection_evaluation.py
in research/object_detection/utils
718 39
squad_utils.py
in official/nlp/xlnet
715 22
squad_lib.py
in official/nlp/data
706 18
preprocess_pretrain_data.py
in official/nlp/xlnet
705 17
nn_layers.py
in official/vision/beta/modeling/layers
700 60
ssd_meta_arch.py
in research/object_detection/meta_architectures
700 31
post_processing.py
in research/object_detection/core
698 13
mobilenet.py
in official/vision/beta/modeling/backbones
682 12
inputs.py
in research/object_detection
677 16
assemblenet.py
in official/projects/assemblenet/modeling
671 24
eval_util.py
in research/object_detection
671 16
tf_example_decoder.py
in research/object_detection/data_decoders
667 16
add_context_to_examples.py
in research/object_detection/dataset_tools/context_rcnn
666 16
active_vision_dataset_env.py
in research/cognitive_planning/envs
656 41
model_lib_v2.py
in research/object_detection
632 15
semantic_segmentation.py
in official/vision/beta/configs
623 8
config_util.py
in research/object_detection/utils
622 53
data_pipeline.py
in official/recommendation
620 42
xception.py
in research/deeplab/core
596 12
box_predictor_builder.py
in research/object_detection/builders
586 9
transformer.py
in official/projects/detr/modeling
582 17
model.py
in research/deeplab
571 10
darknet.py
in official/vision/beta/projects/yolo/modeling/backbones
568 23
movinet.py
in official/projects/movinet/modeling
568 12
bifpn_head.py
in official/projects/edgetpu/vision/modeling/heads
557 26
train.py
in research/efficient-hrl
547 3
Files With Most Units (Top 20)
File# lines# units
classifier_data_lib.py
in official/nlp/data
1108 112
center_net_meta_arch.py
in research/object_detection/meta_architectures
2385 88
augment.py
in official/vision/beta/ops
1238 86
preprocessor.py
in research/object_detection/core
2325 64
nn_layers.py
in official/vision/beta/modeling/layers
700 60
faster_rcnn_meta_arch.py
in research/object_detection/meta_architectures
1456 59
nn_blocks.py
in official/vision/beta/projects/yolo/modeling/layers
1104 58
tasks.py
in research/cognitive_planning
773 54
config_util.py
in research/object_detection/utils
622 53
rebar.py
in research/rebar
766 50
deepmac_meta_arch.py
in research/object_detection/meta_architectures
788 48
target_assigner.py
in research/object_detection/core
1223 46
augment.py
in official/legacy/image_classification
502 45
dataset_loader.py
in research/vid2depth/dataset
491 45
faster_rcnn_meta_arch_test_lib.py
in research/object_detection/meta_architectures
1797 44
xlnet_modeling.py
in official/nlp/xlnet
915 43
data_pipeline.py
in official/recommendation
620 42
t5.py
in official/nlp/modeling/models
1061 42
active_vision_dataset_env.py
in research/cognitive_planning/envs
656 41
agent.py
in research/efficient-hrl
481 39
Files With Long Lines (Top 18)

There are 18 files with lines longer than 120 characters. In total, there are 26 long lines.

File# lines# units# long lines
colab_utils.py
in research/object_detection/utils
314 3 5
Automated_Marco.py
in research/marco
30 1 4
model_builder.py
in research/object_detection/builders
991 17 2
spinenet_mobile.py
in official/vision/beta/modeling/backbones
397 12 1
coco-centernet-hourglass-tpu.yaml
in official/vision/beta/projects/centernet/configs/experiments
82 - 1
coco-centernet-hourglass-gpu.yaml
in official/vision/beta/projects/centernet/configs/experiments
84 - 1
actions.py
in official/core
125 10 1
roformer_base.yaml
in official/projects/roformer/experiments
61 - 1
sentencepiece_pb2.py
in official/projects/triviaqa
279 - 1
mobilebert_baseline.yaml
in official/projects/edgetpu/nlp/experiments
141 - 1
mobilebert_edgetpu_xs.yaml
in official/projects/edgetpu/nlp/experiments
141 - 1
mobilebert_edgetpu_m.yaml
in official/projects/edgetpu/nlp/experiments
141 - 1
mobilebert_edgetpu_s.yaml
in official/projects/edgetpu/nlp/experiments
141 - 1
__init__.py
in official/nlp/modeling/losses
1 - 1
eval.py
in research/efficient-hrl
298 4 1
repo.bzl
in research/seq_flow_lite/tf_ops
312 - 1
rebar.py
in research/rebar
766 50 1
string_int_label_map_pb2.py
in research/cognitive_planning
100 - 1