Skip to content

AttributeError: 'str' object has no attribute 'decode' #2

Description

Hello,I was trying to reproduce the experiments described in the paper from the given data.
command:
python DM.py -r 1 -cd UserDataExample.csv -cl UserLabelExample.csv -m svm

I got these errors

Epoch 00328: early stopping
Traceback (most recent call last):
File "DM.py", line 718, in
run_exp(args.seed)
File "DM.py", line 660, in run_exp
latent_act=args.ae_lact, output_act=args.ae_oact, patience=args.patience, no_trn=args.no_trn)
File "DM.py", line 216, in ae
self.autoencoder = load_model(modelName)
File "/home/ubuntu/anaconda3/envs/deep_env/lib/python3.6/site-packages/keras/engine/saving.py", line 419, in load_model
model = _deserialize_model(f, custom_objects, compile)
File "/home/ubuntu/anaconda3/envs/deep_env/lib/python3.6/site-packages/keras/engine/saving.py", line 224, in _deserialize_model
model_config = json.loads(model_config.decode('utf-8'))
AttributeError: 'str' object has no attribute 'decode'.

How can I solve it?
Thank you.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions