facebookresearch / ic_gan
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 86 files with 20,258 lines of code.
    • 2 very long files (4,135 lines of code)
    • 7 long files (4,519 lines of code)
    • 25 medium size files (7,546 lines of codeclsfd_ftr_w_mp_ins)
    • 18 small files (2,601 lines of code)
    • 34 very small files (1,457 lines of code)
20% | 22% | 37% | 12% | 7%
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
py21% | 23% | 37% | 11% | 5%
cu0% | 0% | 68% | 31% | 0%
yml0% | 0% | 0% | 100% | 0%
m0% | 0% | 0% | 50% | 50%
cpp0% | 0% | 0% | 0% | 100%
jsonl0% | 0% | 0% | 0% | 100%
h0% | 0% | 0% | 0% | 100%
yaml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
BigGAN_PyTorch61% | 16% | 17% | 2% | 2%
stylegan2_ada_pytorch/training0% | 85% | 8% | 6% | <1%
stylegan2_ada_pytorch0% | 28% | 41% | 22% | 7%
data_utils0% | 21% | 55% | 16% | 7%
stylegan2_ada_pytorch/torch_utils0% | 0% | 57% | 25% | 17%
inference0% | 0% | 87% | 12% | 0%
BigGAN_PyTorch/TFHub0% | 0% | 100% | 0% | 0%
stylegan2_ada_pytorch/dnnlib0% | 0% | 99% | 0% | <1%
stylegan2_ada_pytorch/metrics0% | 0% | 39% | 36% | 23%
ROOT0% | 0% | 58% | 36% | 5%
BigGAN_PyTorch/sync_batchnorm0% | 0% | 0% | 42% | 57%
BigGAN_PyTorch/logs0% | 0% | 0% | 38% | 61%
Longest Files (Top 50)
File# lines# units
animal_hash.py
in BigGAN_PyTorch
2644 -
utils.py
in BigGAN_PyTorch
1491 40
networks.py
in stylegan2_ada_pytorch/training
938 27
augment.py
in stylegan2_ada_pytorch/training
680 12
train.py
in stylegan2_ada_pytorch
607 4
training_loop.py
in stylegan2_ada_pytorch/training
601 3
utils.py
in data_utils
584 22
BigGANdeep.py
in BigGAN_PyTorch
558 15
BigGAN.py
in BigGAN_PyTorch
551 11
converter.py
in BigGAN_PyTorch/TFHub
459 21
trainer.py
in BigGAN_PyTorch
438 2
layers.py
in BigGAN_PyTorch
437 32
datasets_common.py
in data_utils
431 24
dataset_tool.py
in stylegan2_ada_pytorch
352 19
biggan_v1.py
in BigGAN_PyTorch/TFHub
346 22
util.py
in stylegan2_ada_pytorch/dnnlib
329 28
cu
upfirdn2d.cu
in stylegan2_ada_pytorch/torch_utils/ops
326 -
metric_utils.py
in stylegan2_ada_pytorch/metrics
310 19
legacy.py
in stylegan2_ada_pytorch
307 7
inception_utils.py
in data_utils
298 13
make_hdf5.py
in data_utils
292 3
inception_tf13.py
in data_utils
288 3
generate_images.py
in inference
288 4
train_fns.py
in BigGAN_PyTorch
284 6
utils.py
in inference
282 4
upfirdn2d.py
in stylegan2_ada_pytorch/torch_utils/ops
260 11
test.py
in inference
258 2
predict.py
in root
251 10
misc.py
in stylegan2_ada_pytorch/torch_utils
233 13
parser.py
in stylegan2_ada_pytorch
228 1
bias_act.py
in stylegan2_ada_pytorch/torch_utils/ops
225 4
dataset.py
in stylegan2_ada_pytorch/training
215 27
conv2d_gradfix.py
in stylegan2_ada_pytorch/torch_utils/ops
207 11
calculate_inception_moments.py
in data_utils
202 3
projector.py
in stylegan2_ada_pytorch
197 3
cocostuff_dataset.py
in data_utils
184 10
calc_metrics.py
in stylegan2_ada_pytorch
172 3
metric_main.py
in stylegan2_ada_pytorch/metrics
169 17
loss.py
in stylegan2_ada_pytorch/training
160 5
environment.yml
in root
155 -
make_hdf5_nns.py
in data_utils
153 3
cu
bias_act.cu
in stylegan2_ada_pytorch/torch_utils/ops
152 -
make_hdf5.py
in BigGAN_PyTorch
151 3
conv2d_resample.py
in stylegan2_ada_pytorch/torch_utils/ops
142 3
training_stats.py
in stylegan2_ada_pytorch/torch_utils
133 13
persistence.py
in stylegan2_ada_pytorch/torch_utils
128 7
style_mixing.py
in stylegan2_ada_pytorch
124 2
batchnorm.py
in BigGAN_PyTorch/sync_batchnorm
122 10
perceptual_path_length.py
in stylegan2_ada_pytorch/metrics
120 4
store_kmeans_indexes.py
in data_utils
114 1
Files With Most Units (Top 20)
File# lines# units
utils.py
in BigGAN_PyTorch
1491 40
layers.py
in BigGAN_PyTorch
437 32
util.py
in stylegan2_ada_pytorch/dnnlib
329 28
dataset.py
in stylegan2_ada_pytorch/training
215 27
networks.py
in stylegan2_ada_pytorch/training
938 27
datasets_common.py
in data_utils
431 24
utils.py
in data_utils
584 22
biggan_v1.py
in BigGAN_PyTorch/TFHub
346 22
converter.py
in BigGAN_PyTorch/TFHub
459 21
metric_utils.py
in stylegan2_ada_pytorch/metrics
310 19
dataset_tool.py
in stylegan2_ada_pytorch
352 19
metric_main.py
in stylegan2_ada_pytorch/metrics
169 17
BigGANdeep.py
in BigGAN_PyTorch
558 15
inception_utils.py
in data_utils
298 13
misc.py
in stylegan2_ada_pytorch/torch_utils
233 13
training_stats.py
in stylegan2_ada_pytorch/torch_utils
133 13
augment.py
in stylegan2_ada_pytorch/training
680 12
BigGAN.py
in BigGAN_PyTorch
551 11
upfirdn2d.py
in stylegan2_ada_pytorch/torch_utils/ops
260 11
conv2d_gradfix.py
in stylegan2_ada_pytorch/torch_utils/ops
207 11
Files With Long Lines (Top 12)

There are 12 files with lines longer than 120 characters. In total, there are 98 long lines.

File# lines# units# long lines
jsonl
BigGAN_ch96_bs256x8.jsonl
in BigGAN_PyTorch/logs
68 - 68
cu
upfirdn2d.cu
in stylegan2_ada_pytorch/torch_utils/ops
326 - 6
bias_act.cpp
in stylegan2_ada_pytorch/torch_utils/ops
69 2 5
training_loop.py
in stylegan2_ada_pytorch/training
601 3 5
train.py
in stylegan2_ada_pytorch
607 4 5
process_training.m
in BigGAN_PyTorch/logs
112 7 2
metric_utils.py
in stylegan2_ada_pytorch/metrics
310 19 2
custom_ops.py
in stylegan2_ada_pytorch/torch_utils
92 2 1
upfirdn2d.cpp
in stylegan2_ada_pytorch/torch_utils/ops
74 1 1
grid_sample_gradfix.py
in stylegan2_ada_pytorch/torch_utils/ops
59 6 1
cu
bias_act.cu
in stylegan2_ada_pytorch/torch_utils/ops
152 - 1
upfirdn2d.py
in stylegan2_ada_pytorch/torch_utils/ops
260 11 1