This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
__author__ = 'TzuTaLin' | |
import os | |
import sys | |
import shutil | |
from subprocess import call | |
import zipfile | |
import subprocess | |
def unzipFile(filename): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CMAKE_MINIMUM_REQUIRED( VERSION 2.8 ) | |
######################################################### | |
# Set project name | |
######################################################### | |
IF( NOT PROJECT_NAME ) | |
IF ( NOT "x$ENV{PROJECT_NAME}" STREQUAL "x" ) | |
SET( PROJECT_NAME $ENV{PROJECT_NAME} ) | |
ELSE() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
PORT=5555 | |
if [ $# -ne 0 ]; then | |
while [ $# != 0 ] | |
do | |
PORT=$1 | |
shift | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# My GPU: Gefore710M | |
sudo apt-get remove nvidia* && sudo apt-get autoremove | |
sudo add-apt-repository -y ppa:xorg-edgers/ppa | |
sudo apt-get update | |
sudo apt-get install nvidia-340 | |
# Install CUDA 6.0 | |
sudo apt-get install nvidia-cuda-toolkit | |
# Install opencl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "nin_imagenet" | |
input: "data" | |
input_shape { | |
dim: 10 | |
dim: 3 | |
dim: 224 | |
dim: 224 | |
} | |
layers { | |
bottom: "data" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
#include <ctime> | |
#include <cstdlib> | |
namespace da{ | |
struct nullstream: std::ostream{ | |
nullstream(): std::ostream(0){} | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
while true; do | |
sudo python ps_mem.py -p $1 | |
sleep 3 | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If using usb 3.0 or above, should turn it down in BIOS(Advance->USB->xhci) disable xhci | |
#Install dependencies: | |
sudo apt-get install ros-indigo-rgbd-launch ros-indigo-openni2-camera ros-indigo-openni2-launch | |
# Install package rqt and useful plugins: | |
sudo apt-get install ros-indigo-rqt ros-indigo-rqt-common-plugins ros-indigo-rqt-robot-plugins | |
# Open Terminal 1 | |
roscore |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import matplotlib.pyplot as plt | |
import sys | |
import caffe | |
import os | |
import time | |
def convertbinarytonpy(binaryprotosrc, npytarget): | |
if os.path.exists(binaryprotosrc): | |
blob = caffe.proto.caffe_pb2.blobproto() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sudo apt-get install -y git | |
sudo apt-get install libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libhdf5-serial-dev protobuf-compiler | |
sudo apt-get install --no-install-recommends libboost-all-dev | |
sudo apt-get install libatlas-base-dev | |
sudo apt-get install libopenblas-dev | |
sudo apt-get install liblapack-dev |