'A problem for using keras-vggface in colab

I've changed the version of tensorflow to 1.x, and I can successfully import keras-vggface.However, when I ran "vgg_model = VGGFace()",something went wrong. To be exactly, it said

1261 if 'keras_version' in f.attrs:

-> 1262 original_keras_version = f.attrs['keras_version'].decode('utf8')

1263 else:

1264 original_keras_version = '1'

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

Do you know how to sovle it? It seems a version problem, I don't know how to solve it on colab.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source