运行TensorFlow Object Detection API中的object_detection_tutorial.ipynb文件时,可能会遇到如下的警告:
UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure。
【解决办法】在models\research\object_detection\utils\visualization_utils.py 文件中,注释掉:import matplotlib; matplotlib.use('Agg')。如下图所示:
参考:《深度学习图像识别技术》