加载卷积神经网络模型时出现文件名编码问题怎么解决?

face_recognition_model = keras.Sequential()
MODEL_PATH = "face_model.h5"
face_recognition_model = load_model(MODEL_PATH)

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

第三行出现无decode属性的报错

参考:https://blog.csdn.net/weixin_45371989/article/details/109789132