Skip to content

Instantly share code, notes, and snippets.

#Get model

mkdir -p /opt/deepdetect/models/lenet-mnist
wget https://raw.githubusercontent.com/mravendi/caffe-test-mnist-jpg/master/model/lenet_iter_10000.caffemodel -O /opt/deepdetect/models/lenet-mnist/lenet-mnist.caffemodel

#Set service

cd /opt/deepdetect/clients/python
python
@seeb0h
seeb0h / embed-chart.js
Last active June 21, 2016 19:32
An upgraded embed-chart.js from https://gist.github.com/CGamesPlay/8628541. Now with sweet autocolors from @sterlingwes.
// Free to use & distribute under the MIT license
// Wes Johnson (@SterlingWes)
//
// inspired by http://martin.ankerl.com/2009/12/09/how-to-create-random-colors-programmatically/
(function (root, factory) {
if (typeof exports === 'object') {
module.exports = factory;
} else if (typeof define === 'function' && define.amd) {
define(factory);
.figure {
overflow: auto;
margin: 1em 0;
}
.figure table {
margin: 0;
}
.figure > input {
@seeb0h
seeb0h / preprocess_sd19_text.py
Last active October 4, 2017 13:35
Read and pre-process SD19 characters text file
#! /usr/bin/python
# -​- coding: utf-8 -​-
# On ignore le style pour le nom des méthode / fonctions etc...
# pylint: disable=C0103
'''
Read and pre-process SD19 characters text file.
Blog post : http://seeb0h.github.io/howto/preprocess-sd19-dataset-for-digits-learning/