Skip to content

Instantly share code, notes, and snippets.

View ashwin4ever's full-sized avatar

Ashwin Viswanathan Kannan ashwin4ever

  • Stillwater , Oklahoma
View GitHub Profile
@damienpontifex
damienpontifex / Understanding TF RNNs.ipynb
Last active May 10, 2020 00:38
Getting my head around TensorFlow RNN inputs, outputs and the appropriate shapes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@royshil
royshil / lap_pyr.py
Created September 29, 2017 14:59
Laplacian pyramid blending with a mask in OpenCV-Python
# adapted from http://docs.opencv.org/3.0-beta/doc/py_tutorials/py_imgproc/py_pyramids/py_pyramids.html
import cv2
import numpy as np
def Laplacian_Pyramid_Blending_with_mask(A, B, m, num_levels = 6):
# assume mask is float32 [0,1]
# generate Gaussian pyramid for A,B and mask
GA = A.copy()
@giuseppebonaccorso
giuseppebonaccorso / hodgkin-huxley-main.py
Created August 19, 2017 15:06
Hodgkin-Huxley spiking neuron model in Python
import matplotlib.pyplot as plt
import numpy as np
from scipy.integrate import odeint
# Set random seed (for reproducibility)
np.random.seed(1000)
# Start and end time (in milliseconds)
tmin = 0.0