Open Lana2548 opened 3 years ago
Hi, I am using the code from tensorflow_2 directory I have the same problem:
ValueError Traceback (most recent call last)
I encountered the same problem, and I solved it by setting self.built = True
after initializing VAEModel.
class VAEModel(Model):
def __init__(self, encoder, decoder, r_loss_factor, **kwargs):
super(VAEModel, self).__init__(**kwargs)
self.encoder = encoder
self.decoder = decoder
self.r_loss_factor = r_loss_factor
self.built = True # added
From Japan. I'm not good at English, so it may be hard to read. Sorry.
When I used load_model() in 03_04_vae_digits_analysis.ipynb, I got an error message.
ValueError Traceback (most recent call last)