oil/architectures/img_classifiers/networkparts.py
Function __init__
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def __init__(self, numClasses=10):
super().__init__()
self.numClasses = numClasses
self.activation = nn.LeakyReLU(0.1)
self.conv1a = nn.Conv2d(3, 96, 3, padding=1)
Function __init__
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def __init__(self, num_targets=10):
super().__init__()
self.numClasses = num_targets
self.activation = nn.LeakyReLU(0.1)
self.conv1a = weight_norm(nn.Conv2d(3, 128, 3, padding=1))
Function __init__
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def __init__(self, numClasses=10):
super().__init__()
self.numClasses = numClasses
self.activation = nn.LeakyReLU(0.1)
self.conv1a = weight_norm(nn.Conv2d(3, 96, 3, padding=1))