Skip to content

Instantly share code, notes, and snippets.

View xiaofanglegoc's full-sized avatar

xiaofang wang xiaofanglegoc

View GitHub Profile
@xiaofanglegoc
xiaofanglegoc / msrc_blog.ipynb
Created December 21, 2015 15:19 — forked from amueller/msrc_blog.ipynb
ipython notebook for msrc segmentation tutorial
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@xiaofanglegoc
xiaofanglegoc / installiTorch.sh
Last active June 3, 2016 09:33 — forked from jetsonhacks/installiTorch.sh
Install iTorch and prerequisites
#!/bin/sh
# Install Python prerequisites on NVIDIA Jetson TK1 for iTorch
# This is for https://github.com/facebook/iTorch
# L4T 21.3, Torch 7 (http://torch.ch)
# Python 2.7 or greater must be installed before running this script
# Torch 7 should already be installed before running this script
# iPython is loaded using pip, as repository version is 1.x version, > 2.0 is needed
# Need to compile from source as repository version libzmq3-dev is not the correct revision
wget http://download.zeromq.org/zeromq-4.0.5.tar.gz
tar xzvf zeromq-4.0.5.tar.gz
@xiaofanglegoc
xiaofanglegoc / frozen_trainning_tensorflow.py
Created January 9, 2018 15:26 — forked from ahwillia/pca_alt_min.py
Alternating Minimization in Tensorflow (PCA example)
import numpy as np
import tensorflow as tf
# N, size of matrix. R, rank of data
N = 100
R = 5
# generate data
W_true = np.random.randn(N,R)
C_true = np.random.randn(R,N)