tensorflow / tfjs-models
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 516 files with 32,345 lines of code.
    • 2 very long files (2,187 lines of code)
    • 3 long files (1,943 lines of code)
    • 19 medium size files (6,593 lines of codeclsfd_ftr_w_mp_ins)
    • 49 small files (6,475 lines of code)
    • 443 very small files (15,147 lines of code)
6% | 6% | 20% | 20% | 46%
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
ts7% | 6% | 21% | 20% | 43%
js0% | 0% | 0% | 9% | 90%
yml0% | 0% | 0% | 15% | 84%
scss0% | 0% | 0% | 0% | 100%
html0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
speech-commands36% | 20% | 6% | 21% | 15%
mobilenet78% | 0% | 0% | 14% | 7%
body-segmentation0% | 12% | 21% | 18% | 47%
body-pix0% | 26% | 27% | 13% | 33%
pose-detection0% | 0% | 25% | 24% | 49%
hand-pose-detection0% | 0% | 22% | 21% | 56%
posenet0% | 0% | 39% | 17% | 42%
face-landmarks-detection0% | 0% | 18% | 16% | 65%
shared0% | 0% | 21% | 19% | 59%
qna0% | 0% | 80% | 0% | 19%
coco-ssd0% | 0% | 56% | 38% | 5%
blazeface0% | 0% | 68% | 0% | 31%
handpose0% | 0% | 0% | 63% | 36%
deeplab0% | 0% | 0% | 53% | 46%
knn-classifier0% | 0% | 0% | 57% | 42%
ROOT0% | 0% | 0% | 67% | 32%
tasks0% | 0% | 0% | 6% | 93%
model-playground0% | 0% | 0% | 0% | 100%
universal-sentence-encoder0% | 0% | 0% | 0% | 100%
toxicity0% | 0% | 0% | 0% | 100%
scripts0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
browser_fft_recognizer.ts
in speech-commands/src
1164 28
imagenet_classes.ts
in mobilenet/src
1023 -
body_pix_model.ts
in body-segmentation/src/body_pix/impl
649 16
body_pix_model.ts
in body-pix/src
649 16
dataset.ts
in speech-commands/src
645 10
detector.ts
in pose-detection/src/blazepose_tfjs
469 17
render_util.ts
in body-segmentation/src/shared/calculators
458 26
render_util.ts
in shared/calculators
458 26
render_util.ts
in pose-detection/src/shared/calculators
458 26
render_util.ts
in face-landmarks-detection/src/shared/calculators
458 26
render_util.ts
in hand-pose-detection/src/shared/calculators
458 26
classes.ts
in coco-ssd/src
407 -
output_rendering_util.ts
in body-segmentation/src/body_pix/impl
389 21
detector.ts
in pose-detection/src/movenet
389 9
output_rendering_util.ts
in body-pix/src
389 21
face.ts
in blazeface/src
331 7
util.ts
in body-segmentation/src/body_pix/impl
284 19
util.ts
in body-pix/src
284 19
question_and_answer.ts
in qna/src
254 5
posenet_model.ts
in posenet/src
254 11
detector.ts
in hand-pose-detection/src/tfjs
230 8
util.ts
in posenet/src
210 19
browser_fft_extractor.ts
in speech-commands/src
209 8
bert_tokenizer.ts
in qna/src
204 9
decode_multiple_poses_util.ts
in pose-detection/src/posenet/calculators
198 14
pipeline.ts
in handpose/src
197 5
audio_utils.ts
in speech-commands/training/soft-fft/utils
184 5
index.ts
in mobilenet/src
184 2
index.ts
in knn-classifier/src
181 7
config.ts
in deeplab/src
172 -
tensors_to_detections.ts
in body-segmentation/src/shared/calculators
167 4
tensors_to_detections.ts
in shared/calculators
167 4
tensors_to_detections.ts
in pose-detection/src/shared/calculators
167 4
tensors_to_detections.ts
in face-landmarks-detection/src/shared/calculators
167 4
tensors_to_detections.ts
in hand-pose-detection/src/shared/calculators
167 4
audio_model.ts
in speech-commands/training/soft-fft
149 8
crop_utils.ts
in pose-detection/src/movenet
147 3
index.ts
in coco-ssd/src
147 9
constants.ts
in pose-detection/src/blazepose_tfjs
146 -
detector.ts
in pose-detection/src/blazepose_mediapipe
139 11
rollup.config.js
in coco-ssd
128 1
image_utils.ts
in body-segmentation/src/shared/calculators
127 8
image_utils.ts
in shared/calculators
127 8
image_utils.ts
in pose-detection/src/shared/calculators
127 8
image_utils.ts
in face-landmarks-detection/src/shared/calculators
127 8
image_utils.ts
in hand-pose-detection/src/shared/calculators
127 8
types.ts
in speech-commands/src
125 -
cloudbuild.yml
in root
123 -
hand.ts
in handpose/src
121 4
config_interfaces.ts
in body-segmentation/src/shared/calculators/interfaces
118 -
Files With Most Units (Top 20)
File# lines# units
browser_fft_recognizer.ts
in speech-commands/src
1164 28
render_util.ts
in body-segmentation/src/shared/calculators
458 26
render_util.ts
in shared/calculators
458 26
render_util.ts
in pose-detection/src/shared/calculators
458 26
render_util.ts
in face-landmarks-detection/src/shared/calculators
458 26
render_util.ts
in hand-pose-detection/src/shared/calculators
458 26
output_rendering_util.ts
in body-segmentation/src/body_pix/impl
389 21
output_rendering_util.ts
in body-pix/src
389 21
util.ts
in body-segmentation/src/body_pix/impl
284 19
util.ts
in posenet/src
210 19
util.ts
in body-pix/src
284 19
detector.ts
in pose-detection/src/blazepose_tfjs
469 17
body_pix_model.ts
in body-segmentation/src/body_pix/impl
649 16
body_pix_model.ts
in body-pix/src
649 16
decode_multiple_poses_util.ts
in pose-detection/src/posenet/calculators
198 14
posenet_model.ts
in posenet/src
254 11
detector.ts
in pose-detection/src/blazepose_mediapipe
139 11
dataset.ts
in speech-commands/src
645 10
segmenter.ts
in body-segmentation/src/selfie_segmentation_mediapipe
105 10
segmenter.ts
in body-segmentation/src/body_pix
114 10
Files With Long Lines (Top 20)

