keras-video-classifier
keras-video-classifier copied to clipboard
plot_and_save_history() does not work with headless servers
pyplot will output tkinter.TclError: no display name and no $DISPLAY environment variable on headless server. Changing the import part of plot_utils.py from
from matplotlib import pyplot as plt
to
import matplotlib
matplotlib.use('Agg')
from matplotlib import pyplot as plt
will solve this error.