ASRT_SpeechRecognition icon indicating copy to clipboard operation
ASRT_SpeechRecognition copied to clipboard

Keras Tensorflow Python 版本对应问题

Open yunfeng-chen opened this issue 4 years ago • 4 comments

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

yunfeng-chen avatar Aug 03 '20 09:08 yunfeng-chen

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

nl8590687 avatar Aug 29 '20 12:08 nl8590687

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.

Tinrry avatar Sep 09 '20 07:09 Tinrry

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

laoyin avatar Nov 11 '20 00:11 laoyin

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

nl8590687 avatar Nov 16 '20 05:11 nl8590687