tensorflow object detection ImportError: Matplotlib qt-based backends require an external PyQt4,PyQt

问题:
在把ckpt 文件转成pb 文件时候,Matplotlib qt-based backends require an external PyQt4,PyQt5 PySide PySide2 to be installed but not found
解决方法:
sudo gedit /root/anaconda3/envs/tensorflow/lib/python3.6/site-packages/object_detection-0.1-py3.6.egg/object_detection/utils/visualization_utils.py
tensorflow object detection ImportError: Matplotlib qt-based backends require an external PyQt4,PyQt
原来是matplotlib.use(‘QT5Agg’)
更改成如上就OK了

上一篇:安全帽识别


下一篇:PyQt自定义环绕控件