Skip to content

Instantly share code, notes, and snippets.

View AaratiAkkapeddi's full-sized avatar
💭
listening to my plants 🌱

Aarati Akkapeddi AaratiAkkapeddi

💭
listening to my plants 🌱
View GitHub Profile
{
"cells": [
{
"cell_type": "code",
"execution_count": 8,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [

Keybase proof

I hereby claim:

  • I am aarati-akkapeddi on github.
  • I am aarati1229 (https://keybase.io/aarati1229) on keybase.
  • I have a public key ASC0pnFBoqFN5Go_UxsBqqo224w6pjOnnnX87kutZZA0uQo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am aaratiakkapeddi on github.
  • I am aarati1229 (https://keybase.io/aarati1229) on keybase.
  • I have a public key ASC0pnFBoqFN5Go_UxsBqqo224w6pjOnnnX87kutZZA0uQo

To claim this, I am signing this object:

from __future__ import absolute_import, division, print_function
"""
This is a modification of the classify_images.py
script in Tensorflow by Douglas Duhaime. The original script produces
string labels for input images (e.g. you input a picture
of a cat and the script returns the string "cat"); this
modification reads in a directory of images and
generates a vector representation of the image using
#THIS CODE IS BY DOUGLAS DUHAIME
from annoy import AnnoyIndex
from scipy import spatial
from nltk import ngrams
import random, json, glob, os, codecs, random
import numpy as np
# data structures
file_index_to_file_name = {}
file_index_to_file_vector = {}
This file has been truncated, but you can view the full file.
<?xml version="1.0"?>
<!--
Stump-based 24x24 discrete(?) adaboost frontal face detector.
Created by Rainer Lienhart.
////////////////////////////////////////////////////////////////////////////////////////
IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
By downloading, copying, installing or using the software you agree to this license.
<?xml version="1.0"?>
<!--
Stump-based 20x20 frontal eye detector.
Created by Shameem Hameed (http://umich.edu/~shameem)
////////////////////////////////////////////////////////////////////////////////////////
IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
By downloading, copying, installing or using the software you agree to this license.