numpy 与tensorflow 版本关系 tensorflow/python/framework/dtypes.py:460: FutureWarning: Passing

文章目录

问题

(pytorch-yolov3-noteComputer) roth@localhost:~/myProject/pytorch-yolov3-noteComputer/PyTorch-YOLOv3$ 
(pytorch-yolov3-noteComputer) roth@localhost:~/myProject/pytorch-yolov3-noteComputer/PyTorch-YOLOv3$ 
(pytorch-yolov3-noteComputer) roth@localhost:~/myProject/pytorch-yolov3-noteComputer/PyTorch-YOLOv3$ CUDA_VISIBLE_DEVICES=0,1 python3 train.py --data_config config/coco.data  --pretrained_weights weights/
darknet53.conv.74
/home/SSD/roth/myProjectEnv/pytorch-yolov3-noteComputer/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:458: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecate
d; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint8 = np.dtype([("qint8", np.int8, 1)])
/home/SSD/roth/myProjectEnv/pytorch-yolov3-noteComputer/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:459: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecate
d; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_quint8 = np.dtype([("quint8", np.uint8, 1)])
/home/SSD/roth/myProjectEnv/pytorch-yolov3-noteComputer/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:460: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecate
d; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint16 = np.dtype([("qint16", np.int16, 1)])
/home/SSD/roth/myProjectEnv/pytorch-yolov3-noteComputer/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:461: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecate
d; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_quint16 = np.dtype([("quint16", np.uint16, 1)])
/home/SSD/roth/myProjectEnv/pytorch-yolov3-noteComputer/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:462: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecate
d; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint32 = np.dtype([("qint32", np.int32, 1)])
/home/SSD/roth/myProjectEnv/pytorch-yolov3-noteComputer/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:465: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecate
d; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  np_resource = np.dtype([("resource", np.ubyte, 1)])
Namespace(batch_size=8, checkpoint_interval=1, compute_map=False, data_config='config/coco.data', epochs=100, evaluation_interval=1, gradient_accumulations=2, img_size=416, model_def='config/yolov3.cfg', 
multiscale_training=True, n_cpu=8, pretrained_weights='weights/darknet53.conv.74')

分析

兼容性问题
机器上的版本如下:
tensorflow1.13.0
numpy
1.19.0

之间版本关系,不兼容

解决

解决如下:
numpy 降级 numpy==1.16.0

pip install numpy==1.16.0
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值