Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in running sample_autoencoder.py file #4

Open
simonfqy opened this issue Mar 27, 2017 · 1 comment
Open

Error in running sample_autoencoder.py file #4

simonfqy opened this issue Mar 27, 2017 · 1 comment

Comments

@simonfqy
Copy link

I was following the instructions on the homepage of this github repository, trying to run the sample_autoencoder.py file exactly according to the example. However, this is what showed up:

python sample_autoencoder.py
../data/best_vae_model.json
../data/best_vae_annealed_weights.h5
../data/250k_rndm_zinc_drugs_clean.smi
../data/zinc_char_list.json
-l5000
Using Theano backend.
Traceback (most recent call last):
File "sample_autoencoder.py", line 97, in
model = model_from_json(json.dumps(model_dict))
File "/usr/local/lib/python2.7/dist-packages/keras/models.py", line 213, in model_from_json
return layer_from_config(config, custom_objects=custom_objects)
File "/usr/local/lib/python2.7/dist-packages/keras/utils/layer_utils.py", line 27, in layer_from_config
class_name = config['class_name']
KeyError: 'class_name'

Can anyone please tell me what is going on here? Thank you very much!

@wadekun
Copy link

wadekun commented Aug 7, 2017

make sure you install keras from here: https://github.com/rgbombarelli/keras

  1. git clone https://github.com/rgbombarelli/keras.git
  2. cd keras
  3. python setup.py install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants