Matplotlib AGG backend (#1413)
This commit is contained in:
parent
548a98a391
commit
92c9b72832
|
|
@ -19,6 +19,9 @@ from scipy.signal import butter, filtfilt
|
||||||
from utils.general import xywh2xyxy, xyxy2xywh
|
from utils.general import xywh2xyxy, xyxy2xywh
|
||||||
from utils.metrics import fitness
|
from utils.metrics import fitness
|
||||||
|
|
||||||
|
# Settings
|
||||||
|
matplotlib.use('Agg') # for writing to files only
|
||||||
|
|
||||||
|
|
||||||
def color_list():
|
def color_list():
|
||||||
# Return first 10 plt colors as (r,g,b) https://stackoverflow.com/questions/51350872/python-from-color-name-to-rgb
|
# Return first 10 plt colors as (r,g,b) https://stackoverflow.com/questions/51350872/python-from-color-name-to-rgb
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue