natanielruiz
2017-09-27 43416c4717d2430c3e11f042294d12b781fee2e1
practice/remove_AFLW2000.ipynb
@@ -23,19 +23,19 @@
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "execution_count": 9,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "list_2000 = '/Data/nruiz9/data/facial_landmarks/AFLW2000/filename_list_filtered.txt'\n",
    "list_normal = '/Data/nruiz9/data/facial_landmarks/AFLW/aflw_cropped/filename_list.txt'"
    "list_normal = '/Data/nruiz9/data/facial_landmarks/AFLW/aflw_cropped_loose/filename_list_filtered.txt'"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "execution_count": 10,
   "metadata": {
    "collapsed": false
   },
@@ -60,7 +60,7 @@
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "execution_count": 11,
   "metadata": {
    "collapsed": false
   },
@@ -69,15 +69,15 @@
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "1966 19109\n"
      "1967 18861\n"
     ]
    }
   ],
   "source": [
    "fid = open(list_normal, 'r')\n",
    "naked = list_normal.strip('.txt')\n",
    "train = open(naked + '_train.txt', 'wb')\n",
    "test = open(naked + '_test.txt', 'wb')\n",
    "train = open(naked + '_noAFLW2000_train.txt', 'wb')\n",
    "test = open(naked + '_noAFLW2000_test.txt', 'wb')\n",
    "test_dict = dict()\n",
    "train_dict = dict()\n",
    "for line in fid:\n",