def get_conv_decoder(self, z, reuse=None): """ Build encoder for iconic images. """ is_training = self.is_training with tf.variable_scope('model', reuse=reuse): y_recon = conv_decoder(z, is_training=is_training, reuse=reuse) return y_recon
def get_conv_decoder(self, z, y=None, reuse=None): """ Build decoder for iconic image. """ is_training = self.is_training if y is not None: z = tf.concat([z, y], 1) with tf.variable_scope('model', reuse=reuse): y_recon = conv_decoder(z, is_training=is_training, reuse=reuse) return y_recon