错误一:File "D:\pycharm-project\bingxiang\yolov5-pytorch-main\yolov5-pytorch-main\utils\utils_map.py", line 609, in get_map fig.canvas.set_window_title('AP ' + class_name) AttributeError: 'FigureCanvasTkAgg' object has no attribute 'set_window_title'
fig.canvas.set_window_title('AP ' + class_name)替换为:fig.suptitle('AP ' + class_name)
错误二:File "D:\pycharm-project\bingxiang\yolov5-pytorch-main\yolov5-pytorch-main\utils\utils_map.py", line 716, in get_map draw_plot_func( File "D:\pycharm-project\bingxiang\yolov5-pytorch-main\yolov5-pytorch-main\utils\utils_map.py", line 241, in draw_plot_func fig.canvas.set_window_title(window_title) AttributeError: 'FigureCanvasTkAgg' object has no attribute 'set_window_title'
fig.canvas.set_window_title(window_title)替换为:fig.suptitle(window_title)