Skip to content

Instantly share code, notes, and snippets.

@onauparc
onauparc / C++ Predict with caffe
Created June 17, 2014 13:36
sample code for caffe C++ prediction
#include <cuda_runtime.h>
#include <cstring>
#include <cstdlib>
#include <vector>
#include <string>
#include <iostream>
#include <stdio.h>
#include "caffe/caffe.hpp"
@weilinear
weilinear / Makefile
Created December 1, 2012 07:21
cutil_inline.h
# Change the include line in Makefile
INCLUDES := -DCUDA_5 -I$(PYTHON_INCLUDE_PATH) -I$(NUMPY_INCLUDE_PATH) -I$(CUDA_SDK_PATH) -I./include -I./include/common -I./include/cudaconv2 -I./include/nvmatrix -I./dummyinclude/
@amueller
amueller / filterbank.py
Created July 17, 2012 14:23
Filterbank responses for low level vision
##########################################################################
# Maximum Response filterbank from
# http://www.robots.ox.ac.uk/~vgg/research/texclass/filters.html
# based on several edge and bar filters.
# Adapted to Python by Andreas Mueller amueller@ais.uni-bonn.de
# Share and enjoy
#
import numpy as np
import matplotlib.pyplot as plt
@jasjukaitis
jasjukaitis / instapaper2chrome.py
Created October 31, 2011 15:31
Converts an Instapaper CSV export file to a Google Chrome bookmark import file.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# (c) 2011 Raphael Jasjukaitis <webmaster@raphaa.de>
import csv
import os
import sys
from optparse import OptionParser