Skip to content

Instantly share code, notes, and snippets.

name: "PVANET-lite"
# https://raw.githubusercontent.com/sanghoon/pva-faster-rcnn/master/models/pvanet/lite/original.pt
################################################################################
## Input
################################################################################
layer {
name: 'input-data'
name: "SqueezeNet_Residual"
layer {
name: "data"
type: "Data"
top: "data"
top: "label"
include {
phase: TRAIN
}
transform_param {
@bmount
bmount / squeeze_1.1.prototxt
Last active August 15, 2016 19:47
squeezenet 1.1
# please cite:
# @article{SqueezeNet,
# Author = {Forrest N. Iandola and Matthew W. Moskewicz and Khalid Ashraf and Song Han and William J. Dally and Kurt Keutzer},
# Title = {SqueezeNet: AlexNet-level accuracy with 50x fewer parameters and $<$1MB model size},
# Journal = {arXiv:1602.07360},
# Year = {2016}
# }
name: "SqueezeNet_1.1"
layer {
name: "data"
name: "VGG_VOC0712_SSD_300x300_train"
layer {
name: "data"
type: "AnnotatedData"
top: "data"
top: "label"
include {
phase: TRAIN
}
transform_param {
@bmount
bmount / kmz2json-index.js
Created January 26, 2012 03:09
Node.js kmz-to-json stream via ogr2ogr. from substack/shp2json
var spawn = require('child_process').spawn;
var fs = require('fs');
var path = require('path');
var seq = require('seq');
var findit = require('findit');
var BufferedStream = require('morestreams').BufferedStream;
module.exports = function (inStream) {
var id = Math.floor(Math.random() * (1<<30)).toString(16);
var tmpDir = path.join('/tmp', id);
# please cite:
# @article{SqueezeNet,
# Author = {Forrest N. Iandola and Matthew W. Moskewicz and Khalid Ashraf and Song Han and William J. Dally and Kurt Keutzer},
# Title = {SqueezeNet: AlexNet-level accuracy with 50x fewer parameters and $<$1MB model size},
# Journal = {arXiv:1602.07360},
# Year = {2016}
#}
input: "data"
input_shape {
export TERM=xterm-256color
if tput setaf 1 &> /dev/null; then
tput sgr0
if [[ $(tput colors) -ge 256 ]] 2>/dev/null; then
MAGENTA=$(tput setaf 9)
ORANGE=$(tput setaf 172)
GREEN=$(tput setaf 190)
PURPLE=$(tput setaf 141)
WHITE=$(tput setaf 256)
@bmount
bmount / .vimrc
Last active February 18, 2016 19:41
vimrc
" runtime
set runtimepath=~/.vim,$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after,~/.vim/after
execute pathogen#infect()
" tabs in makefiles
filetype plugin on
filetype indent on
autocmd FileType make setlocal noexpandtab
@bmount
bmount / ccv-mavericks-makefile.diff
Created January 16, 2014 10:01
Build ccv on osx 10.9
--- a/lib/makefile
+++ b/lib/makefile
@@ -1,7 +1,7 @@
include config.mk
#CC += -faddress-sanitizer -fno-omit-frame-pointer
-CFLAGS := -O3 -ffast-math -Wall $(CFLAGS)# -fprofile-arcs -ftest-coverage
+CFLAGS := -O3 -ffast-math -Wall $(CFLAGS)# -fprofile-arcs -ftest-coverage -I/usr/local/include -L/usr/local/lib
.PHONY: all clean
@bmount
bmount / setup-wifi.sh
Created November 7, 2013 08:22
linux wireless wpa quick manual configure
#!/bin/bash
if [ $# -lt 3 ]
then
echo "usage: ./setup-wifi.sh INTERFACE ACCESS_POINT_SSID PASSPHRASE"
echo "example: ./setup-wifi.sh wlan0 linksys supersecret"
exit;
fi
wpa_passphrase $2 $3 > wifi.conf