From 92c9b72832a878438f37f4cad223f63de0b55786 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Mon, 16 Nov 2020 16:34:07 +0100 Subject: [PATCH] Matplotlib AGG backend (#1413) --- utils/plots.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utils/plots.py b/utils/plots.py index 77fca3b..1429155 100644 --- a/utils/plots.py +++ b/utils/plots.py @@ -19,6 +19,9 @@ from scipy.signal import butter, filtfilt from utils.general import xywh2xyxy, xyxy2xywh from utils.metrics import fitness +# Settings +matplotlib.use('Agg') # for writing to files only + def color_list(): # Return first 10 plt colors as (r,g,b) https://stackoverflow.com/questions/51350872/python-from-color-name-to-rgb