There are 38 files with lines longer than 120 characters. In total, there are 44 long lines.

File# lines# units# long lines
index.ts
in speech-commands/src
43 1 2
index.ts
in body-segmentation/src
8 - 2
segmenter_utils.ts
in body-segmentation/src/selfie_segmentation_mediapipe
31 2 2
body_pix_model.ts
in body-segmentation/src/body_pix/impl
649 16 2
posenet_model.ts
in posenet/src
254 11 2
body_pix_model.ts
in body-pix/src
649 16 2
cloudbuild.yml
in model-playground
42 - 1
app.module.ts
in model-playground/src/app/app
58 - 1
dataset.ts
in speech-commands/src
645 10 1
browser_fft_recognizer.ts
in speech-commands/src
1164 28 1
cloudbuild.yml
in body-segmentation
42 - 1
constants.ts
in body-segmentation/src/selfie_segmentation_mediapipe
10 - 1
segmenter.ts
in body-segmentation/src/selfie_segmentation_mediapipe
105 10 1
index.ts
in body-segmentation/src/body_pix/impl
5 - 1
types.ts
in body-segmentation/src/body_pix
10 - 1
segmenter_utils.ts
in body-segmentation/src/selfie_segmentation_tfjs
43 2 1
types.ts
in body-segmentation/src/selfie_segmentation_tfjs
9 - 1
create_segmenter.ts
in body-segmentation/src
40 1 1
pipeline.ts
in handpose/src
197 5 1
util.ts
in posenet/src
210 19 1