mirror of
https://github.com/prise6/smart-iss-posts
synced 2024-04-27 03:21:51 +02:00
config activation
This commit is contained in:
parent
a6969908fd
commit
809c271a74
|
@ -15,6 +15,7 @@ class SimpleAutoEncoder(AbstractModel):
|
||||||
|
|
||||||
super().__init__(save_directory, model_name)
|
super().__init__(save_directory, model_name)
|
||||||
|
|
||||||
|
self.activation = config['activation']
|
||||||
self.input_shape = (config['input_height'], config['input_width'], config['input_channel'])
|
self.input_shape = (config['input_height'], config['input_width'], config['input_channel'])
|
||||||
self.lr = config['learning_rate']
|
self.lr = config['learning_rate']
|
||||||
self.build_model()
|
self.build_model()
|
||||||
|
@ -39,7 +40,7 @@ class SimpleAutoEncoder(AbstractModel):
|
||||||
# x = Conv2D(1, (3, 3), activation = 'relu', padding = 'same', name = 'dec_conv_1')(encoded)
|
# x = Conv2D(1, (3, 3), activation = 'relu', padding = 'same', name = 'dec_conv_1')(encoded)
|
||||||
# x = UpSampling2D((2, 2))(x)
|
# x = UpSampling2D((2, 2))(x)
|
||||||
# x = Flatten()(x)
|
# x = Flatten()(x)
|
||||||
x = Dense(np.prod(input_shape), activation = 'softmax')(layer_5)
|
x = Dense(np.prod(input_shape), activation = self.activation)(layer_5)
|
||||||
decoded = Reshape((input_shape))(x)
|
decoded = Reshape((input_shape))(x)
|
||||||
|
|
||||||
self.model = Model(picture, decoded)
|
self.model = Model(picture, decoded)
|
||||||
|
|
Loading…
Reference in a new issue