Commit 49efd9fd authored by Gihan Jayatilaka's avatar Gihan Jayatilaka

incep+fc

parent 9f51d684
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import numpy as np\n",
"import cv2\n",
"import sys\n",
"\n",
"data=np.load('../video/butterfly.npz')\n",
"X=data['X']\n",
"Y=data['Y']\n",
"\n",
"\n",
"print(\"DEBUG: \",\"X\",X.shape,\"Y\",Y.shape)\n",
"\n",
"N=int(sys.argv[1])\n",
"\n",
"print(Y[N])\n",
"cv2.imshow(\"Image\",X[N])\n",
"cv2.waitKey(100000000)\n",
"\n",
"\n",
"\n",
"for i in range(X.shape[0]):\n",
" #idx=int(input())\n",
" #cv2.ion()\n",
" cv2.imshow(\"Image\",X[i])\n",
" cv2.waitKey(10)\n",
" print(i,Y[i])\n",
" \n",
"cv2.destroyAllWindows()\n",
"\n",
" \n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.5.6"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
This diff is collapsed.
This diff is collapsed.
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