commit all
This commit is contained in:
@@ -49,7 +49,7 @@ class Pyramid(tf.keras.Model):
|
||||
load_model(self.upscale_enhancer, config['pyramid']['final_upscale_enhancer'])
|
||||
self.upscale_enhancer.trainable = False
|
||||
|
||||
def enhance(self, low, mask, training=None):
|
||||
def enhance(self, low, mask, training):
|
||||
x = self.upscale_enhancer([low, mask], training=training)
|
||||
return x
|
||||
|
||||
@@ -63,7 +63,7 @@ class Pyramid(tf.keras.Model):
|
||||
|
||||
return z_cond
|
||||
|
||||
def call(self, inputs, training=None):
|
||||
def call(self, inputs, training):
|
||||
levels_input, conds = inputs
|
||||
uv_static, uv_body, uv_curv = conds[0], conds[1], conds[2]
|
||||
z_cond = self.encode_conds(uv_static, uv_body, uv_curv)
|
||||
@@ -136,7 +136,7 @@ class Pyramid(tf.keras.Model):
|
||||
# load_model(self.upscale_enhancer, config['pyramid']['final_upscale_enhancer'])
|
||||
# self.upscale_enhancer.trainable = False
|
||||
|
||||
# def enhance(self, low, mask, training=None):
|
||||
# def enhance(self, low, mask, training):
|
||||
# x = self.upscale_enhancer([low, mask], training=training)
|
||||
# return x
|
||||
|
||||
@@ -150,7 +150,7 @@ class Pyramid(tf.keras.Model):
|
||||
|
||||
# return z_cond
|
||||
|
||||
# def call(self, inputs, training=None):
|
||||
# def call(self, inputs, training):
|
||||
# levels_input, conds = inputs
|
||||
# uv_static, uv_body, uv_curv = conds[0], conds[1], conds[2]
|
||||
# z_cond = self.encode_conds(uv_static, uv_body, uv_curv)
|
||||
|
||||
Reference in New Issue
Block a user