chen0040 / keras-video-classifier

Keras implementation of video classifier
MIT License
111 stars 52 forks source link

plot_and_save_history() does not work with headless servers #8

Open qysnn opened 6 years ago

qysnn commented 6 years ago

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.