Commit 179263b7 authored by Gihan Jayatilaka's avatar Gihan Jayatilaka

i3

parent 80432c93
......@@ -251,8 +251,6 @@ def dispGrid(yTrue,yPred,title):
yTrue=np.reshape(yTrue,(yTrue.shape[0],SQRT_CELLS,SQRT_CELLS))
yPred=np.reshape(yPred,(yPred.shape[0],SQRT_CELLS,SQRT_CELLS))
correctCount=((yTrue==yPred).astype(np.float32)).mean(axis=0)
......@@ -308,7 +306,7 @@ def modeGrid(data):
if __name__ == '__main__':
# test_convolve2D()
if True:
try:
RESULT_FILE_NAME=sys.argv[1]
CELLS_PER_FRAME=(int(sys.argv[2]))
SQRT_CELLS=int(math.sqrt(CELLS_PER_FRAME))
......@@ -323,14 +321,12 @@ if __name__ == '__main__':
modeBlock(data)
elif MODE=='grid':
modeGrid(data)
else:
_=sys.argv[10000]#Just looking for something to give an error
plt.show()
if False:
plt.show()
except:
print("python visualize-2.py res.npz 100 hist vid-name-for-plot file-name-to-save-plot")
print("python visualize-2.py res.npz 100 block 2 2")
print("python visualize-2.py res.npz 100 grid")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment