natanielruiz
2017-09-28 1ddaaf685a3c5febca32305fc588f982b5e4cdaa
practice/create_filtered_datasets.ipynb
@@ -2,7 +2,7 @@
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 4,
   "execution_count": 3,
   "metadata": {
    "collapsed": true
   },
@@ -58,9 +58,9 @@
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "execution_count": 4,
   "metadata": {
    "collapsed": true
    "collapsed": false
   },
   "outputs": [],
   "source": [
@@ -70,15 +70,23 @@
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "execution_count": 5,
   "metadata": {
    "collapsed": true
    "collapsed": false
   },
   "outputs": [],
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "31\n"
     ]
    }
   ],
   "source": [
    "# Create filename.txt without poses more than -100, 100 degrees.\n",
    "with open(os.path.join(AFLW, 'list_filenames.txt')) as f:\n",
    "    with open(os.path.join(AFLW, 'filename_list_filtered.txt'), 'wb') as wb:\n",
    "    with open(os.path.join(AFLW, 'filename_list_filtered_test.txt'), 'wb') as wb:\n",
    "        counter = 0\n",
    "        for line in f:\n",
    "            original_line = line\n",