Skip to content
Permalink
Browse files

Merge branch 'jupyterlab'

  • Loading branch information...
danlester committed Jul 29, 2019
2 parents 9e14cb8 + 85069e7 commit 880286ed28583e271d268fa44421d27a5f07ff50
@@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
@@ -25,24 +25,9 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "a79f308e80bd4307a11157415373a82e",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Innotater(children=(HBox(children=(VBox(children=(ImagePad(value=b'\\xff\\xd8\\xff\\xe0\\x00\\x10JFIF\\x00\\x01\\x01\\x0…"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"outputs": [],
"source": [
"animalfns = sorted(os.listdir('./animals/'))\n",
"\n",
@@ -69,35 +54,9 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": null,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Class Indices [[0]\n",
" [1]]\n",
"Bounding Boxes [[[ 74 8 143 242]\n",
" [174 12 92 95]\n",
" [222 78 116 168]\n",
" [ 0 0 0 0]\n",
" [ 0 0 0 0]\n",
" [ 0 0 0 0]\n",
" [ 0 0 0 0]\n",
" [ 0 0 0 0]]\n",
"\n",
" [[ 5 55 178 241]\n",
" [215 4 185 249]\n",
" [ 0 0 0 0]\n",
" [ 0 0 0 0]\n",
" [ 0 0 0 0]\n",
" [ 0 0 0 0]\n",
" [ 0 0 0 0]\n",
" [ 0 0 0 0]]]\n"
]
}
],
"outputs": [],
"source": [
"print('Class Indices', targets_type[:2]) # Just display the first 2 to save space\n",
"print('Bounding Boxes', targets_bboxes[:2])"
@@ -120,26 +79,9 @@
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {
"scrolled": false
},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "307746c8e81b4c9eb7357c1079f0fce1",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Innotater(children=(HBox(children=(VBox(children=(ImagePad(value=b'\\xff\\xd8\\xff\\xe0\\x00\\x10JFIF\\x00\\x01\\x01\\x0…"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"repeats = 8\n",
"\n",
@@ -173,54 +115,9 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": null,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Exclude Flag [[0]\n",
" [0]]\n",
"Main Bounding Boxes [[ 72 7 255 242]\n",
" [ 6 0 391 297]]\n",
"Animal Bounding Boxes [[[ 90 6 117 239]\n",
" [191 15 86 85]\n",
" [226 83 109 165]\n",
" [ 0 0 0 0]\n",
" [ 0 0 0 0]\n",
" [ 0 0 0 0]\n",
" [ 0 0 0 0]\n",
" [ 0 0 0 0]]\n",
"\n",
" [[ 12 44 171 250]\n",
" [209 4 191 279]\n",
" [ 0 0 0 0]\n",
" [ 0 0 0 0]\n",
" [ 0 0 0 0]\n",
" [ 0 0 0 0]\n",
" [ 0 0 0 0]\n",
" [ 0 0 0 0]]]\n",
"Animal Breeds [[[1 0 0 0 0]\n",
" [1 0 0 0 0]\n",
" [1 0 0 0 0]\n",
" [1 0 0 0 0]\n",
" [1 0 0 0 0]\n",
" [1 0 0 0 0]\n",
" [1 0 0 0 0]\n",
" [1 0 0 0 0]]\n",
"\n",
" [[0 0 0 1 0]\n",
" [0 0 0 0 1]\n",
" [1 0 0 0 0]\n",
" [1 0 0 0 0]\n",
" [1 0 0 0 0]\n",
" [1 0 0 0 0]\n",
" [1 0 0 0 0]\n",
" [1 0 0 0 0]]]\n"
]
}
],
"outputs": [],
"source": [
"print('Exclude Flag', targets_exclude[:2]) # Just display the first 2 to save space\n",
"print('Main Bounding Boxes', targets_mainbbox[:2])\n",
@@ -239,26 +136,9 @@
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {
"scrolled": false
},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "7a937ecfba98417cbeb9f5155cff98bd",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Innotater(children=(HBox(children=(VBox(children=(ImagePad(value=b'\\xff\\xd8\\xff\\xe0\\x00\\x10JFIF\\x00\\x01\\x01\\x0…"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"targets_singlebb = np.zeros((len(animalfns), 4), dtype='int') # (x,y,w,h) for each data row\n",
"targets_cl = np.zeros((len(animalfns), 1), dtype='int')\n",

0 comments on commit 880286e

Please sign in to comment.
You can’t perform that action at this time.