-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wide-resnet network structure is not standard or exits errors. #4
Comments
@gogo03 |
@gogo03 The changes in models.py are as follows. # Before
def _create_normal_residual_block(inputs, ch, N):
# adujust channels
x = layers.Conv2D(ch, 3, padding="same")(inputs)
x = layers.BatchNormalization()(x)
x = layers.Activation("relu")(x)
# Conv with skip connections
for i in range(N-1):
skip = x
x = layers.Conv2D(ch, 3, padding="same")(x)
x = layers.BatchNormalization()(x)
x = layers.Activation("relu")(x)
x = layers.Conv2D(ch, 3, padding="same")(x)
x = layers.BatchNormalization()(x)
x = layers.Activation("relu")(x)
x = layers.Add()([x, skip])
return x
# After
def _create_normal_residual_block(inputs, ch, N):
# Conv with skip connections
x = inputs
for i in range(N):
# adjust channels
if i == 0:
skip = layers.Conv2D(ch, 1)(x)
skip = layers.BatchNormalization()(skip)
skip = layers.Activation("relu")(skip)
else:
skip = x
x = layers.Conv2D(ch, 3, padding="same")(x)
x = layers.BatchNormalization()(x)
x = layers.Activation("relu")(x)
x = layers.Conv2D(ch, 3, padding="same")(x)
x = layers.BatchNormalization()(x)
x = layers.Activation("relu")(x)
x = layers.Add()([x, skip]) Before correction, the first Conv-BN-ReLU of res block was one less. This has been fixed. The overall conclusion has not changed. |
excellent work! thank you, I have test Cutout using Pytorch and wide-resnet without OctConv,also don't use cutout method.the accuracy of Cifar100 is about 81.5%。 here is the website: Could you test OctConv in keras using octconv on the dataset of Cifar100? |
@gogo03 |
I have tried pytorch version wide-resnet, N=4,ch=10,It has 28 Conv2Ds,
but yours only have 20 Conv2Ds.
and the accuarcy of cifar100 is only up to about 75%.
The text was updated successfully, but these errors were encountered: