yolov3中train.py运行报错解决方案

AttributeError: module ‘tensorflow._api.v1.summary’ has no attribute 'create_file_writer’解决方案

使用pytorch框架的yolov3在训练时报错了,使用的是tf里面的一个函数create_file_writer,查了下这个函数,发现是tf2.0以上版本使用的函数名,我用的tf1.14.0,为了避免后续因tf版本过低报错,这里直接升级下tensorflow的版本

AttributeError: module 'tensorflow._api.v1.summary' has no attribute 'create_file_writer'

这里附上升级流程

pip uninstall tensorflow-gpu
pip install tensorflow-gpu==2.1.0 -i https://pypi.doubanio.com/simple
Successfully installed cachetools-4.2.1 gast-0.2.2 google-auth-1.29.0 google-auth-oauthlib-0.4.4 oauthlib-3.1.0 opt-einsum-3.3.0 pyasn1-0.4.8 pyasn1-modules-0.2.8 requests-oauthlib-1.3.0 rsa-4.7.2 tensorboard-2.1.1 tensorflow-gpu-2.1.0 tensorflow-gpu-estimator-2.1.0

好的,安装成功,继续训练yolo

评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值