natanielruiz
2017-09-13 d285712b1c0a3e0785a4e5b17debdde650a7c26a
practice/.ipynb_checkpoints/smoothing_ypr-checkpoint.ipynb
@@ -2,7 +2,7 @@
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 187,
   "execution_count": 1,
   "metadata": {
    "collapsed": false
   },
@@ -17,22 +17,22 @@
  },
  {
   "cell_type": "code",
   "execution_count": 188,
   "execution_count": 2,
   "metadata": {
    "collapsed": false
   },
   "outputs": [],
   "source": [
    "video_path = '../data/video/SGT036_2016_07_25_pivothead_AVI.avi'\n",
    "bbox_path = '../data/video/annotations/SGT036_childface.txt'\n",
    "video_path = '../data/video/SWC016_2016_04_08_pivothead_AVI.avi'\n",
    "bbox_path = '../data/video/annotations/SWC016_childface.txt'\n",
    "\n",
    "annot_path = '../output/video/output-SGT036_resnet50_lowlr_epoch_20.txt'\n",
    "output_string = 'SGT036_resnet50_lowlr_epoch_20_smoothed'"
    "annot_path = '../output/video/output-SWC016_normal_1e-5_epoch_20.txt'\n",
    "output_string = 'SWC016_normal_1e-5_epoch_20_smooth'"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 189,
   "execution_count": 3,
   "metadata": {
    "collapsed": false
   },
@@ -41,9 +41,9 @@
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[ 4.170376  0.790443 -0.178368 ..., -3.437805  0.396835 -1.276176]\n",
      "(8508,)\n",
      "(53464,)\n"
      "[ -1.15884  -14.885593 -16.727406 ..., -57.590378 -56.963156 -58.641377]\n",
      "(9322,)\n",
      "(63691,)\n"
     ]
    }
   ],
@@ -93,7 +93,7 @@
  },
  {
   "cell_type": "code",
   "execution_count": 190,
   "execution_count": 4,
   "metadata": {
    "collapsed": false
   },
@@ -107,7 +107,7 @@
    }
   ],
   "source": [
    "window_len = 5\n",
    "window_len = 7\n",
    "pad = window_len / 2\n",
    "window = 'flat'\n",
    "window_2 = 'flat'\n",
@@ -159,7 +159,7 @@
  },
  {
   "cell_type": "code",
   "execution_count": 191,
   "execution_count": 7,
   "metadata": {
    "collapsed": false
   },