Skip to content

Instantly share code, notes, and snippets.

@patricksnape
Created May 22, 2014 21:04
Show Gist options
  • Save patricksnape/3d2e7014bc4e23fb1b76 to your computer and use it in GitHub Desktop.
Save patricksnape/3d2e7014bc4e23fb1b76 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
{
"metadata": {
"name": "",
"signature": "sha256:8799e7eb5f4a3411cc48401984bc018073624cad47ee858160a703f6f2a053ec"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "code",
"collapsed": false,
"input": [
"from menpo.benchmark.predefined import clm_basic_bbox, aam_best_performance_alternating_bbox\n",
"from menpo.benchmark.io import import_all_bounding_boxes, import_bounding_boxes\n",
"import numpy as np\n",
"import menpo.io as mio\n",
"from menpo.shape import PointCloud"
],
"language": "python",
"metadata": {},
"outputs": []
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"testing_set_path = '/home/pts08/Downloads/small/testset'\n",
"testing_set_bounding_box_mat_path = '/home/pts08/Downloads/Bounding Boxes/bounding_boxes_lfpw_testset.mat'"
],
"language": "python",
"metadata": {},
"outputs": []
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"graph1_training_set_path = '/home/pts08/Downloads/small/trainset'"
],
"language": "python",
"metadata": {},
"outputs": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Graph 1: Our Experiments"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## HOG AAM"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"graph1_hog_aam = aam_best_performance_alternating_bbox(\n",
" graph1_training_set_path,\n",
" testing_set_path,\n",
" testing_set_bounding_box_mat_path,\n",
" feature_type='hog',\n",
" verbose=True)"
],
"language": "python",
"metadata": {},
"outputs": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## HOG CLM"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"graph1_hog_clm = clm_basic_bbox(\n",
" graph1_training_set_path,\n",
" testing_set_path,\n",
" testing_set_bounding_box_mat_path,\n",
" verbose=True)"
],
"language": "python",
"metadata": {},
"outputs": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## HOG SDM"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#TODO"
],
"language": "python",
"metadata": {},
"outputs": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## IGO AAM"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"graph1_igo_aam = aam_best_performance_alternating_bbox(\n",
" graph1_training_set_path,\n",
" testing_set_path,\n",
" testing_set_bounding_box_mat_path,\n",
" feature_type='igo',\n",
" verbose=True)"
],
"language": "python",
"metadata": {},
"outputs": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Graph 2: Compare against state-of-the-art"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"graph2_training_set_path = '/home/pts08/Downloads/small/trainset'"
],
"language": "python",
"metadata": {},
"outputs": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## HOG AAM"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"graph2_hog_aam = aam_best_performance_alternating_bbox(\n",
" graph2_training_set_path,\n",
" testing_set_path,\n",
" testing_set_bounding_box_mat_path,\n",
" feature_type='hog',\n",
" verbose=True)"
],
"language": "python",
"metadata": {},
"outputs": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## HOG CLM"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"graph2_hog_clm = clm_basic_bbox(\n",
" graph2_training_set_path,\n",
" testing_set_path,\n",
" testing_set_bounding_box_mat_path,\n",
" verbose=True)"
],
"language": "python",
"metadata": {},
"outputs": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## HOG SDM"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#TODO"
],
"language": "python",
"metadata": {},
"outputs": []
}
],
"metadata": {}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment