facebookresearch / Detectron
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 177 files with 15,250 lines of code.
    • 0 very long files (0 lines of code)
    • 2 long files (1,091 lines of code)
    • 15 medium size files (4,609 lines of codeclsfd_ftr_w_mp_ins)
    • 23 small files (3,446 lines of code)
    • 137 very small files (6,104 lines of code)
0% | 7% | 30% | 22% | 40%
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
py0% | 10% | 39% | 31% | 18%
cmake0% | 0% | 68% | 0% | 31%
pyx0% | 0% | 0% | 78% | 21%
yaml0% | 0% | 0% | 0% | 100%
m0% | 0% | 0% | 0% | 100%
cu0% | 0% | 0% | 0% | 100%
cc0% | 0% | 0% | 0% | 100%
h0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
detectron/core0% | 46% | 37% | 16% | <1%
tools0% | 34% | 0% | 47% | 17%
detectron/modeling0% | 0% | 74% | 13% | 11%
detectron/datasets0% | 0% | 56% | 32% | 11%
detectron/utils0% | 0% | 23% | 46% | 30%
cmake/legacy0% | 0% | 71% | 0% | 28%
detectron/roi_data0% | 0% | 20% | 50% | 28%
configs/12_2017_baselines0% | 0% | 0% | 0% | 100%
configs/04_2018_gn_baselines0% | 0% | 0% | 0% | 100%
detectron/ops0% | 0% | 0% | 0% | 100%
configs/getting_started0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
cmake0% | 0% | 0% | 0% | 100%
detectron0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
test.py
in detectron/core
564 25
convert_pkl_to_pb.py
in tools
527 22
config.py
in detectron/core
458 13
model_builder.py
in detectron/modeling
396 47
FPN.py
in detectron/modeling
395 17
json_dataset_evaluator.py
in detectron/datasets
373 14
detector.py
in detectron/modeling
364 22
json_dataset.py
in detectron/datasets
346 13
task_evaluation.py
in detectron/datasets
295 20
vis.py
in detectron/utils
283 9
model_convert_utils.py
in detectron/utils
277 24
cmake
Utils.cmake
in cmake/legacy
271 -
ResNet.py
in detectron/modeling
257 15
retinanet_heads.py
in detectron/modeling
245 3
mask_rcnn_heads.py
in detectron/modeling
225 10
cmake
Cuda.cmake
in cmake/legacy
220 -
loader.py
in detectron/roi_data
204 16
rpn_generator.py
in detectron/core
200 7
net.py
in detectron/utils
196 9
dataset_catalog.py
in detectron/datasets
191 7
boxes.py
in detectron/utils
191 16
rpn.py
in detectron/roi_data
187 3
keypoints.py
in detectron/utils
168 9
segms.py
in detectron/utils
168 9
retinanet.py
in detectron/roi_data
164 3
convert_cityscapes_to_coco.py
in tools
161 4
pickle_caffe_blobs.py
in tools
159 8
infer_simple.py
in tools
145 2
infer.py
in tools
145 4
voc_dataset_evaluator.py
in detectron/datasets
141 6
pyx
cython_nms.pyx
in detectron/utils
141 2
fast_rcnn.py
in detectron/roi_data
141 5
keypoint_rcnn_heads.py
in detectron/modeling
132 4
roidb.py
in detectron/datasets
128 6
train.py
in detectron/utils
128 7
voc_eval.py
in detectron/datasets
124 3
fast_rcnn_heads.py
in detectron/modeling
117 5
io.py
in detectron/utils
109 8
visualize_results.py
in tools
105 2
rpn_heads.py
in detectron/modeling
105 3
colormap.py
in detectron/utils
93 1
generate_proposals.py
in detectron/ops
92 4
c2.py
in detectron/utils
91 15
subprocess.py
in detectron/utils
90 2
train_net.py
in tools
87 3
convert_coco_model_to_cityscapes.py
in tools
80 5
blob.py
in detectron/utils
78 9
keypoint_rcnn.py
in detectron/roi_data
77 3
training_stats.py
in detectron/utils
76 7
e2e_mask_rcnn_X-152-32x8d-FPN-IN5k_1.44x.yaml
in configs/12_2017_baselines
76 -
Files With Most Units (Top 20)
File# lines# units
model_builder.py
in detectron/modeling
396 47
test.py
in detectron/core
564 25
model_convert_utils.py
in detectron/utils
277 24
convert_pkl_to_pb.py
in tools
527 22
detector.py
in detectron/modeling
364 22
task_evaluation.py
in detectron/datasets
295 20
FPN.py
in detectron/modeling
395 17
boxes.py
in detectron/utils
191 16
loader.py
in detectron/roi_data
204 16
c2.py
in detectron/utils
91 15
ResNet.py
in detectron/modeling
257 15
json_dataset_evaluator.py
in detectron/datasets
373 14
config.py
in detectron/core
458 13
json_dataset.py
in detectron/datasets
346 13
mask_rcnn_heads.py
in detectron/modeling
225 10
net.py
in detectron/utils
196 9
vis.py
in detectron/utils
283 9
keypoints.py
in detectron/utils
168 9
segms.py
in detectron/utils
168 9
blob.py
in detectron/utils
78 9
Files With Long Lines (Top 20)

There are 35 files with lines longer than 120 characters. In total, there are 67 long lines.

File# lines# units# long lines
cmake
Utils.cmake
in cmake/legacy
271 - 3
cmake
Cuda.cmake
in cmake/legacy
220 - 2
fast_rcnn_R-101-FPN_2x.yaml
in configs/12_2017_baselines
36 - 2
fast_rcnn_X-101-64x4d-FPN_1x.yaml
in configs/12_2017_baselines
42 - 2
keypoint_rcnn_R-50-FPN_1x.yaml
in configs/12_2017_baselines
50 - 2
mask_rcnn_R-50-FPN_1x.yaml
in configs/12_2017_baselines
45 - 2
mask_rcnn_R-101-FPN_1x.yaml
in configs/12_2017_baselines
45 - 2
mask_rcnn_X-101-64x4d-FPN_2x.yaml
in configs/12_2017_baselines
51 - 2
keypoint_rcnn_X-101-32x8d-FPN_1x.yaml
in configs/12_2017_baselines
55 - 2
fast_rcnn_X-101-64x4d-FPN_2x.yaml
in configs/12_2017_baselines
42 - 2
fast_rcnn_R-101-FPN_1x.yaml
in configs/12_2017_baselines
36 - 2
mask_rcnn_R-50-FPN_2x.yaml
in configs/12_2017_baselines
45 - 2
mask_rcnn_R-101-FPN_2x.yaml
in configs/12_2017_baselines
45 - 2
mask_rcnn_X-101-64x4d-FPN_1x.yaml
in configs/12_2017_baselines
51 - 2
keypoint_rcnn_X-101-64x4d-FPN_s1x.yaml
in configs/12_2017_baselines
55 - 2
mask_rcnn_R-50-C4_1x.yaml
in configs/12_2017_baselines
41 - 2
fast_rcnn_R-50-C4_2x.yaml
in configs/12_2017_baselines
33 - 2
fast_rcnn_X-101-32x8d-FPN_1x.yaml
in configs/12_2017_baselines
42 - 2
keypoint_rcnn_R-101-FPN_s1x.yaml
in configs/12_2017_baselines
50 - 2
fast_rcnn_R-50-FPN_2x.yaml
in configs/12_2017_baselines
36 - 2