facebookresearch / MaskFormer
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 73 files with 7,357 lines of code.
    • 0 very long files (0 lines of code)
    • 3 long files (2,436 lines of code)
    • 8 medium size files (2,416 lines of codeclsfd_ftr_w_mp_ins)
    • 7 small files (951 lines of code)
    • 55 very small files (1,554 lines of code)
0% | 33% | 32% | 12% | 21%
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% | 38% | 38% | 15% | 8%
yaml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
datasets0% | 66% | 30% | 0% | 3%
mask_former/data0% | 41% | 44% | 14% | <1%
mask_former/modeling0% | 30% | 32% | 18% | 18%
ROOT0% | 0% | 100% | 0% | 0%
mask_former0% | 0% | 76% | 0% | 23%
tools0% | 0% | 0% | 90% | 9%
configs/ade20k-1500% | 0% | 0% | 0% | 100%
configs/coco-panoptic0% | 0% | 0% | 0% | 100%
configs/coco-stuff-10k-1710% | 0% | 0% | 0% | 100%
configs/ade20k-full-8470% | 0% | 0% | 0% | 100%
configs/cityscapes-190% | 0% | 0% | 0% | 100%
configs/mapillary-vistas-650% | 0% | 0% | 0% | 100%
mask_former/utils0% | 0% | 0% | 0% | 100%
configs/ade20k-150-panoptic0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
prepare_ade20k_full_sem_seg.py
in datasets
982 1
register_ade20k_full.py
in mask_former/data/datasets
949 2
swin.py
in mask_former/modeling/backbone
505 23
register_mapillary_vistas.py
in mask_former/data/datasets
496 2
prepare_ade20k_pan_seg.py
in datasets
446 -
register_ade20k_panoptic.py
in mask_former/data/datasets
313 4
transformer.py
in mask_former/modeling/transformer
311 19
pixel_decoder.py
in mask_former/modeling/heads
227 12
train_net.py
in root
212 7
register_coco_stuff_10k.py
in mask_former/data/datasets
208 2
mask_former_model.py
in mask_former
203 7
evaluate_pq_for_semantic_segmentation.py
in tools
182 3
per_pixel_baseline.py
in mask_former/modeling/heads
181 11
analyze_model.py
in tools
140 5
mask_former_semantic_dataset_mapper.py
in mask_former/data/dataset_mappers
120 3
transformer_predictor.py
in mask_former/modeling/transformer
116 6
detr_panoptic_dataset_mapper.py
in mask_former/data/dataset_mappers
110 4
mask_former_panoptic_dataset_mapper.py
in mask_former/data/dataset_mappers
102 2
criterion.py
in mask_former/modeling
98 9
mask_former_head.py
in mask_former/modeling/heads
89 5
matcher.py
in mask_former/modeling
76 6
misc.py
in mask_former/utils
72 8
Base-COCOStuff10K-171.yaml
in configs/coco-stuff-10k-171
58 -
Base-Cityscapes-19.yaml
in configs/cityscapes-19
58 -
Base-ADE20K-150.yaml
in configs/ade20k-150
58 -
Base-MapillaryVistas-65.yaml
in configs/mapillary-vistas-65
53 -
Base-ADE20KFull-847.yaml
in configs/ade20k-full-847
53 -
config.py
in mask_former
49 1
Base-COCO-PanopticSegmentation.yaml
in configs/coco-panoptic
46 -
maskformer_swin_large_IN21k_384_bs16_160k_res640.yaml
in configs/ade20k-150/swin
45 -
maskformer_swin_base_IN21k_384_bs16_160k_res640.yaml
in configs/ade20k-150/swin
45 -
maskformer_panoptic_swin_large_IN21k_384_bs64_554k.yaml
in configs/coco-panoptic/swin
41 -
position_encoding.py
in mask_former/modeling/transformer
36 2
maskformer_R101_bs16_90k.yaml
in configs/cityscapes-19
35 -
maskformer_panoptic_R50_bs64_554k.yaml
in configs/coco-panoptic
34 -
maskformer_panoptic_swin_base_IN21k_384_bs64_554k.yaml
in configs/coco-panoptic/swin
33 -
maskformer_panoptic_R50_bs16_720k.yaml
in configs/ade20k-150-panoptic
33 -
prepare_coco_stuff_10k_v1.0_sem_seg.py
in datasets
32 -
maskformer_panoptic_swin_tiny_bs64_554k.yaml
in configs/coco-panoptic/swin
32 -
maskformer_panoptic_swin_small_bs64_554k.yaml
in configs/coco-panoptic/swin
32 -
maskformer_R50_bs32_60k.yaml
in configs/coco-stuff-10k-171
27 -
maskformer_R50_bs16_160k.yaml
in configs/ade20k-150
27 -
maskformer_R50_bs16_300k.yaml
in configs/mapillary-vistas-65
27 -
maskformer_R50_bs16_200k.yaml
in configs/ade20k-full-847
27 -
convert-torchvision-to-d2.py
in tools
24 -
per_pixel_baseline_plus_R50_bs32_60k.yaml
in configs/coco-stuff-10k-171
24 -
per_pixel_baseline_plus_R50_bs16_160k.yaml
in configs/ade20k-150
24 -
per_pixel_baseline_plus_R50_bs16_200k.yaml
in configs/ade20k-full-847
24 -
maskformer_swin_tiny_bs16_160k.yaml
in configs/ade20k-150/swin
23 -
maskformer_swin_small_bs16_160k.yaml
in configs/ade20k-150/swin
23 -
Files With Most Units (Top 20)
File# lines# units
swin.py
in mask_former/modeling/backbone
505 23
transformer.py
in mask_former/modeling/transformer
311 19
pixel_decoder.py
in mask_former/modeling/heads
227 12
per_pixel_baseline.py
in mask_former/modeling/heads
181 11
criterion.py
in mask_former/modeling
98 9
misc.py
in mask_former/utils
72 8
train_net.py
in root
212 7
mask_former_model.py
in mask_former
203 7
matcher.py
in mask_former/modeling
76 6
transformer_predictor.py
in mask_former/modeling/transformer
116 6
analyze_model.py
in tools
140 5
mask_former_head.py
in mask_former/modeling/heads
89 5
detr_panoptic_dataset_mapper.py
in mask_former/data/dataset_mappers
110 4
register_ade20k_panoptic.py
in mask_former/data/datasets
313 4
evaluate_pq_for_semantic_segmentation.py
in tools
182 3
mask_former_semantic_dataset_mapper.py
in mask_former/data/dataset_mappers
120 3
position_encoding.py
in mask_former/modeling/transformer
36 2
mask_former_panoptic_dataset_mapper.py
in mask_former/data/dataset_mappers
102 2
register_ade20k_full.py
in mask_former/data/datasets
949 2
register_mapillary_vistas.py
in mask_former/data/datasets
496 2
Files With Long Lines (Top 3)

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

File# lines# units# long lines
evaluate_pq_for_semantic_segmentation.py
in tools
182 3 4
prepare_ade20k_full_sem_seg.py
in datasets
982 1 2
register_ade20k_full.py
in mask_former/data/datasets
949 2 2