From 0df794c3cc5fbfe33e878d0a55257c1edfd65605 Mon Sep 17 00:00:00 2001 From: cchamber Date: Sat, 10 Aug 2019 17:36:49 -0400 Subject: [PATCH] update master --- notebooks/master.ipynb | 52 +++--------------------------------------- 1 file changed, 3 insertions(+), 49 deletions(-) diff --git a/notebooks/master.ipynb b/notebooks/master.ipynb index b27d64c..70bdd03 100644 --- a/notebooks/master.ipynb +++ b/notebooks/master.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "code", - "execution_count": 2, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -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\u001b[0m in \u001b[0;36m\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", @@ -142,13 +103,6 @@ "\n", "get_pose_model_predictions_and_groundtruth.main()" ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] } ], "metadata": {