Skip to content

Instantly share code, notes, and snippets.

View tonycao's full-sized avatar

Tian Cao tonycao

View GitHub Profile
@tonycao
tonycao / pyenv-python38-macos.sh
Created May 25, 2021 18:36 — forked from yatsu/pyenv-python38-macos.sh
Install Python 3.8.6 with pyenv on macOS Big Sur (11)
#!/bin/sh
# 1) Install Xcode 12
# 2) Install command line tools: `xcode-select --install`
# 3) Install Homebrew
# 4) brew install zlib bzip2 xz
CFLAGS="-I$(brew --prefix zlib)/include -I$(brew --prefix bzip2)/include -I$(brew --prefix xz)/include" \
LDFLAGS="-L$(brew --prefix zlib)/lib -L$(brew --prefix bzip2)/lib -L$(brew --prefix xz)/lib" \
pyenv install 3.8.6
# 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}
# }
layer {
name: "data"
type: "Data"
name: "GoogleNet"
input: "data"
input_dim: 10
input_dim: 3
input_dim: 224
input_dim: 224
layers {
bottom: "data"
top: "conv1/7x7_s2"
name: "conv1/7x7_s2"
@tonycao
tonycao / install_elasticsearch_osx.md
Created June 14, 2017 17:55 — forked from djonsson/install_elasticsearch_osx.md
OS X installation instructions for Elasticsearch + Kibana + Marvel

What is this?

Following this guide will set up a local Elasticsearch with Kibana and Marvel using Homebrew and Homebrew Cask

Prerequisites

If you already have Java installed on your system, skip steps Install Cask and Install Java

If you already have Java and Homebrew installed on your system, skip steps Prerequisites, start at Install Elasticsearch and Kibana after running $ brew update

Install Homebrew

  • $ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
@tonycao
tonycao / how-to-setup-mac-elasticsearch.md
Created June 10, 2017 07:11 — forked from jpalala/how-to-setup-mac-elasticsearch.md
setting up elasticsearch on your mac with brew

Install va homebrew

If you don't have homebrew installed - get homebrew here

Then run: brew install elasticsearch

Configuration

Update the elasticsearch configuration file in /usr/local/etc/elasticsearch/elasticsearch.yml.

layer {
name: "Image1"
type: "ImageData"
top: "img0"
include {
phase: TRAIN
}
image_data_param {
source: "img1_list.txt"
root_folder: "./"
name: "FaceNet"
layer {
name: "facenet"
type: "Data"
top: "data"
top: "label"
include {
phase: TRAIN
}
transform_param {
name: "ZF_triplet_train"
layer {
name: 'input-data'
type: 'Python'
top: 'data'
top: 'im_info'
top: 'gt_boxes'
top: 'im_inds'
#top: 'rois'
#top: 'labels'
name: "ZF_triplet_train"
layer {
name: 'input-data'
type: 'Python'
top: 'data'
top: 'im_info'
top: 'gt_boxes'
top: 'im_inds'
#top: 'rois'
#top: 'labels'
name: "ZF_triplet_test"
input: "data"
input_shape {
dim: 1
dim: 3
dim: 224
dim: 224
}