Skip to content

Instantly share code, notes, and snippets.

@helxsz
helxsz / Currentcost_Pachube.pde
Created February 17, 2012 10:14
Currentcost to Pachube for Nanode
// Home monitoring CurrentCost monitors such as CC128 and EnviR
//
// Version specifically for Nanode, www.nanode.eu
// I am using with Arduino/Freeduino and EtherShield (ENC28J60 based)
// CC128 connected to pin 0 - UART Serial in and ground
//
// If using regular Arduino or clode with FTDI chip:
// PCB track between FTTDI chip and R11 is cut to disable USB/SERIAL.
// Just short gap to re-program
//
@helxsz
helxsz / index.html
Created March 22, 2014 11:12 — forked from mbostock/.block
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?1.29.6"></script>
</head>
<body>
<script type="text/javascript">
var svg = d3.select("body").append("svg:svg")
.attr("width", 960)
@helxsz
helxsz / example-saving-vgg16-weights.ipynb
Last active August 29, 2015 14:26 — forked from tnarihi/example-saving-vgg16-weights.ipynb
Saving the weights of VGG-16 as Matlab format
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@helxsz
helxsz / upsampling-with-deconv-layer.ipynb
Last active August 29, 2015 14:26 — forked from tnarihi/upsampling-with-deconv-layer.ipynb
Upsampling with DeconvolutionLayer in Caffe. Open as a notebook here: http://nbviewer.ipython.org/gist/tnarihi/54744612d35776f53278
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@helxsz
helxsz / caffe_feature_extractor.py
Last active August 29, 2015 14:26 — forked from marekrei/caffe_feature_extractor.py
Caffe feature extractor
import numpy as np
import os, sys, getopt
# Main path to your caffe installation
caffe_root = '/path/to/your/caffe/'
# Model prototxt file
model_prototxt = caffe_root + 'models/bvlc_googlenet/deploy.prototxt'
# Model caffemodel file
@helxsz
helxsz / readme.md
Last active August 29, 2015 14:27 — forked from bogger/deploy.prototxt
GoogLeNet_cars
@helxsz
helxsz / 1-potentiometre.js
Last active August 29, 2015 14:27 — forked from jblanche/1-potentiometre.js
Arduino + potentiometer + particles
var five = require('johnny-five'),
io = require('socket.io').listen(8080),
board, potentiometer;
board = new five.Board();
board.on("ready", function() {
// Create a new `potentiometer` hardware instance.
potentiometer = new five.Sensor({
@helxsz
helxsz / deploy.prototxt
Created October 17, 2015 16:52 — forked from tsulej/deploy.prototxt
Train your own net prototxt files
name: "MYNET"
input: "data"
input_dim: 1
input_dim: 3
input_dim: 224
input_dim: 224
layer {
name: "conv1/7x7_s2"
type: "Convolution"
bottom: "data"
@helxsz
helxsz / nvidia-gpu-monitor.ipynb
Created October 19, 2015 12:04 — forked from jimgoo/nvidia-gpu-monitor.ipynb
Live plotting of Nvidia GPU utilization
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@helxsz
helxsz / face_detection.py
Created October 21, 2015 18:53 — forked from erogol/face_detection.py
detect faces and show them on separate windows. You give the image path as an argument to that python script and see the magic.
from __future__ import division
import cv2
import cv2.cv as cv
import sys
import pdb
def detect(img, cascade):
rects = cascade.detectMultiScale(img, scaleFactor=1.1, minNeighbors=3, minSize=(10, 10), flags = cv.CV_HAAR_SCALE_IMAGE)
if len(rects) == 0:
return []