facebookresearch / SlowFast
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 155 files with 17,812 lines of code.
    • 0 very long files (0 lines of code)
    • 3 long files (1,917 lines of code)
    • 23 medium size files (7,442 lines of codeclsfd_ftr_w_mp_ins)
    • 16 small files (2,483 lines of code)
    • 113 very small files (5,970 lines of code)
0% | 10% | 41% | 13% | 33%
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% | 14% | 55% | 18% | 11%
yaml0% | 0% | 0% | 0% | 100%
cfg0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
slowfast/models0% | 44% | 33% | 10% | 11%
slowfast/datasets0% | 14% | 52% | 28% | 5%
slowfast/utils0% | 0% | 63% | 13% | 22%
slowfast/visualization0% | 0% | 65% | 30% | 3%
tools0% | 0% | 84% | 0% | 15%
slowfast/config0% | 0% | 99% | 0% | <1%
configs/Kinetics0% | 0% | 0% | 0% | 100%
configs/AVA0% | 0% | 0% | 0% | 100%
configs/Charades0% | 0% | 0% | 0% | 100%
configs/SSv20% | 0% | 0% | 0% | 100%
configs/ImageNet0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
slowfast0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
video_model_builder.py
in slowfast/models
848 16
ptv_model_builder.py
in slowfast/models
539 19
transform.py
in slowfast/datasets
530 25
object_detection_evaluation.py
in slowfast/utils/ava_evaluation
493 23
meters.py
in slowfast/utils
492 49
resnet_helper.py
in slowfast/models
491 16
ptv_datasets.py
in slowfast/datasets
418 16
video_visualizer.py
in slowfast/visualization
413 16
cv2_transform.py
in slowfast/datasets
403 32
train_net.py
in tools
383 5
rand_augment.py
in slowfast/datasets
357 39
checkpoint.py
in slowfast/utils
338 14
defaults.py
in slowfast/config
322 2
attention.py
in slowfast/models
299 5
kinetics.py
in slowfast/datasets
298 8
ava_demo_precomputed_boxes.py
in slowfast/visualization
290 11
tensorboard_vis.py
in slowfast/visualization
288 11
ava_dataset.py
in slowfast/datasets
275 8
visualization.py
in tools
269 3
np_box_list_ops.py
in slowfast/utils/ava_evaluation
263 17
demo_loader.py
in slowfast/visualization
247 18
head_helper.py
in slowfast/models
232 9
per_image_evaluation.py
in slowfast/utils/ava_evaluation
227 7
misc.py
in slowfast/utils
226 13
decoder.py
in slowfast/datasets
217 6
ava_eval_helper.py
in slowfast/utils
201 9
async_predictor.py
in slowfast/visualization
190 22
stem_helper.py
in slowfast/models
189 12
utils.py
in slowfast/visualization
179 17
ssv2.py
in slowfast/datasets
178 6
utils.py
in slowfast/datasets
178 13
np_box_mask_list_ops.py
in slowfast/utils/ava_evaluation
177 12
distributed.py
in slowfast/utils
163 15
imagenet.py
in slowfast/datasets
162 9
charades.py
in slowfast/datasets
159 6
multigrid.py
in slowfast/utils
144 5
batchnorm_helper.py
in slowfast/models
141 9
random_erasing.py
in slowfast/datasets
139 5
loader.py
in slowfast/datasets
137 4
ava_helper.py
in slowfast/datasets
130 5
predictor.py
in slowfast/visualization
113 7
gradcam_utils.py
in slowfast/visualization
104 5
mixup.py
in slowfast/datasets
99 8
MVIT_B_16x4_CONV.yaml
in configs/Kinetics/pytorchvideo
92 -
MVIT_B_16x4_CONV.yaml
in configs/Kinetics
91 -
optimizer.py
in slowfast/models
86 3
nonlocal_helper.py
in slowfast/models
85 3
MVIT_B_32x3_CONV.yaml
in configs/Kinetics
85 -
standard_fields.py
in slowfast/utils/ava_evaluation
84 -
demo_net.py
in tools
81 2
Files With Most Units (Top 20)
File# lines# units
meters.py
in slowfast/utils
492 49
rand_augment.py
in slowfast/datasets
357 39
cv2_transform.py
in slowfast/datasets
403 32
transform.py
in slowfast/datasets
530 25
object_detection_evaluation.py
in slowfast/utils/ava_evaluation
493 23
async_predictor.py
in slowfast/visualization
190 22
ptv_model_builder.py
in slowfast/models
539 19
demo_loader.py
in slowfast/visualization
247 18
utils.py
in slowfast/visualization
179 17
np_box_list_ops.py
in slowfast/utils/ava_evaluation
263 17
video_visualizer.py
in slowfast/visualization
413 16
ptv_datasets.py
in slowfast/datasets
418 16
resnet_helper.py
in slowfast/models
491 16
video_model_builder.py
in slowfast/models
848 16
distributed.py
in slowfast/utils
163 15
checkpoint.py
in slowfast/utils
338 14
utils.py
in slowfast/datasets
178 13
misc.py
in slowfast/utils
226 13
np_box_mask_list_ops.py
in slowfast/utils/ava_evaluation
177 12
stem_helper.py
in slowfast/models
189 12
Files With Long Lines (Top 2)

There are 2 files with lines longer than 120 characters. In total, there are 3 long lines.

File# lines# units# long lines
visualization.py
in tools
269 3 2
cfg
setup.cfg
in root
22 - 1