facebookresearch / maskrcnn-benchmark
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 210 files with 15,372 lines of code.
    • 0 very long files (0 lines of code)
    • 3 long files (2,023 lines of code)
    • 9 medium size files (2,812 lines of codeclsfd_ftr_w_mp_ins)
    • 33 small files (4,652 lines of code)
    • 165 very small files (5,885 lines of code)
0% | 13% | 18% | 30% | 38%
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
cu0% | 54% | 24% | 17% | 2%
py0% | 7% | 20% | 42% | 29%
cpp0% | 0% | 71% | 0% | 28%
h0% | 0% | 0% | 36% | 63%
yaml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
maskrcnn_benchmark/csrc0% | 41% | 25% | 18% | 14%
maskrcnn_benchmark/modeling0% | 17% | 9% | 41% | 31%
maskrcnn_benchmark/data0% | 0% | 38% | 31% | 29%
maskrcnn_benchmark/structures0% | 0% | 46% | 41% | 11%
maskrcnn_benchmark/layers0% | 0% | 22% | 43% | 34%
maskrcnn_benchmark/config0% | 0% | 53% | 46% | <1%
maskrcnn_benchmark/utils0% | 0% | 0% | 42% | 57%
maskrcnn_benchmark/engine0% | 0% | 0% | 75% | 24%
tools/cityscapes0% | 0% | 0% | 77% | 22%
tools0% | 0% | 0% | 100% | 0%
configs0% | 0% | 0% | 0% | 100%
configs/gn_baselines0% | 0% | 0% | 0% | 100%
configs/quick_schedules0% | 0% | 0% | 0% | 100%
configs/retinanet0% | 0% | 0% | 0% | 100%
configs/caffe20% | 0% | 0% | 0% | 100%
configs/dcn0% | 0% | 0% | 0% | 100%
configs/cityscapes0% | 0% | 0% | 0% | 100%
configs/pascal_voc0% | 0% | 0% | 0% | 100%
maskrcnn_benchmark/solver0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
docker/docker-jupyter0% | 0% | 0% | 0% | 100%
maskrcnn_benchmark0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
cu
deform_conv_kernel_cuda.cu
in maskrcnn_benchmark/csrc/cuda
781 -
fbnet_builder.py
in maskrcnn_benchmark/modeling/backbone
669 35
cu
deform_conv_cuda.cu
in maskrcnn_benchmark/csrc/cuda
573 -
eval_instances.py
in maskrcnn_benchmark/data/datasets/evaluation/cityscapes
484 15
segmentation_mask.py
in maskrcnn_benchmark/structures
378 40
resnet.py
in maskrcnn_benchmark/modeling/backbone
356 14
cu
deform_pool_kernel_cuda.cu
in maskrcnn_benchmark/csrc/cuda
331 -
coco_eval.py
in maskrcnn_benchmark/data/datasets/evaluation/coco
310 10
cu
ROIAlign_cuda.cu
in maskrcnn_benchmark/csrc/cuda
287 -
deform_conv_func.py
in maskrcnn_benchmark/layers/dcn
239 6
paths_catalog.py
in maskrcnn_benchmark/config
219 4
ROIAlign_cpu.cpp
in maskrcnn_benchmark/csrc/cpu
208 3
bounding_box.py
in maskrcnn_benchmark/structures
196 18
defaults.py
in maskrcnn_benchmark/config
192 -
fbnet.py
in maskrcnn_benchmark/modeling/backbone
190 15
anchor_generator.py
in maskrcnn_benchmark/modeling/rpn
179 17
deform_conv.h
in maskrcnn_benchmark/csrc
178 5
convert_cityscapes_to_coco.py
in tools/cityscapes
175 6
cu
ROIPool_cuda.cu
in maskrcnn_benchmark/csrc/cuda
175 -
misc.py
in maskrcnn_benchmark/layers
167 10
cityscapes.py
in maskrcnn_benchmark/data/datasets
159 7
train_net.py
in tools
157 3
deform_conv_module.py
in maskrcnn_benchmark/layers/dcn
154 11
trainer.py
in maskrcnn_benchmark/engine
152 2
cu
SigmoidFocalLoss_cuda.cu
in maskrcnn_benchmark/csrc/cuda
150 -
c2_model_loading.py
in maskrcnn_benchmark/utils
149 7
keypoint.py
in maskrcnn_benchmark/structures
147 12
fbnet_modeldef.py
in maskrcnn_benchmark/modeling/backbone
139 1
build.py
in maskrcnn_benchmark/data
137 6
deform_pool_module.py
in maskrcnn_benchmark/layers/dcn
133 6
voc_eval.py
in maskrcnn_benchmark/data/datasets/evaluation/voc
132 4
inference.py
in maskrcnn_benchmark/modeling/rpn
131 6
inference.py
in maskrcnn_benchmark/modeling/rpn/retinanet
129 5
inference.py
in maskrcnn_benchmark/modeling/roi_heads/mask_head
127 10
roi_box_feature_extractors.py
in maskrcnn_benchmark/modeling/roi_heads/box_head
119 7
loss.py
in maskrcnn_benchmark/modeling/roi_heads/keypoint_head
116 9
loss.py
in maskrcnn_benchmark/modeling/roi_heads/box_head
114 6
rpn.py
in maskrcnn_benchmark/modeling/rpn
113 11
checkpoint.py
in maskrcnn_benchmark/utils
110 10
cu
nms.cu
in maskrcnn_benchmark/csrc/cuda
108 -
voc.py
in maskrcnn_benchmark/data/datasets
108 7
inference.py
in maskrcnn_benchmark/modeling/roi_heads/box_head
107 5
abs_to_coco.py
in maskrcnn_benchmark/data/datasets/evaluation/coco
107 3
make_layers.py
in maskrcnn_benchmark/modeling
101 5
inference.py
in maskrcnn_benchmark/engine
101 3
retinanet.py
in maskrcnn_benchmark/modeling/rpn/retinanet
97 7
vision.h
in maskrcnn_benchmark/csrc/cuda
96 -
transforms.py
in maskrcnn_benchmark/data/transforms
95 15
loss.py
in maskrcnn_benchmark/modeling/rpn
90 6
deform_pool_func.py
in maskrcnn_benchmark/layers/dcn
82 2
Files With Most Units (Top 20)
File# lines# units
segmentation_mask.py
in maskrcnn_benchmark/structures
378 40
fbnet_builder.py
in maskrcnn_benchmark/modeling/backbone
669 35
bounding_box.py
in maskrcnn_benchmark/structures
196 18
anchor_generator.py
in maskrcnn_benchmark/modeling/rpn
179 17
fbnet.py
in maskrcnn_benchmark/modeling/backbone
190 15
eval_instances.py
in maskrcnn_benchmark/data/datasets/evaluation/cityscapes
484 15
transforms.py
in maskrcnn_benchmark/data/transforms
95 15
resnet.py
in maskrcnn_benchmark/modeling/backbone
356 14
keypoint.py
in maskrcnn_benchmark/structures
147 12
deform_conv_module.py
in maskrcnn_benchmark/layers/dcn
154 11
rpn.py
in maskrcnn_benchmark/modeling/rpn
113 11
misc.py
in maskrcnn_benchmark/layers
167 10
checkpoint.py
in maskrcnn_benchmark/utils
110 10
inference.py
in maskrcnn_benchmark/modeling/roi_heads/mask_head
127 10
coco_eval.py
in maskrcnn_benchmark/data/datasets/evaluation/coco
310 10
metric_logger.py
in maskrcnn_benchmark/utils
49 9
loss.py
in maskrcnn_benchmark/modeling/roi_heads/keypoint_head
116 9
timer.py
in maskrcnn_benchmark/utils
31 8
c2_model_loading.py
in maskrcnn_benchmark/utils
149 7
retinanet.py
in maskrcnn_benchmark/modeling/rpn/retinanet
97 7
Files With Long Lines (Top 10)

There are 10 files with lines longer than 120 characters. In total, there are 43 long lines.

File# lines# units# long lines
cu
deform_conv_kernel_cuda.cu
in maskrcnn_benchmark/csrc/cuda
781 - 21
cu
deform_pool_kernel_cuda.cu
in maskrcnn_benchmark/csrc/cuda
331 - 10
cu
ROIAlign_cuda.cu
in maskrcnn_benchmark/csrc/cuda
287 - 4
c2_model_loading.py
in maskrcnn_benchmark/utils
149 7 2
ROIAlign.h
in maskrcnn_benchmark/csrc
39 2 1
cu
deform_pool_cuda.cu
in maskrcnn_benchmark/csrc/cuda
72 - 1
ROIPool.h
in maskrcnn_benchmark/csrc
39 2 1
paths_catalog.py
in maskrcnn_benchmark/config
219 4 1
build.py
in maskrcnn_benchmark/data
137 6 1
trainer.py
in maskrcnn_benchmark/engine
152 2 1