keras-video-classifier icon indicating copy to clipboard operation
keras-video-classifier copied to clipboard

plot_and_save_history() does not work with headless servers

Open qysnn opened this issue 7 years ago • 0 comments

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.

qysnn avatar Nov 14 '18 23:11 qysnn