Skip to content

Instantly share code, notes, and snippets.

View se7oluti0n's full-sized avatar

Manh Truong Tuan se7oluti0n

View GitHub Profile
name: "RHDLatentHMMap"
#-----Generate random image index for training 0
layer {
name: "image_index_0"
type: "DeepHandModelGenRandIndex"
top: "image_index_0"
gen_rand_index_param {
index_lower_bound: 0
index_upper_bound: 10000
@se7oluti0n
se7oluti0n / decorator.cpp
Created April 13, 2018 08:38 — forked from lizhongz/decorator.cpp
C++ decorator measuring the execution time of a function
#include <functional>
#include <chrono>
#include <iostream>
template <class> struct ExeTime;
// Execution time decorator
template <class R, class... Args>
struct ExeTime<R(Args ...)> {
public:
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@se7oluti0n
se7oluti0n / git-proxy.sh
Last active November 8, 2017 08:43 — forked from icantrap/git-proxy.sh
How to Github and Gitorious over HTTP proxy

You could always use Smart HTTP.

For read-only (git:) urls, install corkscrew.

  1. Download git-proxy.sh. Put it somewhere and make it executable.

  2. Run git config --global core.gitproxy '/usr/local/bin/git-proxy.sh'

To clone, push, pull over ssh, add the contents of ssh_config to your ~/.ssh/config file.

[a,b,c,d for a,b in AB for c,d in CD if a if b if c]
import numpy as np
from random import shuffle
from past.builtins import xrange
def softmax_loss_naive(W, X, y, reg):
"""
Softmax loss function, naive implementation (with loops)
Inputs have dimension D, there are C classes, and we operate on minibatches
of N examples.
import numpy as np
from random import shuffle
from past.builtins import xrange
def svm_loss_naive(W, X, y, reg):
"""
Structured SVM loss function, naive implementation (with loops).
Inputs have dimension D, there are C classes, and we operate on minibatches
of N examples.
@se7oluti0n
se7oluti0n / plotting_result.ipynb
Created May 18, 2017 10:40
Plotting megaface
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import sys
sys.path.append('../../facenet/src')
import facenet
import argparse
import os
import importlib
import tensorflow as tf
from tqdm import tqdm
import tensorflow.contrib.slim as slim