Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ torch==1.0.1.post2
torchvision==0.2.2
prettytable==0.7.2
numpy==1.16.2
tqdm==4.29.1
tqdm==4.19.9
coloredlogs==10.0
scipy==1.2.1
setproctitle==1.1.10
tensorflow_gpu==1.9.0
matplotlib==2.0.2
visdom==0.1.8.8
Cython==0.29.6
scikit-learn==0.22.1
6 changes: 5 additions & 1 deletion src/m_utils/visualize.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@

import os
import matplotlib as mpl
if os.environ.get('DISPLAY','') == '':
print('no display found. Using non-interactive Agg backend')
mpl.use('Agg')
import matplotlib.pyplot as plt
import seaborn as sns
from PIL import Image
Expand Down