文章目录

问题

(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
Logo

汇聚全球AI编程工具,助力开发者即刻编程。

更多推荐