Improved classification performance
This commit is contained in:
@@ -143,6 +143,15 @@ def addBlock(
|
||||
model.add(layers.Dropout(0.4))
|
||||
return model
|
||||
|
||||
def resblock(x, kernelsize = 3, filters = 128):
|
||||
fx = layers.Conv2D(filters, kernelsize, activation='relu', padding='same')(x)
|
||||
fx = layers.BatchNormalization()(fx)
|
||||
fx = layers.Conv2D(filters, kernelsize, padding='same')(fx)
|
||||
out = layers.Add()([x,fx])
|
||||
out = layers.ReLU()(out)
|
||||
out = layers.BatchNormalization()(out)
|
||||
return out
|
||||
|
||||
|
||||
{{ if .LoadPrev }}
|
||||
model = tf.keras.saving.load_model('{{.LastModelRunPath}}')
|
||||
|
||||
Reference in New Issue
Block a user