facebookresearch / nonrigid_nerf
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 58 units with 2,677 lines of code in units (74.9% of code).
    • 2 very complex units (881 lines of code)
    • 2 complex units (467 lines of code)
    • 4 medium complex units (287 lines of code)
    • 6 simple units (206 lines of code)
    • 44 very simple units (836 lines of code)
32% | 17% | 10% | 7% | 31%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
py32% | 17% | 10% | 7% | 31%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ROOT32% | 17% | 10% | 7% | 31%
llff_preprocessing0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
498 92 1
def free_viewpoint_rendering()
in free_viewpoint_rendering.py
383 63 1
def _setup_nonrigid_nerf_network()
in free_viewpoint_rendering.py
334 48 2
133 30 3
def __init__()
in run_nerf_helpers.py
100 22 5
def forward()
in run_nerf_helpers.py
65 18 3
81 15 1
41 12 2
38 10 2
def backup()
in train.py
36 8 1
def undistort()
in preprocess.py
54 7 1
34 7 2
def batchify()
in train.py
25 7 3
def preprocess()
in preprocess.py
19 6 1
def create_embedding_fn()
in run_nerf_helpers.py
19 5 1
58 5 1
41 5 6
43 4 1
def sample_pdf()
in run_nerf_helpers.py
35 4 5
def _ray_mesh()
in run_nerf_helpers.py
44 4 1