aws-samples / amazon-sagemaker-cv
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 304 files with 22,755 lines of code.
    • 0 very long files (0 lines of code)
    • 3 long files (1,889 lines of code)
    • 20 medium size files (5,644 lines of codeclsfd_ftr_w_mp_ins)
    • 53 small files (7,694 lines of code)
    • 228 very small files (7,528 lines of code)
0% | 8% | 24% | 33% | 33%
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
cpp0% | 61% | 14% | 10% | 13%
py0% | 2% | 24% | 35% | 37%
cu0% | 18% | 40% | 35% | 5%
h0% | 0% | 0% | 25% | 74%
cuh0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
pytorch/cuda_utils/smcv_utils0% | 27% | 26% | 26% | 18%
tensorflow/sagemakercv/detection0% | 36% | 0% | 39% | 24%
pytorch/sagemakercv/detection0% | 0% | 43% | 22% | 34%
tensorflow/sagemakercv/data0% | 0% | 64% | 27% | 7%
pytorch/sagemakercv/data0% | 0% | 44% | 33% | 22%
tensorflow/sagemakercv/core0% | 0% | 26% | 45% | 27%
tensorflow/sagemakercv/training0% | 0% | 24% | 44% | 31%
pytorch/sagemakercv/core0% | 0% | 22% | 44% | 32%
pytorch/sagemakercv/layers0% | 0% | 15% | 31% | 52%
pytorch/sagemakercv/utils0% | 0% | 0% | 34% | 65%
tensorflow/sagemakercv/utils0% | 0% | 0% | 36% | 63%
pytorch/sagemakercv/training0% | 0% | 0% | 48% | 51%
pytorch/configs0% | 0% | 0% | 99% | <1%
tensorflow/configs0% | 0% | 0% | 99% | <1%
pytorch0% | 0% | 0% | 47% | 52%
pytorch/sagemakercv/inference0% | 0% | 0% | 0% | 100%
tensorflow/sagemakercv/layers0% | 0% | 0% | 0% | 100%
tensorflow0% | 0% | 0% | 0% | 100%
pytorch/cuda_utils0% | 0% | 0% | 0% | 100%
tensorflow/sagemakercv0% | 0% | 0% | 0% | 100%
pytorch/sagemakercv0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
conv.cpp
in pytorch/cuda_utils/smcv_utils/cuda/nhwc
859 46
resnet.py
in tensorflow/sagemakercv/detection/backbones
521 16
ROIAlign_cuda.cu
in pytorch/cuda_utils/smcv_utils/cuda
509 -
generate_mask_targets.cu
in pytorch/cuda_utils/smcv_utils/cuda
425 -
box_utils.py
in tensorflow/sagemakercv/core
392 19
coco_eval.py
in pytorch/sagemakercv/data/datasets/evaluation/coco
350 13
resnet.py
in pytorch/sagemakercv/detection/backbone
349 14
dataloader.py
in tensorflow/sagemakercv/data/coco
347 3
coco.py
in pytorch/sagemakercv/data/datasets
337 36
loss.py
in pytorch/sagemakercv/detection/roi_heads/box_head
306 10
inference.py
in pytorch/sagemakercv/detection/rpn
305 9
losses.py
in tensorflow/sagemakercv/training/losses
278 10
UpSampleNearest2d.cu
in pytorch/cuda_utils/smcv_utils/cuda/nhwc
268 -
coco_metric.py
in tensorflow/sagemakercv/data/coco
258 9
dataloader_utils.py
in tensorflow/sagemakercv/data/coco
257 10
roi_ops.py
in tensorflow/sagemakercv/core
242 6
anchor_generator.py
in pytorch/sagemakercv/detection/rpn
234 19
rpn_generate_proposals_batched.cu
in pytorch/cuda_utils/smcv_utils/cuda
233 -
create_coco_tf_record.py
in tensorflow/sagemakercv/data/coco
223 6
bounding_box.py
in pytorch/sagemakercv/core/structures
216 19
conv.py
in pytorch/sagemakercv/layers/nhwc
212 9
ROIAlign_cpu.cpp
in pytorch/cuda_utils/smcv_utils/cpu
208 3
rpn_generate_proposals.cu
in pytorch/cuda_utils/smcv_utils/cuda
204 -
frcnn_losses.py
in tensorflow/sagemakercv/training/losses
200 7
coco_labels.py
in tensorflow/sagemakercv/data/coco
185 -
training_ops.py
in tensorflow/sagemakercv/core
184 9
spatial_transform_ops.py
in tensorflow/sagemakercv/core
184 5
postprocess_ops.py
in tensorflow/sagemakercv/core
181 5
runner.py
in tensorflow/sagemakercv/utils/runner
181 24
logging_formatter.py
in tensorflow/sagemakercv/utils
181 17
Descriptors.h
in pytorch/cuda_utils/smcv_utils/cuda/nhwc
180 13
ROIPool_cuda.cu
in pytorch/cuda_utils/smcv_utils/cuda
175 -
novograd.py
in tensorflow/sagemakercv/training/optimizers
175 9
standard_roi_head.py
in tensorflow/sagemakercv/detection/roi_heads
174 5
iou_loss.py
in pytorch/sagemakercv/layers
172 9
config.py
in pytorch/configs
170 -
visualize.py
in pytorch/sagemakercv/utils
167 16
nms_batched.cu
in pytorch/cuda_utils/smcv_utils/cuda
166 -
build.py
in pytorch/sagemakercv/data
165 11
match_proposals.cu
in pytorch/cuda_utils/smcv_utils/cuda
162 -
evaluation.py
in tensorflow/sagemakercv/utils/runner/hooks
161 11
cascade_roi_head.py
in tensorflow/sagemakercv/detection/roi_heads
160 4
preprocessor.py
in tensorflow/sagemakercv/core
160 11
mlperf_fp16_optimizer.py
in pytorch/sagemakercv/training/optimizers
158 11
runner.py
in pytorch/sagemakercv/utils/runner
158 17
segmentation_mask.py
in pytorch/sagemakercv/core/structures
155 19
SigmoidFocalLoss_cuda.cu
in pytorch/cuda_utils/smcv_utils/cuda
150 -
checkpoint.py
in pytorch/sagemakercv/utils
148 13
Descriptors.cpp
in pytorch/cuda_utils/smcv_utils/cuda/nhwc
148 9
evaluation.py
in tensorflow/sagemakercv/data/coco
148 6
Files With Most Units (Top 20)
File# lines# units
conv.cpp
in pytorch/cuda_utils/smcv_utils/cuda/nhwc
859 46
coco.py
in pytorch/sagemakercv/data/datasets
337 36
runner.py
in tensorflow/sagemakercv/utils/runner
181 24
anchor_generator.py
in pytorch/sagemakercv/detection/rpn
234 19
bounding_box.py
in pytorch/sagemakercv/core/structures
216 19
segmentation_mask.py
in pytorch/sagemakercv/core/structures
155 19
box_utils.py
in tensorflow/sagemakercv/core
392 19
hook.py
in pytorch/sagemakercv/utils/runner/hooks
37 18
hook.py
in tensorflow/sagemakercv/utils/runner/hooks
37 18
runner.py
in pytorch/sagemakercv/utils/runner
158 17
matcher.py
in tensorflow/sagemakercv/core
53 17
logging_formatter.py
in tensorflow/sagemakercv/utils
181 17
visualize.py
in pytorch/sagemakercv/utils
167 16
resnet.py
in tensorflow/sagemakercv/detection/backbones
521 16
weight_decay_optimizer.py
in tensorflow/sagemakercv/training/optimizers
143 15
resnet.py
in pytorch/sagemakercv/detection/backbone
349 14
box_list.py
in tensorflow/sagemakercv/core
58 14
async_evaluator.py
in pytorch/sagemakercv/utils
53 13
checkpoint.py
in pytorch/sagemakercv/utils
148 13
coco_eval.py
in pytorch/sagemakercv/data/datasets/evaluation/coco
350 13
Files With Long Lines (Top 20)

