Skip to content

cannot use my trained model after exporting it #30

Description

@octopousprime

Hi
I managed to install EmoPy on my ubuntu 18.04.
I tested the pre-trained model (fermodel_example.py) and managed to run the convolutional_model.py without error.
then I also managed to train my model on a large database of images and export it to the /output directory using :

model.export_model('output/conv2d_model.json','output/conv2d_weights.h5',"output/conv2d_emotion_map.json",{"calm": 0, "anger": 1, "happiness": 2})

Then I changed the path on fermodel.py from :

model_file = 'models/conv_model_%s.hdf5' % model_suffix
emotion_map_file = 'models/conv_emotion_map_%s.json' % model_suffix

to my newly trained model output :

model_file = 'models/conv2d_weights.h5'
emotion_map_file = 'models/conv2d_emotion_map.json'

But when I run fermodel.py again I get this error:

error
can someone help me find a solution to this error.
Thanks

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions