Skip to content

Instantly share code, notes, and snippets.

View DatHuynh's full-sized avatar

Dat Huynh DatHuynh

  • Boston
View GitHub Profile
@DatHuynh
DatHuynh / video_stabilize.py
Last active August 8, 2022 06:17 — forked from daien/video_stabilize.py
Video stabilization with OpenCV and Hugin
#!/usr/bin/env python
""" Video stabilization with OpenCV (>=2.3) and Hugin
Adrien Gaidon
INRIA - 2012
TODO: add cropping, clean-up and improve doc-strings
"""
@DatHuynh
DatHuynh / seq2seq.py
Created April 5, 2019 04:01 — forked from higepon/seq2seq.py
Minimum Seq2Seq implementation using Tensorflow 1.4/1.5 API
import numpy as np
import tensorflow as tf
from tensorflow.python.layers import core as layers_core
hparams = tf.contrib.training.HParams(
batch_size=3,
encoder_length=4,
decoder_length=5,
num_units=6,
src_vocab_size=7,