当前位置:网站首页>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/'
边栏推荐
- MySQL log management, backup and recovery
- Use__ slots__ And__ dict__ To save space (it's simply a qualitative leap, and leetcode's personal test is effective)
- Redis+caffeine two-level cache enables smooth access speed
- Sort th in antd table to prevent hovering color change +table hovering row color change +table header color change
- Non progressive phenomena of entropy and morphology
- Chunjun supports DDL conversion and automatic execution of heterogeneous data sources - dtmo 02 review (including course playback + courseware)
- MySQL installation (RPM package)
- 涌现与形态的局部差异和整体差异
- 图片中非0值的数量对分类的影响
- 7z usage
猜你喜欢

JVM judges that the object is dead, and practices verify GC recycling

Redis high availability principle

Use of pyquery

发动机悬置系统冲击仿真-瞬时模态动态分析与响应谱分析

已解决SyntaxError: (unicode error) ‘unicodeescape‘ codec can‘t decode bytes in position 2-3: truncated

Yonbuilder enables innovation, and the "golden keyboard Award" of the fourth UFIDA developer competition is open!

Webrtc realizes simple audio and video call function

图片中非0值的数量对分类的影响

c语言指针函数和函数指针的辨析

Kgdb debug kernel cannot execute breakpoints and kdb-22:permisson denied
随机推荐
Redis high availability principle
A verification test of the relationship between iteration number and entropy
Customized modification based on jira7.9.2
Yum source installation
Learning C language together: structure (2)
Use__ slots__ And__ dict__ To save space (it's simply a qualitative leap, and leetcode's personal test is effective)
Google browser screenshot tips
WebRTC实现简单音视频通话功能
SQL Server2000 database error
No identifier specified for entity solution
ASP.NET Core依赖注入之旅:1.理论概念
Overview of radar communication integrated waveform design
Edata base, a secondary development project based on spark packaging, is introduced
C语言 2:求三数字最大值,求三数字中间值,编写程序步骤
招聘顶尖人才!旷视科技“MegEagle创视者计划”正式启动
推导重叠积分的详细展开式 STO overlap integrals
antd中table hover上去的背景色样式修改
开源项目丨Taier1.2版本发布,新增工作流、租户绑定简化等多项功能
Set up Samba service
Redis+caffeine two-level cache enables smooth access speed