Skip to content

Commit

Permalink
Make CONFIG_DIR configurable per environment variable (#4727)
Browse files Browse the repository at this point in the history
  • Loading branch information
positive666 committed Sep 10, 2021
1 parent d44716d commit a9d388a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions utils/plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"""

import math
import os
from copy import copy
from pathlib import Path

Expand All @@ -20,6 +21,7 @@
from utils.metrics import fitness

# Settings
CONFIG_DIR = Path(os.getenv('YOLOV5_CONFIG_DIR') or user_config_dir()) # Ultralytics settings dir
matplotlib.rc('font', **{'size': 11})
matplotlib.use('Agg') # for writing to files only

Expand Down

0 comments on commit a9d388a

Please sign in to comment.