facebookresearch / fair_self_supervision_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 112 files with 8,284 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 11 medium size files (2,838 lines of codeclsfd_ftr_w_mp_ins)
    • 16 small files (2,214 lines of code)
    • 85 very small files (3,232 lines of code)
0% | 0% | 34% | 26% | 39%
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% | 0% | 43% | 33% | 22%
yaml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
self_supervision_benchmark/modeling0% | 0% | 69% | 14% | 15%
self_supervision_benchmark/data0% | 0% | 93% | 0% | 6%
self_supervision_benchmark/metrics0% | 0% | 53% | 34% | 12%
extra_scripts0% | 0% | 0% | 62% | 37%
self_supervision_benchmark/utils0% | 0% | 0% | 60% | 39%
tools0% | 0% | 0% | 100% | 0%
self_supervision_benchmark/core0% | 0% | 0% | 99% | <1%
tools/svm0% | 0% | 0% | 29% | 70%
configs/benchmark_tasks0% | 0% | 0% | 0% | 100%
configs/legacy_tasks0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
self_supervision_benchmark0% | 0% | 0% | 0% | 100%
iccv_challenge0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
alexnet_jigsaw_finetune_linear.py
in self_supervision_benchmark/modeling/jigsaw
321 1
resnet_jigsaw_finetune_linear.py
in self_supervision_benchmark/modeling/jigsaw
290 1
resnet_colorize_finetune_linear.py
in self_supervision_benchmark/modeling/colorization
281 1
resnet_supervised_finetune_linear.py
in self_supervision_benchmark/modeling/supervised
277 1
dataloader.py
in self_supervision_benchmark/data
264 20
alexnet_colorize_finetune_linear.py
in self_supervision_benchmark/modeling/colorization
262 1
data_input.py
in self_supervision_benchmark/data
258 13
metrics_topk.py
in self_supervision_benchmark/metrics
230 19
data_transformation.py
in self_supervision_benchmark/data
222 21
model_builder.py
in self_supervision_benchmark/modeling
217 11
caffenet_bvlc_supervised_finetune_linear.py
in self_supervision_benchmark/modeling/supervised
216 1
helpers.py
in self_supervision_benchmark/utils
198 17
checkpoints.py
in self_supervision_benchmark/utils
172 8
config.py
in self_supervision_benchmark/core
171 8
train_net.py
in tools
165 3
metrics_ap.py
in self_supervision_benchmark/metrics
149 14
pickle_caffe2_detection.py
in extra_scripts
142 9
alexnet_jigsaw_finetune_full.py
in self_supervision_benchmark/modeling/jigsaw
136 1
pickle_caffe2_to_pytorch.py
in extra_scripts
134 6
create_voc_data_files.py
in extra_scripts
134 4
alexnet_colorize_finetune_full.py
in self_supervision_benchmark/modeling/colorization
131 1
siamese_model_helper.py
in self_supervision_benchmark/modeling/jigsaw
127 7
extract_features.py
in tools
114 2
create_coco_data_files.py
in extra_scripts
114 4
pickle_pytorch_to_caffe2.py
in extra_scripts
112 6
generate_colorization_bins_priors.py
in extra_scripts
108 6
svm_helper.py
in tools/svm
107 10
train_svm_kfold.py
in tools/svm
92 2
resnet_model_helper.py
in self_supervision_benchmark/modeling
92 7
create_voc_low_shot_challenge_samples.py
in extra_scripts
88 5
train_svm_low_shot.py
in tools/svm
85 2
resnet_jigsaw_finetune_full.py
in self_supervision_benchmark/modeling/jigsaw
84 1
create_imagenet_data_files.py
in extra_scripts
83 3
caffenet_bvlc_supervised_finetune_full.py
in self_supervision_benchmark/modeling/supervised
81 1
resnet_colorize_finetune_full.py
in self_supervision_benchmark/modeling/colorization
80 1
aggregate_low_shot_svm_stats.py
in tools/svm
79 3
create_places_low_shot_samples.py
in extra_scripts
78 4
generate_jigsaw_permutations.py
in extra_scripts
75 1
lr_utils.py
in self_supervision_benchmark/utils
71 5
io.py
in self_supervision_benchmark/utils
67 4
resnet_supervised_finetune_full.py
in self_supervision_benchmark/modeling/supervised
66 1
pickle_jigsaw_model.py
in extra_scripts
57 2
create_voc_low_shot_samples.py
in extra_scripts
57 3
metrics_helper.py
in self_supervision_benchmark/metrics
53 3
resnet50_colorization_finetune_linear.yaml
in configs/benchmark_tasks/image_classification/places205
47 -
alexnet_jigsaw_voc07_finetune_full.yaml
in configs/legacy_tasks/voc07_full_finetune
47 -
resnet50_colorization_voc07_finetune_full.yaml
in configs/legacy_tasks/voc07_full_finetune
47 -
alexnet_colorization_voc07_finetune_full.yaml
in configs/legacy_tasks/voc07_full_finetune
47 -
resnet50_colorization_finetune_linear.yaml
in configs/legacy_tasks/imagenet_linear_tune
47 -
coordinator.py
in self_supervision_benchmark/utils
46 7
Files With Most Units (Top 20)
File# lines# units
data_transformation.py
in self_supervision_benchmark/data
222 21
dataloader.py
in self_supervision_benchmark/data
264 20
metrics_topk.py
in self_supervision_benchmark/metrics
230 19
helpers.py
in self_supervision_benchmark/utils
198 17
metrics_ap.py
in self_supervision_benchmark/metrics
149 14
data_input.py
in self_supervision_benchmark/data
258 13
model_builder.py
in self_supervision_benchmark/modeling
217 11
svm_helper.py
in tools/svm
107 10
pickle_caffe2_detection.py
in extra_scripts
142 9
config.py
in self_supervision_benchmark/core
171 8
checkpoints.py
in self_supervision_benchmark/utils
172 8
coordinator.py
in self_supervision_benchmark/utils
46 7
siamese_model_helper.py
in self_supervision_benchmark/modeling/jigsaw
127 7
resnet_model_helper.py
in self_supervision_benchmark/modeling
92 7
pickle_pytorch_to_caffe2.py
in extra_scripts
112 6
pickle_caffe2_to_pytorch.py
in extra_scripts
134 6
generate_colorization_bins_priors.py
in extra_scripts
108 6
create_voc_low_shot_challenge_samples.py
in extra_scripts
88 5
lr_utils.py
in self_supervision_benchmark/utils
71 5
create_coco_data_files.py
in extra_scripts
114 4
Files With Long Lines (Top 20)

There are 29 files with lines longer than 120 characters. In total, there are 81 long lines.

File# lines# units# long lines
fast_rcnn_R-50-C4_with_ss_proposals_trainval.yaml
in configs/benchmark_tasks/object_detection_frozen/voc0712
24 - 6
fast_rcnn_R-50-C4_with_ss_proposals_trainval.yaml
in configs/benchmark_tasks/object_detection_frozen/voc07
24 - 6
fast_rcnn_R-50-C4_with_ss_proposals_trainval.yaml
in configs/legacy_tasks/object_detection_full_finetune/voc0712
23 - 6
fast_rcnn_R-50-C4_with_ss_proposals_trainval.yaml
in configs/legacy_tasks/object_detection_full_finetune/voc07
23 - 6
e2e_faster_rcnn_R-50-C4_trainval.yaml
in configs/benchmark_tasks/object_detection_frozen/voc0712
25 - 4
e2e_faster_rcnn_R-50-C4_trainval.yaml
in configs/benchmark_tasks/object_detection_frozen/voc07
25 - 4
e2e_faster_rcnn_R-50-C4_trainval.yaml
in configs/legacy_tasks/object_detection_full_finetune/voc0712
24 - 4
e2e_faster_rcnn_R-50-C4_trainval.yaml
in configs/legacy_tasks/object_detection_full_finetune/voc07
24 - 4
resnet50_colorization_finetune_linear.yaml
in configs/benchmark_tasks/image_classification/places205
47 - 3
alexnet_colorization_finetune_linear.yaml
in configs/benchmark_tasks/image_classification/places205
46 - 3
resnet50_colorization_extract_features.yaml
in configs/benchmark_tasks/image_classification/voc07
34 - 3
alexnet_colorization_extract_features.yaml
in configs/benchmark_tasks/image_classification/voc07
30 - 3
resnet50_colorization_voc07_finetune_full.yaml
in configs/legacy_tasks/voc07_full_finetune
47 - 3
alexnet_colorization_voc07_finetune_full.yaml
in configs/legacy_tasks/voc07_full_finetune
47 - 3
resnet50_colorization_finetune_linear.yaml
in configs/legacy_tasks/imagenet_linear_tune
47 - 3
alexnet_colorization_finetune_linear.yaml
in configs/legacy_tasks/imagenet_linear_tune
45 - 3
resnet50_colorization_low_shot_extract_features.yaml
in configs/benchmark_tasks/low_shot_image_classification/places205
32 - 2
resnet50_jigsaw_low_shot_extract_features.yaml
in configs/benchmark_tasks/low_shot_image_classification/places205
30 - 2
resnet50_colorization_low_shot_extract_features.yaml
in configs/benchmark_tasks/low_shot_image_classification/voc07
33 - 2
resnet50_jigsaw_low_shot_extract_features.yaml
in configs/benchmark_tasks/low_shot_image_classification/voc07
30 - 2