Skip to content

Instantly share code, notes, and snippets.

View Peratham's full-sized avatar

Peratham Wiriyathammabhum Peratham

View GitHub Profile
'''
Here's the snippet from my code.
Also modify the .yaml config file as needed.
Hope this helps!
'''
from slowfast.models import model_builder, head_helper
from slowfast.config.defaults import get_cfg
import slowfast.utils.checkpoint as cu
# slowfast net
@Peratham
Peratham / install-tensorflow.sh
Created May 26, 2017 21:09 — forked from erikbern/install-tensorflow.sh
Installing TensorFlow on EC2
# Note – this is not a bash script (some of the steps require reboot)
# I named it .sh just so Github does correct syntax highlighting.
#
# This is also available as an AMI in us-east-1 (virginia): ami-cf5028a5
#
# The CUDA part is mostly based on this excellent blog post:
# http://tleyden.github.io/blog/2014/10/25/cuda-6-dot-5-on-aws-gpu-instance-running-ubuntu-14-dot-04/
# Install various packages
sudo apt-get update
@Peratham
Peratham / readme.md
Created May 21, 2017 23:32 — forked from vsubhashini/readme.md
Sequence to Sequence - Video to Text (S2VT)
@Peratham
Peratham / tf_lstm.py
Created April 19, 2017 02:33 — forked from siemanko/tf_lstm.py
Simple implementation of LSTM in Tensorflow in 50 lines (+ 130 lines of data generation and comments)
"""Short and sweet LSTM implementation in Tensorflow.
Motivation:
When Tensorflow was released, adding RNNs was a bit of a hack - it required
building separate graphs for every number of timesteps and was a bit obscure
to use. Since then TF devs added things like `dynamic_rnn`, `scan` and `map_fn`.
Currently the APIs are decent, but all the tutorials that I am aware of are not
making the best use of the new APIs.
Advantages of this implementation:
@Peratham
Peratham / deploy.prototxt
Created July 29, 2016 17:18 — forked from bogger/deploy.prototxt
GoogLeNet_cars
name: "GoogleNet"
input: "data"
input_dim: 10
input_dim: 3
input_dim: 224
input_dim: 224
# hierarchy 1
# conv -> relu -> pool -> lrn