AttributeError: module ‘tensorflow’ has no attribute ‘get_default_graph’
tensorflow版本和keras版本对不上
我的tensorflow是2.0,keras天真以为也是2.0
查看你的tensorflow版本:pip list
找到你的tensorflow版本
去这个网站查询版本对应关系:
https://docs.floydhub.com/guides/environments/
卸载你的keras:pip uninstall keras
安装你对应版本的keras:pip install keras==[版本号] -i https://pypi.tuna.tsinghua.edu.cn/simple
再跑一边,完成