Skip to content

Instantly share code, notes, and snippets.

@manacoa
manacoa / test_classify.py
Last active June 21, 2016 05:14
A quick "hello world" type classifier application for the latest version of Caffe. Draws heavily from classify.py (which doesn't print results) and the jetapac fork of this file (which prints results but isn't compatible with the latest version!).
#!/usr/bin/env python
"""
classify.py is an out-of-the-box image classifer callable from the command line.
By default it configures and runs the Caffe reference ImageNet model.
"""
import numpy as np
import os
import sys
import argparse