Skip to content

Instantly share code, notes, and snippets.

View suraj-deshmukh's full-sized avatar
🏠
Working from home

Suraj Deshmukh suraj-deshmukh

🏠
Working from home
View GitHub Profile
@suraj-deshmukh
suraj-deshmukh / tweet_dumper.py
Last active March 19, 2021 12:48 — forked from yanofsky/LICENSE
A script to download all of a user's tweets into a csv
import pandas as pd #to store tweets into csv
import tweepy
#Twitter API credentials
consumer_key = ""
consumer_secret = ""
access_key = ""
access_secret = ""
@suraj-deshmukh
suraj-deshmukh / mnist_cnn_incremental.py
Created January 13, 2017 07:09 — forked from mathDR/mnist_cnn_incremental.py
Incremental learning of mnist dataset (following T.Xiao et.al. "Error-Driven Incremental Learning in Deep Convolutional Neural Network for Large-Scale Image Classification"
'''Trains a simple convnet on the MNIST dataset.
Does flat increment from T. Xiao "Error-Driven Incremental Learning in Deep Convolutional
Neural Network for Large-Scale Image Classification"
Starts with just 3 classes, trains for 12 epochs then
incrementally trains the rest of the classes by reusing
the trained weights.
'''
from __future__ import print_function
import numpy as np

VGG-Face model for Keras

This is the Keras model of VGG-Face.

It has been obtained through the following method:

  • vgg-face-keras:directly convert the vgg-face matconvnet model to keras model
  • vgg-face-keras-fc:first convert vgg-face caffe model to mxnet model,and then convert it to keras model

Details about the network architecture can be found in the following paper:

@suraj-deshmukh
suraj-deshmukh / hough_transform.py
Created January 15, 2020 17:58 — forked from panzerama/hough_transform.py
Solution for correcting text skew in image with scipy, scikit
#image processing resources
from skimage.io import imread, imshow
from skimage.filters import gaussian, threshold_otsu
from skimage.feature import canny
from skimage.transform import probabilistic_hough_line, rotate
#testing
import numpy as np
import os