Skip to content

Commit

Permalink
update master
Browse files Browse the repository at this point in the history
  • Loading branch information
cchamber committed Aug 10, 2019
1 parent e07f184 commit 0df794c
Showing 1 changed file with 3 additions and 49 deletions.
52 changes: 3 additions & 49 deletions notebooks/master.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -75,48 +75,9 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": null,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"CHECK GPU (look for output that mentions GPU)\n",
"['/job:localhost/replica:0/task:0/device:GPU:0']\n",
"[name: \"/device:CPU:0\"\n",
"device_type: \"CPU\"\n",
"memory_limit: 268435456\n",
"locality {\n",
"}\n",
"incarnation: 1923266957816800673\n",
", name: \"/device:GPU:0\"\n",
"device_type: \"GPU\"\n",
"memory_limit: 235274240\n",
"locality {\n",
" bus_id: 1\n",
"}\n",
"incarnation: 7296752876102952942\n",
"physical_device_desc: \"device: 0, name: GeForce GTX 1080 Ti, pci bus id: 0000:09:00.0, compute capability: 6.1\"\n",
"]\n",
"[[22. 28.]\n",
" [49. 64.]]\n",
"load paths\n"
]
},
{
"ename": "AssertionError",
"evalue": "Folder does not exist. \n Edit path to ground-truth image files (image_path) in /src/pose_model/get_pose_model_predictions_and_groundtruth.py.",
"output_type": "error",
"traceback": [
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[0;31mAssertionError\u001b[0m Traceback (most recent call last)",
"\u001b[0;32m<ipython-input-3-53fc33190cf3>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m()\u001b[0m\n\u001b[1;32m 21\u001b[0m \u001b[0mprint\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0msess\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mrun\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mc\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 22\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 23\u001b[0;31m \u001b[0mget_pose_model_predictions_and_groundtruth\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mmain\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m",
"\u001b[0;32m~/infant_move/src/pose_model/get_pose_model_predictions_and_groundtruth.py\u001b[0m in \u001b[0;36mmain\u001b[0;34m()\u001b[0m\n\u001b[1;32m 67\u001b[0m \u001b[0mimage_path\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;34m'/path/to/image/directory'\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 68\u001b[0m \u001b[0mgt_path\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;34m'/path/to/json/file/containing/ground/truth/labels'\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 69\u001b[0;31m \u001b[0;32massert\u001b[0m \u001b[0mos\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mpath\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mexists\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mimage_path\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m'Folder does not exist. \\n Edit path to ground-truth image files (image_path) in /src/pose_model/get_pose_model_predictions_and_groundtruth.py.'\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 70\u001b[0m \u001b[0;32massert\u001b[0m \u001b[0mos\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mpath\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mexists\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mgt_path\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m'File does not exist. \\n Edit path to .json ground-truth labels (gt_path) in /src/pose_model/get_pose_model_predictions_and_groundtruth.py.'\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 71\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n",
"\u001b[0;31mAssertionError\u001b[0m: Folder does not exist. \n Edit path to ground-truth image files (image_path) in /src/pose_model/get_pose_model_predictions_and_groundtruth.py."
]
}
],
"outputs": [],
"source": [
"# Test pose estimation model: generate predictions from models in ../model folder\n",
"\n",
Expand All @@ -142,13 +103,6 @@
"\n",
"get_pose_model_predictions_and_groundtruth.main()"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down

0 comments on commit 0df794c

Please sign in to comment.