In [ ]:
%load_ext autoreload
%autoreload 2
In [ ]:
import pylab
from pylab import *
import pickle
%matplotlib inline
plt.rcParams['image.interpolation'] = 'nearest'
plt.rcParams['image.cmap'] = 'gray'
# Make sure that caffe is on the python path:
caffe_root = '../../' # this file is expected to be in {caffe_root}/notebooks
import sys
sys.path.insert(0, caffe_root + 'python')
#import caffe
from plotting import *
In [ ]:
#results_path = 'junk_fc8_info_big.pkl'
results_path = 'junk_fc8nd_info_big.pkl'
In [ ]:
with open(results_path, 'rb') as ff:
params,results = pickle.load(ff)
In [ ]:
print params, results
In [ ]:
figsize(15,8)
plot(results.ii, array(results.obj) * 100)
plot(results.ii, results.dist)
plot(results.ii, results.norm)
#plot(results.ii, results.std)
legend(('obj', 'dist', 'norm'))
In [ ]:
subplot(1,3,1)
showimagesc(results.x0, c01=True, bgr=True)
title('0')
subplot(1,3,2)
showimagesc(results.majority_xx, c01=True, bgr=True)
title('%s' % results.majority_ii)
subplot(1,3,3)
showimagesc(results.best_xx, c01=True, bgr=True)
title('%s' % results.best_ii)
In [ ]: