rlaphoenix / VSGAN

Function with cyclomatic complexity higher than threshold PY-R1000
Anti-pattern
Minor
8 months ago8 months old
SwinIR.__init__ has a cyclomatic complexity of 36 with "very-high" risk
  13
  14
  15class SwinIR(nn.Module):
  16    def __init__(  17        self,
  18        state: STATE_T,
  19        img_size: Union[int, tuple[int, ...]] = 64,
HAT.__init__ has a cyclomatic complexity of 30 with "very-high" risk
  14
  15
  16class HAT(nn.Module):
  17    def __init__(  18        self,
  19        state: STATE_T,
  20        img_size: Union[int, tuple[int, int]] = 64,