Skip to content

Commit

Permalink
Removed some more unnecessary stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
janblumenkamp committed Sep 8, 2019
1 parent 27c2eb4 commit c0f3232
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions train_keras.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@
"metadata": {},
"outputs": [],
"source": [
"for i in range(0, 5):\n",
"for i in range(0, 3):\n",
" img = np.array(dataset.get_image(i))\n",
" \n",
" fig,ax = plt.subplots(1)\n",
Expand Down Expand Up @@ -878,29 +878,6 @@
" #print(\"res\", quat_res, trans_res)\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Perform a orientation determination on the validation data set"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"for imgs, masks in validation_generator:\n",
" for img, mask in zip(imgs, masks[0]): \n",
" try:\n",
" quat_res, trans_res = predict_pose(model, img, mask, True)\n",
" except cv2.error as e:\n",
" continue\n",
" print(\"res\", quat_res, trans_res)\n",
" print(\"=\"*30)\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down

0 comments on commit c0f3232

Please sign in to comment.