SAEHD:optimized architecture, you have to restart training
This commit is contained in:
@@ -198,8 +198,6 @@ class SAEHDModel(ModelBase):
|
|||||||
if dims % 2 != 0:
|
if dims % 2 != 0:
|
||||||
dims += 1
|
dims += 1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def func(x):
|
def func(x):
|
||||||
|
|
||||||
for i in [8,4,2]:
|
for i in [8,4,2]:
|
||||||
@@ -213,7 +211,7 @@ class SAEHDModel(ModelBase):
|
|||||||
x = Add()([x, x0])
|
x = Add()([x, x0])
|
||||||
x = LeakyReLU(0.2)(x)
|
x = LeakyReLU(0.2)(x)
|
||||||
|
|
||||||
return Conv2D(output_nc, kernel_size=5, padding='same', activation='sigmoid')(x)
|
return Conv2D(output_nc, kernel_size=1, padding='same', activation='sigmoid')(x)
|
||||||
|
|
||||||
return func
|
return func
|
||||||
|
|
||||||
@@ -327,7 +325,7 @@ class SAEHDModel(ModelBase):
|
|||||||
x = Add()([x, x0])
|
x = Add()([x, x0])
|
||||||
x = LeakyReLU(0.2)(x)
|
x = LeakyReLU(0.2)(x)
|
||||||
|
|
||||||
return Conv2D(output_nc, kernel_size=5, padding='same', activation='sigmoid')(x)
|
return Conv2D(output_nc, kernel_size=1, padding='same', activation='sigmoid')(x)
|
||||||
|
|
||||||
return func
|
return func
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user