nl8590687 / ASRT_SpeechRecognition

A Deep-Learning-Based Chinese Speech Recognition System 基于深度学习的中文语音识别系统
https://asrt.ailemon.net
GNU General Public License v3.0
7.74k stars 1.89k forks source link

Keras Tensorflow Python 版本对应问题 #210

Open yunfeng-chen opened 4 years ago

yunfeng-chen commented 4 years ago

image pyhton3.7+最新tensorflow+最新keras,from keras.backend.tensorflow_backend import set_session 该句会报 No module named 'keras.backend.tensorflow_backend'; 'keras.backend' is not a package 错误 解决办法: 卸载keras,手动安装keras2.2.4

nl8590687 commented 4 years ago

最新的tensorflow好像确实有点问题

Tinrry commented 4 years ago

really?I tried many tensorflow version , I install pkg as you list in wiki, but i found that tensorflow==1.4.0 required cuda 8.0, but i can't not find this cuda in ubuntu 18.04. sad = =,, so i try to install the defaut pkg version in another conda environment, but when i run the code ,it appears uncompatile code in tensorflow... I now try the @yunfeng-chen method.

laoyin commented 3 years ago

image pyhton3.7+最新tensorflow+最新keras,from keras.backend.tensorflow_backend import set_session 该句会报 No module named 'keras.backend.tensorflow_backend'; 'keras.backend' is not a package 错误 解决办法: 卸载keras,手动安装keras2.2.4

我安装 tensorflow 2.5 版本,然后改了部分代码ok跑起来了

https://zhuanlan.zhihu.com/p/277569990 ,需要把部分 keras 改成 tensorflow.keras

nl8590687 commented 3 years ago

You need install tensorflow 1.13+ and cuda 10.0. @Tinrry