natanielruiz
2017-09-14 dd62d6fa4a85f18a29de009a972f5599b19ec946
practice/create_filtered_datasets.ipynb
@@ -96,19 +96,19 @@
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "execution_count": 4,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "AFLW = '/Data/nruiz9/data/facial_landmarks/AFLW/aflw_cropped/'\n",
    "filenames = '/Data/nruiz9/data/facial_landmarks/AFLW/aflw_cropped/filename_list_train.txt'"
    "AFLW = '/Data/nruiz9/data/facial_landmarks/AFLW/aflw_cropped_loose/'\n",
    "filenames = '/Data/nruiz9/data/facial_landmarks/AFLW/aflw_cropped_loose/filename_list.txt'"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "execution_count": 5,
   "metadata": {
    "collapsed": false
   },
@@ -117,13 +117,13 @@
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "246\n"
      "243\n"
     ]
    }
   ],
   "source": [
    "fid = open(filenames, 'r')\n",
    "out = open(os.path.join(AFLW, 'filename_list_train_filtered.txt'), 'wb')\n",
    "out = open(os.path.join(AFLW, 'filename_list_filtered.txt'), 'wb')\n",
    "counter = 0\n",
    "for line in fid:\n",
    "    original_line = line\n",