Namespaces | Functions | Variables
visualisationForPaperMasterPlot.py File Reference

Go to the source code of this file.

Namespaces

 visualisationForPaperMasterPlot
 

Functions

def visualisationForPaperMasterPlot.vis_square (data, outfile, title, padsize=1, padval=0)
 
def visualisationForPaperMasterPlot.vis_square_kernel (data, outfile, title, padsize=1, padval=0)
 
def visualisationForPaperMasterPlot.vis_square_kernel_zoom (data, outfile, title, xminval, xmaxval, yminval, ymaxval, padsize=1, padval=0)
 

Variables

 visualisationForPaperMasterPlot.parser = argparse.ArgumentParser()
 
 visualisationForPaperMasterPlot.type
 
 visualisationForPaperMasterPlot.str
 
 visualisationForPaperMasterPlot.required
 
 visualisationForPaperMasterPlot.int
 
 visualisationForPaperMasterPlot.args = parser.parse_args()
 
int visualisationForPaperMasterPlot.count = 0
 
int visualisationForPaperMasterPlot.correct = 0
 
 visualisationForPaperMasterPlot.matrix = defaultdict(int)
 
 visualisationForPaperMasterPlot.labels_set = set()
 
 visualisationForPaperMasterPlot.net = caffe.Net(args.proto, args.model, caffe.TEST)
 
 visualisationForPaperMasterPlot.db = leveldb.LevelDB(args.leveldb)
 
 visualisationForPaperMasterPlot.datum = caffe.proto.caffe_pb2.Datum()
 
 visualisationForPaperMasterPlot.label = int(datum.label)
 
 visualisationForPaperMasterPlot.image = caffe.io.datum_to_array(datum)
 
 visualisationForPaperMasterPlot.out = net.forward_all(data=np.asarray([image]))
 
 visualisationForPaperMasterPlot.plabel = int(out['prob'][0].argmax(axis=0))
 
 visualisationForPaperMasterPlot.data = np.asarray([image])
 
 visualisationForPaperMasterPlot.dataswap = np.swapaxes(data.reshape(np.delete(data.shape,0)),0,2)
 
 visualisationForPaperMasterPlot.x = x.swapaxes(0,1)
 
 visualisationForPaperMasterPlot.y = y.swapaxes(0,1)
 
 visualisationForPaperMasterPlot.fig
 
 visualisationForPaperMasterPlot.ax
 
 visualisationForPaperMasterPlot.figsize
 
 visualisationForPaperMasterPlot.cmap
 
 visualisationForPaperMasterPlot.interpolation
 
 visualisationForPaperMasterPlot.extent
 
 visualisationForPaperMasterPlot.dpi
 
 visualisationForPaperMasterPlot.filters1 = net.params['conv1/7x7_s2_y'][0].data
 
 visualisationForPaperMasterPlot.filters2 = net.params['conv1/7x7_s2_x'][0].data
 
 visualisationForPaperMasterPlot.iiiax = net.blobs['inception_3a/output_x'].data
 
 visualisationForPaperMasterPlot.padval
 
 visualisationForPaperMasterPlot.iiiay = net.blobs['inception_3a/output_y'].data
 
 visualisationForPaperMasterPlot.pidSignal = float(out['prob'][0][1])
 
 visualisationForPaperMasterPlot.pidBackground = float(out['prob'][0][0])
 
 visualisationForPaperMasterPlot.iscorrect = plabel