Skip to content

Instantly share code, notes, and snippets.

Rahul Kumar therahulkumar

Block or report user

Report or block therahulkumar

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@therahulkumar
therahulkumar / Python3 Virtualenv Setup.md
Created May 7, 2018 — forked from pandafulmanda/Python3 Virtualenv Setup.md
Setting up and using Python3 Virtualenv on Mac
View Python3 Virtualenv Setup.md

Python3 Virtualenv Setup

Requirements
  • Python 3
  • Pip 3
$ brew install python3
@therahulkumar
therahulkumar / elastic_transform.py
Created Jan 23, 2018 — forked from fmder/elastic_transform.py
Elastic transformation of an image in Python
View elastic_transform.py
import numpy
from scipy.ndimage.interpolation import map_coordinates
from scipy.ndimage.filters import gaussian_filter
def elastic_transform(image, alpha, sigma, random_state=None):
"""Elastic deformation of images as described in [Simard2003]_.
.. [Simard2003] Simard, Steinkraus and Platt, "Best Practices for
Convolutional Neural Networks applied to Visual Document Analysis", in
You can’t perform that action at this time.