Matplotlib AGG backend (#1413)
Browse files- utils/plots.py +3 -0
utils/plots.py
CHANGED
@@ -19,6 +19,9 @@ from scipy.signal import butter, filtfilt
|
|
19 |
from utils.general import xywh2xyxy, xyxy2xywh
|
20 |
from utils.metrics import fitness
|
21 |
|
|
|
|
|
|
|
22 |
|
23 |
def color_list():
|
24 |
# Return first 10 plt colors as (r,g,b) https://stackoverflow.com/questions/51350872/python-from-color-name-to-rgb
|
|
|
19 |
from utils.general import xywh2xyxy, xyxy2xywh
|
20 |
from utils.metrics import fitness
|
21 |
|
22 |
+
# Settings
|
23 |
+
matplotlib.use('Agg') # for writing to files only
|
24 |
+
|
25 |
|
26 |
def color_list():
|
27 |
# Return first 10 plt colors as (r,g,b) https://stackoverflow.com/questions/51350872/python-from-color-name-to-rgb
|