美文网首页
语音代码调试报错

语音代码调试报错

作者: 酥脆海苔饼干 | 来源:发表于2024-03-19 11:17 被阅读0次
  1. keras调用model.load_weights()函数报错:AttributeError: ‘str‘ object has no attribute ‘decode‘
    解决办法:
    (1) 卸载原来的h5py
    pip uninstall h5py
    (2) 重新安装2.10版本的h5py
    pip install h5py==2.10 -i https://pypi.tuna.tsinghua.edu.cn/simple/
  2. Debug | ‘Model‘ object has no attribute ‘_in_multi_worker_mode‘
    可能原因:由于tensorflow(tf) 和 keras 的API混用
    解决办法:


    image.png

相关文章

网友评论

      本文标题:语音代码调试报错

      本文链接:https://www.haomeiwen.com/subject/vwqttjtx.html