Esempio n. 1
0
   "a5_LeftReconS2",
   "a6_LeftReconS4",
   "a7_LeftReconS8",
   "a8_LeftReconAll",
   "a13_RightReconS2",
   "a14_RightReconS4",
   "a15_RightReconS8",
   "a16_RightReconAll",
]

normalizeIdx = [-1, 0, 0, 0, -1, 4, 4, 4]

preToPostScale = [
   .0294,
   .0294,
   .0294,
   .0294,
   .0294,
   .0294,
   .0294,
   .0294,
]

if(doPlotRecon):
   print "Plotting reconstructions"
   plotRecon(layers, outputDir, skipFrames)

if(doPlotErr):
   print "Plotting reconstruction error"
   plotReconError(preErrLayers, postErrLayers, preToPostScale, outputDir, errShowPlots, normalizeIdx, skipFrames)
Esempio n. 2
0
import os, sys
lib_path = os.path.abspath("/home/slundquist/workspace/PetaVision/plab/")
sys.path.append(lib_path)
from plotRecon import plotRecon
from plotReconError import plotReconError

#For plotting
#import matplotlib.pyplot as plt

outputDir = "/nh/compneuro/Data/MLPLCA/LCA/heli_gt_test_single/"
skipFrames = 1  #Only print every 20th frame
doPlotRecon = True
doPlotErr = False
errShowPlots = False
layers = [
    "a0_GroundTruth",
]

if (doPlotRecon):
    print "Plotting reconstructions"
    plotRecon(layers, outputDir, skipFrames)

#if(doPlotErr):
#   print "Plotting reconstruction error"
#   plotReconError(preErrLayers, postErrLayers, preToPostScale, outputDir, errShowPlots, skipFrames, gtLayers)
   "a4_LeftReconS2",
   "a5_LeftReconS4",
   "a6_LeftReconS8",
]

gtLayers = None
#gtLayers = [
#   #"a25_DepthRescale",
#   #"a25_DepthRescale",
#   #"a25_DepthRescale",
#   "a25_DepthRescale",
#   "a25_DepthRescale",
#   "a25_DepthRescale",
#]

preToPostScale = [
   1,
   1,
   1,
]


if(doPlotRecon):
   print "Plotting reconstructions"
   plotRecon(layers, outputDir, skipFrames, 0, True)
   plotRecon(depthLayers, outputDir, skipFrames, 0, False)

if(doPlotErr):
   print "Plotting reconstruction error"
   plotReconError(preErrLayers, postErrLayers, preToPostScale, outputDir, errShowPlots, skipFrames, gtLayers)
Esempio n. 4
0
   "a6_LeftReconS8",
]

gtLayers = None
#gtLayers = [
#   #"a25_DepthRescale",
#   #"a25_DepthRescale",
#   #"a25_DepthRescale",
#   "a25_DepthRescale",
#   "a25_DepthRescale",
#   "a25_DepthRescale",
#]

preToPostScale = [
   .0294,
   .0294,
   .0294,
   1,
   1,
   1,
]


if(doPlotRecon):
   print "Plotting reconstructions"
   plotRecon(layers, outputDir, skipFrames, 0, False)

if(doPlotErr):
   print "Plotting reconstruction error"
   plotReconError(preErrLayers, postErrLayers, preToPostScale, outputDir, errShowPlots, skipFrames, gtLayers)
Esempio n. 5
0
tfLines = tf.readlines()
tf.close()

#Remove first line
tfLines.pop(0)

rank = [int(line.split(":")[0]) for line in tfLines]

skipFrames = 1 #Only print every 20th frame
startFrames = 0
doPlotRecon = True

layers = [
   "LeftRecon_slice",
   "RightRecon_slice"
   ]


print("Plotting reconstructions")

for i, r in enumerate(rank):
   dataDir = baseDir + "paramsweep_" + str(r-1).zfill(3) + "/"
   plotRecon(layers, dataDir, skipFrames, 0, True, baseDir, "_rank"+str(i+1).zfill(3)+"_neuron"+str(r).zfill(3))


baseDir = "/home/ec2-user/mountData/benchmark/featuremap/norect/icaweights_LCA_all/"
##One recon for all combined
plotRecon(layers, baseDir, skipFrames, 0, True, baseDir, "_all")


#   #"a25_DepthRescale",
#   #"a25_DepthRescale",
#   "a25_DepthRescale",
#   "a25_DepthRescale",
#   "a25_DepthRescale",
#]

preToPostScale = [
   .0294,
   #.0294,
   #.0294,
   #.0294,
   #1,
   #1,
   #1,
   #1,
   #1,
   #1,
   #1,
   #1,
]


if(doPlotRecon):
   print "Plotting reconstructions"
   plotRecon(layers, outputDir, skipFrames, startFrame)

if(doPlotErr):
   print "Plotting reconstruction error"
   plotReconError(preErrLayers, postErrLayers, preToPostScale, outputDir, errShowPlots, skipFrames, gtLayers)