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
"""
Num Floors R Total Rms Avg. Av Total
3 22 670400
3 21 568000
3 20 523700
3 19 483800
3 18 538885.714285714
2 18 609700
3 17 497461.111111111
2 17 491800
3 16 413650
sep_len sep_wid pet_len pet_wid class
5.1 3.5 1.4 0.2 Iris-setosa
4.9 3.0 1.4 0.2 Iris-setosa
4.7 3.2 1.3 0.2 Iris-setosa
4.6 3.1 1.5 0.2 Iris-setosa
5.0 3.6 1.4 0.2 Iris-setosa
5.4 3.9 1.7 0.4 Iris-setosa
4.6 3.4 1.4 0.3 Iris-setosa
5.0 3.4 1.5 0.2 Iris-setosa
4.4 2.9 1.4 0.2 Iris-setosa
@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,