facebookresearch / pytorchvideo
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 181 files with 15,364 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (675 lines of code)
    • 22 medium size files (6,349 lines of codeclsfd_ftr_w_mp_ins)
    • 31 small files (4,506 lines of code)
    • 127 very small files (3,834 lines of code)
0% | 4% | 41% | 29% | 24%
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% | 4% | 42% | 32% | 20%
css0% | 0% | 100% | 0% | 0%
js0% | 0% | 67% | 0% | 32%
yaml0% | 0% | 0% | 0% | 100%
cfg0% | 0% | 0% | 0% | 100%
yml0% | 0% | 0% | 0% | 100%
in0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
pytorchvideo/models0% | 17% | 39% | 20% | 22%
pytorchvideo_trainer/pytorchvideo_trainer0% | 0% | 34% | 33% | 32%
pytorchvideo/layers0% | 0% | 58% | 6% | 35%
pytorchvideo/transforms0% | 0% | 63% | 23% | 13%
pytorchvideo/data0% | 0% | 23% | 63% | 13%
website/website0% | 0% | 82% | 0% | 17%
tutorials/video_detection_example0% | 0% | 100% | 0% | 0%
tutorials/video_classification_example0% | 0% | 88% | 0% | 11%
pytorchvideo/neural_engine0% | 0% | 0% | 79% | 20%
pytorchvideo/accelerator0% | 0% | 0% | 48% | 51%
projects/video_nerf0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
pytorchvideo_trainer0% | 0% | 0% | 0% | 100%
pytorchvideo0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
resnet.py
in pytorchvideo/models
675 16
slowfast.py
in pytorchvideo/models
445 8
visualization.py
in tutorials/video_detection_example
418 16
x3d.py
in pytorchvideo/models
417 8
conv_helper.py
in pytorchvideo/layers/accelerator/mobile_cpu
405 10
attention.py
in pytorchvideo/layers
354 11
convolutions.py
in pytorchvideo/layers/accelerator/mobile_cpu
328 15
video_classification.py
in pytorchvideo_trainer/pytorchvideo_trainer/module
325 25
moco_v2.py
in pytorchvideo_trainer/pytorchvideo_trainer/module
315 15
functional.py
in pytorchvideo/transforms
307 17
train.py
in tutorials/video_classification_example
289 18
custom.css
in website/website/static/css
271 -
ssl_helper.py
in pytorchvideo_trainer/pytorchvideo_trainer/module
259 17
audio_visual_slowfast.py
in pytorchvideo/models
250 5
domsev.py
in pytorchvideo/data
249 12
augmentations.py
in pytorchvideo/transforms
223 23
dataset_manifest_utils.py
in pytorchvideo/data
220 9
head.py
in pytorchvideo/models
219 11
index.js
in website/website/pages/en
218 1
vision_transformers.py
in pytorchvideo/models
214 3
encoded_video_pyav.py
in pytorchvideo/data
210 7
byol.py
in pytorchvideo_trainer/pytorchvideo_trainer/module
207 10
transforms.py
in pytorchvideo/transforms
206 30
train_app.py
in pytorchvideo_trainer/pytorchvideo_trainer
193 10
ava.py
in pytorchvideo/data
190 9
encoded_video_torchvision.py
in pytorchvideo/data
188 6
optimizer.py
in pytorchvideo_trainer/pytorchvideo_trainer/module
180 13
masked_multistream.py
in pytorchvideo/models
176 14
clip_sampling.py
in pytorchvideo/data
175 14
distributed_utils.py
in pytorchvideo_trainer/pytorchvideo_trainer/module
174 15
transforms_factory.py
in pytorchvideo/transforms
165 2
efficient_x3d.py
in pytorchvideo/models/accelerator/mobile_cpu
163 3
r2plus1d.py
in pytorchvideo/models
162 2
epic_kitchen_forecasting.py
in pytorchvideo/data
160 7
residual_blocks.py
in pytorchvideo/models/accelerator/mobile_cpu
156 3
labeled_video_dataset.py
in pytorchvideo/data
156 6
stem.py
in pytorchvideo/models
150 7
transmuter_mobile_cpu.py
in pytorchvideo/accelerator/deployment/mobile_cpu/transmuter
144 5
frame_video.py
in pytorchvideo/data
142 11
datamodule.py
in pytorchvideo_trainer/pytorchvideo_trainer/datamodule
142 7
rand_erase_transform.py
in pytorchvideo_trainer/pytorchvideo_trainer/datamodule
140 5
simclr.py
in pytorchvideo_trainer/pytorchvideo_trainer/module
140 5
utils.py
in pytorchvideo/data
136 10
ssv2.py
in pytorchvideo/data
129 6
convolutions.py
in pytorchvideo/layers
127 5
hook.py
in pytorchvideo/neural_engine
124 9
json_dataset.py
in pytorchvideo/data
123 6
charades.py
in pytorchvideo/data
118 6
transforms.py
in pytorchvideo_trainer/pytorchvideo_trainer/datamodule
117 14
utils.py
in pytorchvideo/data/epic_kitchen
116 5
Files With Most Units (Top 20)
File# lines# units
transforms.py
in pytorchvideo/transforms
206 30
video_classification.py
in pytorchvideo_trainer/pytorchvideo_trainer/module
325 25
augmentations.py
in pytorchvideo/transforms
223 23
train.py
in tutorials/video_classification_example
289 18
functional.py
in pytorchvideo/transforms
307 17
ssl_helper.py
in pytorchvideo_trainer/pytorchvideo_trainer/module
259 17
visualization.py
in tutorials/video_detection_example
418 16
resnet.py
in pytorchvideo/models
675 16
convolutions.py
in pytorchvideo/layers/accelerator/mobile_cpu
328 15
moco_v2.py
in pytorchvideo_trainer/pytorchvideo_trainer/module
315 15
distributed_utils.py
in pytorchvideo_trainer/pytorchvideo_trainer/module
174 15
activation_functions.py
in pytorchvideo/layers/accelerator/mobile_cpu
50 14
masked_multistream.py
in pytorchvideo/models
176 14
clip_sampling.py
in pytorchvideo/data
175 14
transforms.py
in pytorchvideo_trainer/pytorchvideo_trainer/datamodule
117 14
optimizer.py
in pytorchvideo_trainer/pytorchvideo_trainer/module
180 13
domsev.py
in pytorchvideo/data
249 12
attention.py
in pytorchvideo/layers
354 11
fusion.py
in pytorchvideo/layers
54 11
head.py
in pytorchvideo/models
219 11
Files With Long Lines (Top 1)

There is only one file with lines longer than 120 characters. In total, there are 4 long lines.

File# lines# units# long lines
index.js
in website/website/pages/en
218 1 4