Sucran
9/10/2017 - 7:44 AM

Caffe snippets

Caffe snippets

import numpy as np
import matplotlib.pyplot as plt
# when using jupyter, you should add following codes
# %matplotlib inline 
# set display default 
# plt.rcParams['figure.figsize'] = (10, 10) #large images
# plt.rcParams['image.interpolation'] = 'nearest' # don't interpolate: show square pixels
# plt.rcParams['image.cmap'] = 'gray' #usr grayscale output rather than a (potentially misleading) color heatmap