目录
2.ValueError: Duplicate plugins for name projector
1)多线程加载图片
参考Pytorch中DataLoader类的多线程实现方法分析 - 简书(在进行人脸识别模型训练时遇到),多线程读图,可以充分发挥GPU的利用率,加快训练速度;
2)tensorboard可视化
pytorch训练产生的日志文件,查看使用tensorboard,conda虚拟环境激活安装使用以下命名行:
pip install tensorflow==1.7.0
然后终端进入日志文件夹目录下,执行:
tensorboard --logdir="log/"
终端出现:
2019-05-30 16:28:12.638396: I tensorflow/core/platform/cpu_feature_guard.cc:140]
Your CPU supports instructions that this TensorFlow binary was not compiled to
use: AVX2 FMA
TensorBoard 1.7.0 at http://XXXXXping-PC:6006 (Press CTRL+C to quit)
然后在浏览器中输入:
http://XXXXXping-PC:6006