当前位置:网站首页>tensorflow运行报错解决方法
tensorflow运行报错解决方法
2022-07-27 10:33:00 【萤-火】
1.ImportError: DLL load failed: 找不到指定的模块
解决方法:把TensorFlow卸载了重新安装(可能是因为版本不对应的问题,在anaconda里面删除TensorFlow库,再重新安装回去)
2.keras报错:load_weights() got an unexpected keyword arguement 'skip_mmismatch'
最后将keras进行升级(我的升级到了2.1.5版本),这个问题就解决了。
总结:
在跑keras和tensorflow程序的时候遇到了好多次这种版本导致的问题。因为深度学习现在发展比较迅速,所以很多框架的API更新比较快,以后debug的时候一定要注意排查版本问题。
3.pip报错ModuleNotFoundError: No module named 'pip._internal'
# wget https://bootstrap.pypa.io/get-pip.py --no-check-certificate
# sudo python get-pip.py
4.下载速度慢,遇到time read out问题
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple xx
5.导入tensorflow:ImportError: libcublas.so.9.0: cannot open shared object file: No such file or director
出现这个问题是因为TensorFlow-gpu版本和cuda不对应导致,必须调整重装对应
查看 CUDA 版本:
cat /usr/local/cuda/version.txt
查看 CUDNN 版本:
cat /usr/local/cuda/include/cudnn.h | grep CUDNN_MAJOR -A 2对应表

6. tensorflow.python.framework.errors_impl.NotFoundError: FindFirstFile failed for
出现这个问题一般是由于文件路径是相对路径的问题,将出问题的路径改为绝对路径(完整路径),如下例子:
'./VOC2007/Annotations/' 改为 'Z:/pycharm_projects/CenterNet_1/VOC2007/Annotations/'
边栏推荐
- GEE中下载过程中出现 Error: Image.clipToBoundsAndScale, argument 'input'
- Shock simulation of engine mounting system transient modal dynamic analysis and response spectrum analysis
- Tensorflow notes - basic functions and concepts
- Awesome! VMware esxi installation record, with download
- MySQL installation (RPM package)
- Kangaroo cloud stack based on CBO in spark SQL optimization
- MySQL deadlock, pessimistic lock, optimistic lock
- NFT leaderboard -nft real offer latest address: NFT leaderboard.com
- parsel的使用
- Compete for the key battle of stock users and help enterprises build a perfect labeling system - 01 live review
猜你喜欢

推导重叠积分的详细展开式 STO overlap integrals

Symmetric encryption and asymmetric encryption
![Take you hand-in-hand to develop a complete classic game [Tetris] from scratch, with less than 200 lines of logic.](/img/7f/f42f9267cdff35522c260ef073bab9.png)
Take you hand-in-hand to develop a complete classic game [Tetris] from scratch, with less than 200 lines of logic.

OpenAtom OpenHarmony分论坛,今天14:00见!附大事记精彩发布

Use kaggle to run Li Hongyi's machine learning homework

Shortest moving distance and entropy of morphological complex

Real time development platform construction practice, in-depth release of real-time data value - 04 live broadcast review

Document intelligent multimodal pre training model layoutlmv3: both versatility and superiority

Record of a cross domain problem

黑白像素分布对迭代次数的影响
随机推荐
发动机悬置系统冲击仿真-瞬时模态动态分析与响应谱分析
antd中table hover上去的背景色样式修改
Tdengine helps Siemens' lightweight digital solution simicas simplify data processing process
Antd table+checkbox default value display
泰山OFFICE技术讲座:缩放比例与打开文件
Based on the open source stream batch integrated data synchronization engine Chunjun data restore DDL parsing module actual combat sharing
SQL Server2000数据库错误
Tdengine business ecosystem partner recruitment starts
迭代次数的差异与信息熵
The influence of the number of non-zero values in the picture on Classification
Use of parsel
SQL Server2000 database error
荒野觅踪---寻找迭代次数
推导重叠积分的详细展开式 STO overlap integrals
Redis+caffeine two-level cache enables smooth access speed
Openldap custom schema
7z usage
开源项目丨Taier1.2版本发布,新增工作流、租户绑定简化等多项功能
How to build a data index system is the most effective. From 0 to 1, we will take you a quick start - 02 live review
Yum source installation