_
This commit is contained in:
1 parent
b1990d421a
commit
d301a4799f
1 file changed
+2
-2
@@ -296,8 +296,8 @@ class AMPModel(ModelBase):
|
|||||||
|
|
||||||
self.G_weights = self.encoder.get_weights() + self.decoder.get_weights()
|
self.G_weights = self.encoder.get_weights() + self.decoder.get_weights()
|
||||||
|
|
||||||
if random_warp:
|
#if random_warp:
|
||||||
self.G_weights += self.inter_src.get_weights() + self.inter_dst.get_weights()
|
# self.G_weights += self.inter_src.get_weights() + self.inter_dst.get_weights()
|
||||||
|
|
||||||
self.src_dst_opt = nn.AdaBelief(lr=5e-5, lr_dropout=lr_dropout, clipnorm=clipnorm, name='src_dst_opt')
|
self.src_dst_opt = nn.AdaBelief(lr=5e-5, lr_dropout=lr_dropout, clipnorm=clipnorm, name='src_dst_opt')
|
||||||
self.src_dst_opt.initialize_variables (self.G_weights, vars_on_cpu=optimizer_vars_on_cpu)
|
self.src_dst_opt.initialize_variables (self.G_weights, vars_on_cpu=optimizer_vars_on_cpu)
|
||||||
|
|||||||
Reference in new issue
Block a user