huggingface / segment-anything-2
Unit Size

The distribution of size of units (measured in lines of code).

Intro
Learn more...
Unit Size Overall
2% | 9% | 27% | 23% | 36%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py2% | 9% | 27% | 23% | 36%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
training3% | 12% | 23% | 26% | 33%
sam20% | 4% | 32% | 21% | 41%
coreml0% | 38% | 0% | 10% | 50%
sav_dataset0% | 0% | 54% | 20% | 25%
ROOT0% | 0% | 54% | 0% | 45%
Alternative Visuals
Longest Units
Top 50 longest units
Unit# linesMcCabe index# params
105 19 1
98 20 2
89 25 4
84 22 3
81 17 5
57 1 0
51 5 1
50 15 4
48 15 2
45 25 2
42 6 1
41 10 4
41 12 3
39 8 4
37 10 6
37 24 15
37 8 3
36 14 3
34 11 1
33 8 2
33 8 3
32 13 3
32 9 2
32 9 3
32 5 3
31 3 2
30 7 4
29 11 4
29 2 3
28 8 3
28 6 2
27 6 1
27 5 3
26 5 1
26 2 3
25 12 14
25 9 2
24 5 2
24 5 3
24 6 2
24 1 8
24 4 4
24 9 0
24 5 4
23 4 0
23 14 3
23 6 2
22 7 2
22 9 3
21 5 3