y0ast / Variational-Autoencoder

Implementation of a Variational Auto-Encoder in Theano
MIT License
378 stars 145 forks source link

Continuous = True causes error #9

Closed PFWhite closed 7 years ago

PFWhite commented 7 years ago

After changing the continuous variable I encountered the following error after doing a python run.py

Loading Freyface data
instantiating model
Restarting from earlier saved parameters!
Traceback (most recent call last):
  File "run.py", line 43, in <module>
    model.load_parameters(path)
  File "/home/patrick/.../Variational-Autoencoder/VAE.py", line 184, in load_parameters
    self.params[name].set_value(p_list[name].astype(theano.config.floatX))
KeyError: 'W_hx'
y0ast commented 7 years ago

Hi! I think you are trying to restart training a continuous model from binary model parameters.

I think if you delete the params.pkl file and start training again it should be fine :)