There are 32 files with lines longer than 120 characters. In total, there are 105 long lines.

File# lines# units# long lines
conv.cpp
in pytorch/cuda_utils/smcv_utils/cuda/nhwc
859 46 19
conv.py
in pytorch/sagemakercv/layers/nhwc
212 9 8
setup.py
in pytorch
38 - 8
nhwc.cpp
in pytorch/cuda_utils/smcv_utils/cuda
17 - 8
ROIAlign_cuda.cu
in pytorch/cuda_utils/smcv_utils/cuda
509 - 8
inference.py
in pytorch/sagemakercv/detection/rpn
305 9 6
visualize.py
in pytorch/sagemakercv/utils
167 16 4
nms_batched.cu
in pytorch/cuda_utils/smcv_utils/cuda
166 - 4
resnet.py
in tensorflow/sagemakercv/detection/backbones
521 16 4
transforms.py
in pytorch/sagemakercv/data/transforms
105 13 3
nhwc.h
in pytorch/cuda_utils/smcv_utils/cuda
56 - 3
rpn.py
in pytorch/sagemakercv/detection/rpn
94 8 2
loss.py
in pytorch/sagemakercv/detection/roi_heads/box_head
306 10 2
matcher.py
in pytorch/sagemakercv/core
46 3 2
image_list.py
in pytorch/sagemakercv/core/structures
65 4 2
c2_model_loading.py
in pytorch/sagemakercv/utils
120 6 2
generate_mask_targets.cu
in pytorch/cuda_utils/smcv_utils/cuda
425 - 2
rpn_generate_proposals_batched.cu
in pytorch/cuda_utils/smcv_utils/cuda
233 - 2
losses.py
in tensorflow/sagemakercv/training/losses
278 10 2
setup.py
in tensorflow
24 - 2