语音代码调试报错

2024-03-19  本文已影响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
上一篇 下一篇

猜你喜欢

热点阅读