This file contains 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
# In tensorflow folder | |
git pull | |
./configure | |
bazel build -c opt --config=cuda //tensorflow/tools/pip_package:build_pip_package | |
bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg | |
sudo pip install /tmp/tensorflow_pkg/SOME_NAME |
This file contains 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
# install torch on ec2 g2 instance | |
# installing torch | |
curl -s https://raw.githubusercontent.com/torch/ezinstall/master/install-deps | bash # prereqs | |
git clone https://github.com/torch/distro.git ~/torch --recursive | |
cd ~/torch; ./install.sh | |
source ~/.bashrc | |
# confirm torch is installed | |
th |
This file contains 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
# On Ubuntu 14.04 with Titan X (compute capability 5.2) | |
# There are some missing parts that you have to specify, and some files you have to download manaully from web, so don't run this script file as it is. | |
# Configure CUDA paths | |
echo export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/cuda/lib64" >> ~/.bashrc | |
echo export CUDA_HOME="/usr/local/cuda" >> ~/.bashrc | |
source ~/.bashrc | |
# Set up java | |
# Dependencies for Bazel | |
# Download jdk 8 |
This file contains 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 | |
""" | |
-------------------------------------------------------------------------------- | |
This code is modified version of: | |
https://github.com/eBay/bayesian-belief-networks/blob/master/bayesian/examples/bif/bif_parser.py. | |
NOTE: regex pattern of this parser is sensitive to spaces (will be fixed soon). | |
The output json file can be iterated with the following pseudo-code (d is the loaded json): | |
variables = d['variables'] |
This file contains 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
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/cuda/lib64" | |
export CUDA_HOME="/usr/local/cuda" | |
export PATH="$HOME/torch/install/bin/th:$PATH" | |
export JAVA_HOME="$HOME/jdk/jdk1.8.0_74" | |
export PATH="$JAVA_HOME/bin:$PATH" | |
alias python=python3.5 | |
alias pip=pip3.5 | |
git config credential.helper 'cache --timeout=3600' |
This file contains 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
alias python python3 | |
alias pip pip3 | |
set vs2 minjoons@vision-server2.corp.ai2 | |
set vs3 minjoons@vision-server3.corp.ai2 |
This file contains 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
1. Install brew | |
2. Install iterm | |
3. Install fish shell, mosh (brew install fish, mobile-shell) | |
4. Displays: scaled, change font size | |
5. Keyboard: repeat -> short and fast, F1, F2 as function keys | |
6. Install PyCharm, OneNote, Slack, KakaoTalk, GitHub Desktop, | |
7. brew install python3 | |
8. Install pip: https://pip.pypa.io/en/stable/installing/ | |
9. pip3 install jupyter | |
10. pip3 install matplotlib |
This file contains 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
brew install swig | |
brew install cmake | |
brew install boost boost-python sdl2 |
This file contains 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/bash | |
# Put this in bin folder and then: | |
# chmod +x imgcat | |
# From: https://raw.githubusercontent.com/gnachman/iTerm2/master/tests/imgcat | |
# tmux requires unrecognized OSC sequences to be wrapped with DCS tmux; | |
# <sequence> ST, and for all ESCs in <sequence> to be replaced with ESC ESC. It | |
# only accepts ESC backslash for ST. | |
function print_osc() { |
This file contains 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
sudo apt-get install zlib1g-dev libsqlite3-dev libssl-dev tk-dev libbz2-dev |
OlderNewer